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

Side by Side Diff: printing/printing_context_android.h

Issue 2400873002: keep only one typedef for the native drawing context (Closed)
Patch Set: native_drawing_context.h Created 4 years, 2 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
« no previous file with comments | « printing/printing_context.h ('k') | printing/printing_context_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
OLDNEW
« 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