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

Side by Side Diff: printing/printing_context_android.h

Issue 2714073002: Eliminate PS printing edge cases (Closed)
Patch Set: Fix compile errors Created 3 years, 9 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PRINTING_PRINTING_CONTEXT_ANDROID_H_ 5 #ifndef PRINTING_PRINTING_CONTEXT_ANDROID_H_
6 #define PRINTING_PRINTING_CONTEXT_ANDROID_H_ 6 #define PRINTING_PRINTING_CONTEXT_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 gfx::Size GetPdfPaperSizeDeviceUnits() override; 45 gfx::Size GetPdfPaperSizeDeviceUnits() override;
46 Result UpdatePrinterSettings(bool external_preview, 46 Result UpdatePrinterSettings(bool external_preview,
47 bool show_system_dialog, 47 bool show_system_dialog,
48 int page_count) override; 48 int page_count) override;
49 Result NewDocument(const base::string16& document_name) override; 49 Result NewDocument(const base::string16& document_name) override;
50 Result NewPage() override; 50 Result NewPage() override;
51 Result PageDone() override; 51 Result PageDone() override;
52 Result DocumentDone() override; 52 Result DocumentDone() override;
53 void Cancel() override; 53 void Cancel() override;
54 void ReleaseContext() override; 54 void ReleaseContext() override;
55 void SetPostScriptEnabled(bool is_enabled) override;
55 skia::NativeDrawingContext context() const override; 56 skia::NativeDrawingContext context() const override;
56 57
57 // Registers JNI bindings for RegisterContext. 58 // Registers JNI bindings for RegisterContext.
58 static bool RegisterPrintingContext(JNIEnv* env); 59 static bool RegisterPrintingContext(JNIEnv* env);
59 60
60 private: 61 private:
61 base::android::ScopedJavaGlobalRef<jobject> j_printing_context_; 62 base::android::ScopedJavaGlobalRef<jobject> j_printing_context_;
62 63
63 // The callback from AskUserForSettings to be called when the settings are 64 // The callback from AskUserForSettings to be called when the settings are
64 // ready on the Java side 65 // ready on the Java side
65 PrintSettingsCallback callback_; 66 PrintSettingsCallback callback_;
66 67
67 DISALLOW_COPY_AND_ASSIGN(PrintingContextAndroid); 68 DISALLOW_COPY_AND_ASSIGN(PrintingContextAndroid);
68 }; 69 };
69 70
70 } // namespace printing 71 } // namespace printing
71 72
72 #endif // PRINTING_PRINTING_CONTEXT_ANDROID_H_ 73 #endif // PRINTING_PRINTING_CONTEXT_ANDROID_H_
73 74
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698