WKBundlePageFullScreenClient.h [plain text]
#ifndef WKBundlePageFullScreenClient_h
#define WKBundlePageFullScreenClient_h
#include <WebKit/WKBase.h>
#include <WebKit/WKGeometry.h>
enum {
WKFullScreenNoKeyboard,
WKFullScreenKeyboard,
};
typedef uint32_t WKFullScreenKeyboardRequestType;
typedef bool (*WKBundlePageSupportsFullScreen)(WKBundlePageRef page, WKFullScreenKeyboardRequestType requestType);
typedef void (*WKBundlePageEnterFullScreenForElement)(WKBundlePageRef page, WKBundleNodeHandleRef element);
typedef void (*WKBundlePageExitFullScreenForElement)(WKBundlePageRef page, WKBundleNodeHandleRef element);
typedef void (*WKBundlePageBeganEnterFullScreen)(WKBundlePageRef page, WKRect initialFrame, WKRect finalFrame);
typedef void (*WKBundlePageBeganExitFullScreen)(WKBundlePageRef page, WKRect initialFrame, WKRect finalFrame);
typedef void (*WKBundlePageCloseFullScreen)(WKBundlePageRef page);
typedef struct WKBundlePageFullScreenClientBase {
int version;
const void * clientInfo;
} WKBundlePageFullScreenClientBase;
typedef struct WKBundlePageFullScreenClientV0 {
WKBundlePageFullScreenClientBase base;
WKBundlePageSupportsFullScreen supportsFullScreen;
WKBundlePageEnterFullScreenForElement enterFullScreenForElement;
WKBundlePageExitFullScreenForElement exitFullScreenForElement;
} WKBundlePageFullScreenClientV0;
typedef struct WKBundlePageFullScreenClientV1 {
WKBundlePageFullScreenClientBase base;
WKBundlePageSupportsFullScreen supportsFullScreen;
WKBundlePageEnterFullScreenForElement enterFullScreenForElement;
WKBundlePageExitFullScreenForElement exitFullScreenForElement;
WKBundlePageBeganEnterFullScreen beganEnterFullScreen;
WKBundlePageBeganExitFullScreen beganExitFullScreen;
WKBundlePageCloseFullScreen closeFullScreen;
} WKBundlePageFullScreenClientV1;
#endif // WKBundlePageFullScreenClient_h