Chromium Code Reviews| Index: third_party/WebKit/public/web/WebLocalFrame.h |
| diff --git a/third_party/WebKit/public/web/WebLocalFrame.h b/third_party/WebKit/public/web/WebLocalFrame.h |
| index 981d53b8ccccb59098393a73f53e47a17c1b73b9..52110fc40ac7a45a74657f9bc46649d66f0f6bc7 100644 |
| --- a/third_party/WebKit/public/web/WebLocalFrame.h |
| +++ b/third_party/WebKit/public/web/WebLocalFrame.h |
| @@ -150,6 +150,30 @@ public: |
| virtual bool getPrintPresetOptionsForPlugin(const WebNode&, WebPrintPresetOptions*) = 0; |
|
Lei Zhang
2016/07/06 17:59:16
extra blank line?
dcheng
2016/07/06 21:41:05
There's usually two lines between logical blocks o
|
| + // CSS3 Paged Media ---------------------------------------------------- |
| + |
| + // Returns true if page box (margin boxes and page borders) is visible. |
| + virtual bool isPageBoxVisible(int pageIndex) = 0; |
| + |
| + // Returns true if the page style has custom size information. |
| + virtual bool hasCustomPageSizeStyle(int pageIndex) = 0; |
| + |
| + // Returns the preferred page size and margins in pixels, assuming 96 |
| + // pixels per inch. pageSize, marginTop, marginRight, marginBottom, |
| + // marginLeft must be initialized to the default values that are used if |
| + // auto is specified. |
| + virtual void pageSizeAndMarginsInPixels(int pageIndex, |
| + WebSize& pageSize, |
| + int& marginTop, |
| + int& marginRight, |
| + int& marginBottom, |
| + int& marginLeft) = 0; |
| + |
| + // Returns the value for a page property that is only defined when printing. |
| + // printBegin must have been called before this method. |
| + virtual WebString pageProperty(const WebString& propertyName, int pageIndex) = 0; |
| + |
| + |
| // Scripting -------------------------------------------------------------- |
| // Executes script in the context of the current page and returns the value |
| // that the script evaluated to with callback. Script execution can be |