Index: chrome/renderer/printing/print_web_view_helper.h |
diff --git a/chrome/renderer/printing/print_web_view_helper.h b/chrome/renderer/printing/print_web_view_helper.h |
index f4d7aaa3bf9a72bc40a494123397de8669f7a1f1..f144adc45d02b52059541420eb40cbd3c5d76e8d 100644 |
--- a/chrome/renderer/printing/print_web_view_helper.h |
+++ b/chrome/renderer/printing/print_web_view_helper.h |
@@ -169,7 +169,10 @@ class PrintWebViewHelper |
// Main printing code ------------------------------------------------------- |
- void Print(blink::WebLocalFrame* frame, const blink::WebNode& node); |
+ // |is_scripted| should be true when the call is coming from window.print() |
+ void Print(blink::WebLocalFrame* frame, |
+ const blink::WebNode& node, |
+ bool is_scripted); |
// Notification when printing is done - signal tear-down/free resources. |
void DidFinishPrinting(PrintingResult result); |
@@ -200,7 +203,8 @@ class PrintWebViewHelper |
// Return false if the user cancels or on error. |
bool GetPrintSettingsFromUser(blink::WebFrame* frame, |
const blink::WebNode& node, |
- int expected_pages_count); |
+ int expected_pages_count, |
+ bool is_scripted); |
// Page Printing / Rendering ------------------------------------------------ |