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

Unified Diff: printing/printing_context_android.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 | « printing/printing_context.h ('k') | printing/printing_context_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context_android.h
diff --git a/printing/printing_context_android.h b/printing/printing_context_android.h
index 32f11be7b766d1795c6df56aeb95aaa2c67b2386..3823b2801530669237ee536f954a07408eef6135 100644
--- a/printing/printing_context_android.h
+++ b/printing/printing_context_android.h
@@ -14,8 +14,7 @@
namespace printing {
-// Android subclass of PrintingContext. The implementation for this header file
-// resides in Chrome for Android repository. This class communicates with the
+// Android subclass of PrintingContext. This class communicates with the
// Java side through JNI.
class PRINTING_EXPORT PrintingContextAndroid : public PrintingContext {
public:
@@ -30,10 +29,14 @@ class PRINTING_EXPORT PrintingContextAndroid : public PrintingContext {
// printing operation is canceled.
void AskUserForSettingsReply(JNIEnv* env, jobject obj, jboolean success);
+ // Called from Java, when a printing process initiated by a script finishes.
+ void ShowSystemDialogDone(JNIEnv* env, jobject obj);
+
// PrintingContext implementation.
virtual void AskUserForSettings(
int max_pages,
bool has_selection,
+ bool is_scripted,
const PrintSettingsCallback& callback) override;
virtual Result UseDefaultSettings() override;
virtual gfx::Size GetPdfPaperSizeDeviceUnits() override;
« no previous file with comments | « printing/printing_context.h ('k') | printing/printing_context_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698