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

Side by Side Diff: printing/printing_context_mac.h

Issue 8549031: base::Bind: Convert PrintingContext::PrintSettingsCallback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win fix. Created 9 years, 1 month 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_gtk.cc ('k') | printing/printing_context_mac.mm » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_MAC_H_ 5 #ifndef PRINTING_PRINTING_CONTEXT_MAC_H_
6 #define PRINTING_PRINTING_CONTEXT_MAC_H_ 6 #define PRINTING_PRINTING_CONTEXT_MAC_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_nsobject.h" 10 #include "base/memory/scoped_nsobject.h"
11 #include "printing/printing_context.h" 11 #include "printing/printing_context.h"
12 #include "printing/print_job_constants.h" 12 #include "printing/print_job_constants.h"
13 13
14 #ifdef __OBJC__ 14 #ifdef __OBJC__
15 @class NSPrintInfo; 15 @class NSPrintInfo;
16 #else 16 #else
17 class NSPrintInfo; 17 class NSPrintInfo;
18 #endif // __OBJC__ 18 #endif // __OBJC__
19 19
20 namespace printing { 20 namespace printing {
21 21
22 class PRINTING_EXPORT PrintingContextMac : public PrintingContext { 22 class PRINTING_EXPORT PrintingContextMac : public PrintingContext {
23 public: 23 public:
24 explicit PrintingContextMac(const std::string& app_locale); 24 explicit PrintingContextMac(const std::string& app_locale);
25 virtual ~PrintingContextMac(); 25 virtual ~PrintingContextMac();
26 26
27 // PrintingContext implementation. 27 // PrintingContext implementation.
28 virtual void AskUserForSettings(gfx::NativeView parent_view, 28 virtual void AskUserForSettings(
29 int max_pages, 29 gfx::NativeView parent_view,
30 bool has_selection, 30 int max_pages,
31 PrintSettingsCallback* callback) OVERRIDE; 31 bool has_selection,
32 const PrintSettingsCallback& callback) OVERRIDE;
32 virtual Result UseDefaultSettings() OVERRIDE; 33 virtual Result UseDefaultSettings() OVERRIDE;
33 virtual Result UpdatePrinterSettings( 34 virtual Result UpdatePrinterSettings(
34 const base::DictionaryValue& job_settings, 35 const base::DictionaryValue& job_settings,
35 const PageRanges& ranges) OVERRIDE; 36 const PageRanges& ranges) OVERRIDE;
36 virtual Result InitWithSettings(const PrintSettings& settings) OVERRIDE; 37 virtual Result InitWithSettings(const PrintSettings& settings) OVERRIDE;
37 virtual Result NewDocument(const string16& document_name) OVERRIDE; 38 virtual Result NewDocument(const string16& document_name) OVERRIDE;
38 virtual Result NewPage() OVERRIDE; 39 virtual Result NewPage() OVERRIDE;
39 virtual Result PageDone() OVERRIDE; 40 virtual Result PageDone() OVERRIDE;
40 virtual Result DocumentDone() OVERRIDE; 41 virtual Result DocumentDone() OVERRIDE;
41 virtual void Cancel() OVERRIDE; 42 virtual void Cancel() OVERRIDE;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // The current page's context; only valid between NewPage and PageDone call 92 // The current page's context; only valid between NewPage and PageDone call
92 // pairs. 93 // pairs.
93 CGContext* context_; 94 CGContext* context_;
94 95
95 DISALLOW_COPY_AND_ASSIGN(PrintingContextMac); 96 DISALLOW_COPY_AND_ASSIGN(PrintingContextMac);
96 }; 97 };
97 98
98 } // namespace printing 99 } // namespace printing
99 100
100 #endif // PRINTING_PRINTING_CONTEXT_MAC_H_ 101 #endif // PRINTING_PRINTING_CONTEXT_MAC_H_
OLDNEW
« no previous file with comments | « printing/printing_context_gtk.cc ('k') | printing/printing_context_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698