diff options
Diffstat (limited to 'Source/WebKit2/UIProcess/API/C/WKPagePrivate.h')
-rw-r--r-- | Source/WebKit2/UIProcess/API/C/WKPagePrivate.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Source/WebKit2/UIProcess/API/C/WKPagePrivate.h b/Source/WebKit2/UIProcess/API/C/WKPagePrivate.h index 3bf50c3..2c1f985 100644 --- a/Source/WebKit2/UIProcess/API/C/WKPagePrivate.h +++ b/Source/WebKit2/UIProcess/API/C/WKPagePrivate.h @@ -41,6 +41,29 @@ typedef void (^WKPageRenderTreeExternalRepresentationBlock)(WKStringRef, WKError WK_EXPORT void WKPageRenderTreeExternalRepresentation_b(WKPageRef page, WKPageRenderTreeExternalRepresentationBlock block); #endif +enum { + kWKDebugFlashViewUpdates = 1 << 0, + kWKDebugFlashBackingStoreUpdates = 1 << 1 +}; +typedef unsigned WKPageDebugPaintFlags; + +WK_EXPORT void WKPageSetDebugPaintFlags(WKPageDebugPaintFlags flags); +WK_EXPORT WKPageDebugPaintFlags WKPageGetDebugPaintFlags(void); + +struct WKPrintInfo { + float pageSetupScaleFactor; + float availablePaperWidth; + float availablePaperHeight; +}; +typedef struct WKPrintInfo WKPrintInfo; + +typedef void (*WKPageComputePagesForPrintingFunction)(WKRect* pageRects, uint32_t pageCount, double resultPageScaleFactor, WKErrorRef error, void* functionContext); +WK_EXPORT void WKPageComputePagesForPrinting(WKPageRef page, WKFrameRef frame, WKPrintInfo, WKPageComputePagesForPrintingFunction, void* context); + +typedef void (*WKPageDrawToPDFFunction)(WKDataRef data, WKErrorRef error, void* functionContext); +WK_EXPORT void WKPageBeginPrinting(WKPageRef page, WKFrameRef frame, WKPrintInfo); +WK_EXPORT void WKPageDrawPagesToPDF(WKPageRef page, WKFrameRef frame, uint32_t first, uint32_t count, WKPageDrawToPDFFunction callback, void* context); + #ifdef __cplusplus } #endif |