| Index: chrome/renderer/print_web_view_helper.h
|
| diff --git a/chrome/renderer/print_web_view_helper.h b/chrome/renderer/print_web_view_helper.h
|
| index 1180a5dcaa891f970c5ec8c81fa620a7ff5c7650..c30677d4a9114d344100650565b13ffe45544621 100644
|
| --- a/chrome/renderer/print_web_view_helper.h
|
| +++ b/chrome/renderer/print_web_view_helper.h
|
| @@ -138,7 +138,7 @@ class PrintWebViewHelper
|
|
|
| // RenderViewObserver implementation.
|
| virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
|
| - virtual void PrintPage(WebKit::WebFrame* frame) OVERRIDE;
|
| + virtual void PrintPage(WebKit::WebFrame* frame, bool user_initiated) OVERRIDE;
|
|
|
| // Message handlers ---------------------------------------------------------
|
|
|
| @@ -331,8 +331,11 @@ class PrintWebViewHelper
|
|
|
| // Script Initiated Printing ------------------------------------------------
|
|
|
| - // Return true if script initiated printing is currently allowed.
|
| - bool IsScriptInitiatedPrintAllowed(WebKit::WebFrame* frame);
|
| + // Return true if script initiated printing is currently
|
| + // allowed. |user_initiated| should be true when a user event triggered the
|
| + // script, most likely by pressing a print button on the page.
|
| + bool IsScriptInitiatedPrintAllowed(WebKit::WebFrame* frame,
|
| + bool user_initiated);
|
|
|
| // Returns true if script initiated printing occurs too often.
|
| bool IsScriptInitiatedPrintTooFrequent(WebKit::WebFrame* frame);
|
| @@ -363,6 +366,7 @@ class PrintWebViewHelper
|
|
|
| scoped_ptr<PrintMsg_PrintPages_Params> print_pages_params_;
|
| bool is_preview_enabled_;
|
| + bool is_scripted_print_throttling_disabled_;
|
| bool is_print_ready_metafile_sent_;
|
| bool ignore_css_margins_;
|
|
|
|
|