WKBundlePageFormClient.h [plain text]
#ifndef WKBundlePageFormClient_h
#define WKBundlePageFormClient_h
#include <WebKit/WKBase.h>
#include <WebKit/WKBundlePageEditorClient.h>
typedef void (*WKBundlePageTextFieldDidBeginEditingCallback)(WKBundlePageRef page, WKBundleNodeHandleRef htmlInputElementHandle, WKBundleFrameRef frame, const void* clientInfo);
typedef void (*WKBundlePageTextFieldDidEndEditingCallback)(WKBundlePageRef page, WKBundleNodeHandleRef htmlInputElementHandle, WKBundleFrameRef frame, const void* clientInfo);
typedef void (*WKBundlePageTextDidChangeInTextFieldCallback)(WKBundlePageRef page, WKBundleNodeHandleRef htmlInputElementHandle, WKBundleFrameRef frame, const void* clientInfo);
typedef void (*WKBundlePageTextDidChangeInTextAreaCallback)(WKBundlePageRef page, WKBundleNodeHandleRef htmlTextAreaElementHandle, WKBundleFrameRef frame, const void* clientInfo);
typedef bool (*WKBundlePageShouldPerformActionInTextFieldCallback)(WKBundlePageRef page, WKBundleNodeHandleRef htmlInputElementHandle, WKInputFieldActionType actionType, WKBundleFrameRef frame, const void* clientInfo);
typedef void (*WKBundlePageWillSubmitFormCallback)(WKBundlePageRef page, WKBundleNodeHandleRef htmlFormElementHandle, WKBundleFrameRef frame, WKBundleFrameRef sourceFrame, WKDictionaryRef values, WKTypeRef* userData, const void* clientInfo);
typedef void (*WKBundlePageWillSendSubmitEventCallback)(WKBundlePageRef page, WKBundleNodeHandleRef htmlFormElementHandle, WKBundleFrameRef frame, WKBundleFrameRef sourceFrame, WKDictionaryRef values, const void* clientInfo);
typedef void (*WKBundlePageDidFocusTextFieldCallback)(WKBundlePageRef page, WKBundleNodeHandleRef htmlInputElementHandle, WKBundleFrameRef frame, const void* clientInfo);
typedef bool (*WKBundlePageShouldNotifyOnFormChangesCallback)(WKBundlePageRef page, const void* clientInfo);
typedef void (*WKBundlePageDidAssociateFormControlsCallback)(WKBundlePageRef page, WKArrayRef elementHandles, const void* clientInfo);
typedef struct WKBundlePageFormClientBase {
int version;
const void * clientInfo;
} WKBundlePageFormClientBase;
typedef struct WKBundlePageFormClientV0 {
WKBundlePageFormClientBase base;
WKBundlePageTextFieldDidBeginEditingCallback textFieldDidBeginEditing;
WKBundlePageTextFieldDidEndEditingCallback textFieldDidEndEditing;
WKBundlePageTextDidChangeInTextFieldCallback textDidChangeInTextField;
WKBundlePageTextDidChangeInTextAreaCallback textDidChangeInTextArea;
WKBundlePageShouldPerformActionInTextFieldCallback shouldPerformActionInTextField;
WKBundlePageWillSubmitFormCallback willSubmitForm;
} WKBundlePageFormClientV0;
typedef struct WKBundlePageFormClientV1 {
WKBundlePageFormClientBase base;
WKBundlePageTextFieldDidBeginEditingCallback textFieldDidBeginEditing;
WKBundlePageTextFieldDidEndEditingCallback textFieldDidEndEditing;
WKBundlePageTextDidChangeInTextFieldCallback textDidChangeInTextField;
WKBundlePageTextDidChangeInTextAreaCallback textDidChangeInTextArea;
WKBundlePageShouldPerformActionInTextFieldCallback shouldPerformActionInTextField;
WKBundlePageWillSubmitFormCallback willSubmitForm;
WKBundlePageWillSendSubmitEventCallback willSendSubmitEvent;
} WKBundlePageFormClientV1;
typedef struct WKBundlePageFormClientV2 {
WKBundlePageFormClientBase base;
WKBundlePageTextFieldDidBeginEditingCallback textFieldDidBeginEditing;
WKBundlePageTextFieldDidEndEditingCallback textFieldDidEndEditing;
WKBundlePageTextDidChangeInTextFieldCallback textDidChangeInTextField;
WKBundlePageTextDidChangeInTextAreaCallback textDidChangeInTextArea;
WKBundlePageShouldPerformActionInTextFieldCallback shouldPerformActionInTextField;
WKBundlePageWillSubmitFormCallback willSubmitForm;
WKBundlePageWillSendSubmitEventCallback willSendSubmitEvent;
WKBundlePageDidFocusTextFieldCallback didFocusTextField;
WKBundlePageShouldNotifyOnFormChangesCallback shouldNotifyOnFormChanges;
WKBundlePageDidAssociateFormControlsCallback didAssociateFormControls;
} WKBundlePageFormClientV2;
enum { kWKBundlePageFormClientCurrentVersion WK_ENUM_DEPRECATED("Use an explicit version number instead") = 2 };
typedef struct WKBundlePageFormClient {
int version;
const void * clientInfo;
WKBundlePageTextFieldDidBeginEditingCallback textFieldDidBeginEditing;
WKBundlePageTextFieldDidEndEditingCallback textFieldDidEndEditing;
WKBundlePageTextDidChangeInTextFieldCallback textDidChangeInTextField;
WKBundlePageTextDidChangeInTextAreaCallback textDidChangeInTextArea;
WKBundlePageShouldPerformActionInTextFieldCallback shouldPerformActionInTextField;
WKBundlePageWillSubmitFormCallback willSubmitForm;
WKBundlePageWillSendSubmitEventCallback willSendSubmitEvent;
WKBundlePageDidFocusTextFieldCallback didFocusTextField;
WKBundlePageShouldNotifyOnFormChangesCallback shouldNotifyOnFormChanges;
WKBundlePageDidAssociateFormControlsCallback didAssociateFormControls;
} WKBundlePageFormClient WK_DEPRECATED("Use an explicit versioned struct instead");
#endif // WKBundlePageFormClient_h