diff options
Diffstat (limited to 'chromium/third_party/blink/public/web/web_local_frame.h')
-rw-r--r-- | chromium/third_party/blink/public/web/web_local_frame.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/chromium/third_party/blink/public/web/web_local_frame.h b/chromium/third_party/blink/public/web/web_local_frame.h index 3eed50d6101..1b359a40ccd 100644 --- a/chromium/third_party/blink/public/web/web_local_frame.h +++ b/chromium/third_party/blink/public/web/web_local_frame.h @@ -48,6 +48,7 @@ class WebLocalFrameClient; class WebFrameWidget; class WebInputMethodController; class WebPerformance; +class WebPlugin; class WebRange; class WebSecurityOrigin; class WebScriptExecutionCallback; @@ -672,13 +673,16 @@ class WebLocalFrame : public WebFrame { // This function should be called before pairs of PrintBegin() and PrintEnd(). virtual void DispatchBeforePrintEvent() = 0; + // Get the plugin to print, if any. The |constrain_to_node| parameter is the + // same as the one for PrintBegin() below. + virtual WebPlugin* GetPluginToPrint(const WebNode& constrain_to_node) = 0; + // Reformats the WebFrame for printing. WebPrintParams specifies the printable // content size, paper size, printable area size, printer DPI and print - // scaling option. If constrainToNode node is specified, then only the given + // scaling option. If |constrain_to_node| is specified, then only the given // node is printed (for now only plugins are supported), instead of the entire // frame. - // Returns the number of pages that can be printed at the given - // page size. + // Returns the number of pages that can be printed at the given page size. virtual int PrintBegin(const WebPrintParams&, const WebNode& constrain_to_node = WebNode()) = 0; |