Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9451)

Unified Diff: chrome/renderer/printing/print_web_view_helper.h

Issue 740983002: Implement window.print() on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/print_messages.h ('k') | chrome/renderer/printing/print_web_view_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ------------------------------------------------
« no previous file with comments | « chrome/common/print_messages.h ('k') | chrome/renderer/printing/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698