webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
#import <WebViewPrivate.h>
Instance Methods | |
(void) | - _adjustPrintingMarginsForHeaderAndFooter |
(void) | - _drawHeaderAndFooter |
- (void) _adjustPrintingMarginsForHeaderAndFooter |
_adjustPrintingMarginsForHeaderAndFooter: Increase the top and bottom margins for the current print operation to account for the header and footer height. Called by <WebDocument> implementors once when a print job begins. If the <WebDocument> implementor implements knowsPageRange:, this should be called from there. Otherwise this should be called from beginDocument. The <WebDocument> implementors need to also call _drawHeaderAndFooter.
- (void) _drawHeaderAndFooter |
_drawHeaderAndFooter Gives the WebView's UIDelegate a chance to draw a header and footer on the printed page. This should be called by <WebDocument> implementors from an override of drawPageBorderWithSize:.