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

Unified Diff: printing/printing_context.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
Index: printing/printing_context.h
diff --git a/printing/printing_context.h b/printing/printing_context.h
index 0cc4731a19e98169d44b25ad235810dcd0d34818..40c8d33cc5720105161e55dc0478a3fb0a7e887a 100644
--- a/printing/printing_context.h
+++ b/printing/printing_context.h
@@ -55,8 +55,12 @@ class PRINTING_EXPORT PrintingContext {
// context with the select device settings. The result of the call is returned
// in the callback. This is necessary for Linux, which only has an
// asynchronous printing API.
+ // On Android, when |is_scripted| is true, calling it initiates a full
+ // printing flow from the framework's PrintManager.
+ // (see https://codereview.chromium.org/740983002/)
virtual void AskUserForSettings(int max_pages,
bool has_selection,
+ bool is_scripted,
const PrintSettingsCallback& callback) = 0;
// Selects the user's default printer and format. Updates the context with the
« no previous file with comments | « printing/android/java/src/org/chromium/printing/PrintingControllerImpl.java ('k') | printing/printing_context_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698