OLD | NEW |
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 Loading... |
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 gfx::NativeDrawingContext context() const override; | 55 skia::NativeDrawingContext context() const override; |
56 | 56 |
57 // Registers JNI bindings for RegisterContext. | 57 // Registers JNI bindings for RegisterContext. |
58 static bool RegisterPrintingContext(JNIEnv* env); | 58 static bool RegisterPrintingContext(JNIEnv* env); |
59 | 59 |
60 private: | 60 private: |
61 base::android::ScopedJavaGlobalRef<jobject> j_printing_context_; | 61 base::android::ScopedJavaGlobalRef<jobject> j_printing_context_; |
62 | 62 |
63 // The callback from AskUserForSettings to be called when the settings are | 63 // The callback from AskUserForSettings to be called when the settings are |
64 // ready on the Java side | 64 // ready on the Java side |
65 PrintSettingsCallback callback_; | 65 PrintSettingsCallback callback_; |
66 | 66 |
67 DISALLOW_COPY_AND_ASSIGN(PrintingContextAndroid); | 67 DISALLOW_COPY_AND_ASSIGN(PrintingContextAndroid); |
68 }; | 68 }; |
69 | 69 |
70 } // namespace printing | 70 } // namespace printing |
71 | 71 |
72 #endif // PRINTING_PRINTING_CONTEXT_ANDROID_H_ | 72 #endif // PRINTING_PRINTING_CONTEXT_ANDROID_H_ |
73 | 73 |
OLD | NEW |