diff options
Diffstat (limited to 'Source/WebKit2/UIProcess/API/C/WKPagePrivate.h')
-rw-r--r-- | Source/WebKit2/UIProcess/API/C/WKPagePrivate.h | 82 |
1 files changed, 72 insertions, 10 deletions
diff --git a/Source/WebKit2/UIProcess/API/C/WKPagePrivate.h b/Source/WebKit2/UIProcess/API/C/WKPagePrivate.h index 5d6f66082..d3ed91af6 100644 --- a/Source/WebKit2/UIProcess/API/C/WKPagePrivate.h +++ b/Source/WebKit2/UIProcess/API/C/WKPagePrivate.h @@ -26,8 +26,8 @@ #ifndef WKPagePrivate_h #define WKPagePrivate_h -#include <WebKit2/WKBase.h> -#include <WebKit2/WKPage.h> +#include <WebKit/WKBase.h> +#include <WebKit/WKPage.h> #ifdef __cplusplus extern "C" { @@ -42,9 +42,6 @@ enum { }; typedef unsigned WKPageDebugPaintFlags; -WK_EXPORT void WKPageSetDebugPaintFlags(WKPageDebugPaintFlags flags); -WK_EXPORT WKPageDebugPaintFlags WKPageGetDebugPaintFlags(void); - WK_EXPORT WKStringRef WKPageCopyStandardUserAgentWithApplicationName(WKStringRef); enum { @@ -64,6 +61,8 @@ WK_EXPORT void WKPageSetPageLength(WKPageRef page, double pageLength); WK_EXPORT double WKPageGetPageLength(WKPageRef page); WK_EXPORT void WKPageSetGapBetweenPages(WKPageRef page, double gap); WK_EXPORT double WKPageGetGapBetweenPages(WKPageRef page); +WK_EXPORT void WKPageSetPaginationLineGridEnabled(WKPageRef page, bool lineGridEnabled); +WK_EXPORT bool WKPageGetPaginationLineGridEnabled(WKPageRef page); WK_EXPORT unsigned WKPageGetPageCount(WKPageRef page); @@ -82,18 +81,27 @@ WK_EXPORT void WKPageBeginPrinting(WKPageRef page, WKFrameRef frame, WKPrintInfo WK_EXPORT void WKPageDrawPagesToPDF(WKPageRef page, WKFrameRef frame, WKPrintInfo printInfo, uint32_t first, uint32_t count, WKPageDrawToPDFFunction callback, void* context); WK_EXPORT void WKPageEndPrinting(WKPageRef page); -// FIXME https://bugs.webkit.org/show_bug.cgi?id=66979: Remove this sync call. -WK_EXPORT WKImageRef WKPageCreateSnapshotOfVisibleContent(WKPageRef page); +WK_EXPORT bool WKPageGetIsControlledByAutomation(WKPageRef page); +WK_EXPORT void WKPageSetControlledByAutomation(WKPageRef page, bool controlled); -WK_EXPORT void WKPageSetShouldSendEventsSynchronously(WKPageRef page, bool sync); +WK_EXPORT bool WKPageGetAllowsRemoteInspection(WKPageRef page); +WK_EXPORT void WKPageSetAllowsRemoteInspection(WKPageRef page, bool allow); WK_EXPORT void WKPageSetMediaVolume(WKPageRef page, float volume); WK_EXPORT void WKPageSetMayStartMediaWhenInWindow(WKPageRef page, bool mayStartMedia); +typedef void (*WKPageGetBytecodeProfileFunction)(WKStringRef, WKErrorRef, void*); +WK_EXPORT void WKPageGetBytecodeProfile(WKPageRef page, void* context, WKPageGetBytecodeProfileFunction function); + +typedef void (*WKPageGetSamplingProfilerOutputFunction)(WKStringRef, WKErrorRef, void*); +WK_EXPORT void WKPageGetSamplingProfilerOutput(WKPageRef page, void* context, WKPageGetSamplingProfilerOutputFunction function); + +typedef void (*WKPageIsWebProcessResponsiveFunction)(bool isWebProcessResponsive, void* context); +WK_EXPORT void WKPageIsWebProcessResponsive(WKPageRef page, void* context, WKPageIsWebProcessResponsiveFunction function); + WK_EXPORT WKArrayRef WKPageCopyRelatedPages(WKPageRef page); -typedef void (*WKPageInvalidMessageFunction)(uint32_t messageID); -WK_EXPORT void WKPageSetInvalidMessageFunction(WKPageInvalidMessageFunction function); +WK_EXPORT WKFrameRef WKPageLookUpFrameFromHandle(WKPageRef page, WKFrameHandleRef handle); enum { kWKScrollPinningBehaviorDoNotPin, @@ -105,6 +113,60 @@ typedef uint32_t WKScrollPinningBehavior; WK_EXPORT WKScrollPinningBehavior WKPageGetScrollPinningBehavior(WKPageRef page); WK_EXPORT void WKPageSetScrollPinningBehavior(WKPageRef page, WKScrollPinningBehavior pinning); +WK_EXPORT bool WKPageGetAddsVisitedLinks(WKPageRef page); +WK_EXPORT void WKPageSetAddsVisitedLinks(WKPageRef page, bool visitedLinks); + +WK_EXPORT bool WKPageIsPlayingAudio(WKPageRef page); + +enum { + kWKMediaNoneMuted = 0, + kWKMediaAudioMuted = 1 << 0, + kWKMediaCaptureDevicesMuted = 1 << 1, +}; +typedef uint32_t WKMediaMutedState; +WK_EXPORT void WKPageSetMuted(WKPageRef page, WKMediaMutedState muted); + +WK_EXPORT void WKPageClearUserMediaState(WKPageRef page); + +WK_EXPORT void WKPageDidAllowPointerLock(WKPageRef page); +WK_EXPORT void WKPageDidDenyPointerLock(WKPageRef page); + +enum { + kWKMediaIsNotPlaying = 0, + kWKMediaIsPlayingAudio = 1 << 0, + kWKMediaIsPlayingVideo = 1 << 1, + kWKMediaHasActiveAudioCaptureDevice = 1 << 2, + kWKMediaHasActiveVideoCaptureDevice = 1 << 3, +}; +typedef uint32_t WKMediaState; + + +WK_EXPORT WKMediaState WKPageGetMediaState(WKPageRef page); + +enum { + kWKMediaEventTypePlayPause, + kWKMediaEventTypeTrackNext, + kWKMediaEventTypeTrackPrevious +}; +typedef uint32_t WKMediaEventType; + +WK_EXPORT bool WKPageHasMediaSessionWithActiveMediaElements(WKPageRef page); +WK_EXPORT void WKPageHandleMediaEvent(WKPageRef page, WKMediaEventType event); + +WK_EXPORT void WKPageLoadURLWithShouldOpenExternalURLsPolicy(WKPageRef page, WKURLRef url, bool shouldOpenExternalURLs); + +typedef void (*WKPagePostPresentationUpdateFunction)(WKErrorRef, void*); +WK_EXPORT void WKPageCallAfterNextPresentationUpdate(WKPageRef page, void* context, WKPagePostPresentationUpdateFunction function); + +WK_EXPORT bool WKPageGetResourceCachingDisabled(WKPageRef page); +WK_EXPORT void WKPageSetResourceCachingDisabled(WKPageRef page, bool disabled); + +WK_EXPORT void WKPageRestoreFromSessionStateWithoutNavigation(WKPageRef page, WKTypeRef sessionState); + +WK_EXPORT void WKPageSetIgnoresViewportScaleLimits(WKPageRef page, bool ignoresViewportScaleLimits); + +WK_EXPORT pid_t WKPageGetProcessIdentifier(WKPageRef page); + #ifdef __cplusplus } #endif |