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

Side by Side Diff: printing/printing_context_mac.h

Issue 5636001: On Chrome OS, use the application locale to determine the default paper size ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Review comments addressed Created 10 years 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_cairo.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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>
9
8 #include "printing/printing_context.h" 10 #include "printing/printing_context.h"
9 11
10 #ifdef __OBJC__ 12 #ifdef __OBJC__
11 @class NSPrintInfo; 13 @class NSPrintInfo;
12 #else 14 #else
13 class NSPrintInfo; 15 class NSPrintInfo;
14 #endif // __OBJC__ 16 #endif // __OBJC__
15 17
16 namespace printing { 18 namespace printing {
17 19
18 class PrintingContextMac : public PrintingContext { 20 class PrintingContextMac : public PrintingContext {
19 public: 21 public:
20 PrintingContextMac(); 22 explicit PrintingContextMac(const std::string& app_locale);
21 ~PrintingContextMac(); 23 ~PrintingContextMac();
22 24
23 // PrintingContext implementation. 25 // PrintingContext implementation.
24 virtual void AskUserForSettings(gfx::NativeView parent_view, 26 virtual void AskUserForSettings(gfx::NativeView parent_view,
25 int max_pages, 27 int max_pages,
26 bool has_selection, 28 bool has_selection,
27 PrintSettingsCallback* callback); 29 PrintSettingsCallback* callback);
28 virtual Result UseDefaultSettings(); 30 virtual Result UseDefaultSettings();
29 virtual Result InitWithSettings(const PrintSettings& settings); 31 virtual Result InitWithSettings(const PrintSettings& settings);
30 virtual Result NewDocument(const string16& document_name); 32 virtual Result NewDocument(const string16& document_name);
(...skipping 15 matching lines...) Expand all
46 // The current page's context; only valid between NewPage and PageDone call 48 // The current page's context; only valid between NewPage and PageDone call
47 // pairs. 49 // pairs.
48 CGContext* context_; 50 CGContext* context_;
49 51
50 DISALLOW_COPY_AND_ASSIGN(PrintingContextMac); 52 DISALLOW_COPY_AND_ASSIGN(PrintingContextMac);
51 }; 53 };
52 54
53 } // namespace printing 55 } // namespace printing
54 56
55 #endif // PRINTING_PRINTING_CONTEXT_MAC_H_ 57 #endif // PRINTING_PRINTING_CONTEXT_MAC_H_
OLDNEW
« no previous file with comments | « printing/printing_context_cairo.cc ('k') | printing/printing_context_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698