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

Side by Side Diff: printing/printing_context_android.h

Issue 24989002: Cleanup: Use base namespace in printing/. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « printing/printing_context.h ('k') | printing/printing_context_gtk.h » ('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 23 matching lines...) Expand all
34 virtual void AskUserForSettings( 34 virtual void AskUserForSettings(
35 gfx::NativeView parent_view, 35 gfx::NativeView parent_view,
36 int max_pages, 36 int max_pages,
37 bool has_selection, 37 bool has_selection,
38 const PrintSettingsCallback& callback) OVERRIDE; 38 const PrintSettingsCallback& callback) OVERRIDE;
39 virtual Result UseDefaultSettings() OVERRIDE; 39 virtual Result UseDefaultSettings() OVERRIDE;
40 virtual Result UpdatePrinterSettings( 40 virtual Result UpdatePrinterSettings(
41 const base::DictionaryValue& job_settings, 41 const base::DictionaryValue& job_settings,
42 const PageRanges& ranges) OVERRIDE; 42 const PageRanges& ranges) OVERRIDE;
43 virtual Result InitWithSettings(const PrintSettings& settings) OVERRIDE; 43 virtual Result InitWithSettings(const PrintSettings& settings) OVERRIDE;
44 virtual Result NewDocument(const string16& document_name) OVERRIDE; 44 virtual Result NewDocument(const base::string16& document_name) OVERRIDE;
45 virtual Result NewPage() OVERRIDE; 45 virtual Result NewPage() OVERRIDE;
46 virtual Result PageDone() OVERRIDE; 46 virtual Result PageDone() OVERRIDE;
47 virtual Result DocumentDone() OVERRIDE; 47 virtual Result DocumentDone() OVERRIDE;
48 virtual void Cancel() OVERRIDE; 48 virtual void Cancel() OVERRIDE;
49 virtual void ReleaseContext() OVERRIDE; 49 virtual void ReleaseContext() OVERRIDE;
50 virtual gfx::NativeDrawingContext context() const OVERRIDE; 50 virtual gfx::NativeDrawingContext context() const OVERRIDE;
51 51
52 // Registers JNI bindings for RegisterContext. 52 // Registers JNI bindings for RegisterContext.
53 static bool RegisterPrintingContext(JNIEnv* env); 53 static bool RegisterPrintingContext(JNIEnv* env);
54 54
55 private: 55 private:
56 base::android::ScopedJavaGlobalRef<jobject> j_printing_context_; 56 base::android::ScopedJavaGlobalRef<jobject> j_printing_context_;
57 57
58 // The callback from AskUserForSettings to be called when the settings are 58 // The callback from AskUserForSettings to be called when the settings are
59 // ready on the Java side 59 // ready on the Java side
60 PrintSettingsCallback callback_; 60 PrintSettingsCallback callback_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(PrintingContextAndroid); 62 DISALLOW_COPY_AND_ASSIGN(PrintingContextAndroid);
63 }; 63 };
64 64
65 } // namespace printing 65 } // namespace printing
66 66
67 #endif // PRINTING_PRINTING_CONTEXT_ANDROID_H_ 67 #endif // PRINTING_PRINTING_CONTEXT_ANDROID_H_
68 68
OLDNEW
« no previous file with comments | « printing/printing_context.h ('k') | printing/printing_context_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698