OLD | NEW |
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 PrintingContextMac : public PrintingContext { | 22 class PrintingContextMac : public PrintingContext { |
23 public: | 23 public: |
24 explicit PrintingContextMac(const std::string& app_locale); | 24 explicit PrintingContextMac(const std::string& app_locale); |
25 ~PrintingContextMac(); | 25 virtual ~PrintingContextMac(); |
26 | 26 |
27 // PrintingContext implementation. | 27 // PrintingContext implementation. |
28 virtual void AskUserForSettings(gfx::NativeView parent_view, | 28 virtual void AskUserForSettings(gfx::NativeView parent_view, |
29 int max_pages, | 29 int max_pages, |
30 bool has_selection, | 30 bool has_selection, |
31 PrintSettingsCallback* callback); | 31 PrintSettingsCallback* callback); |
32 virtual Result UseDefaultSettings(); | 32 virtual Result UseDefaultSettings(); |
33 virtual Result UpdatePrintSettings(const DictionaryValue& job_settings, | 33 virtual Result UpdatePrintSettings(const DictionaryValue& job_settings, |
34 const PageRanges& ranges); | 34 const PageRanges& ranges); |
35 virtual Result InitWithSettings(const PrintSettings& settings); | 35 virtual Result InitWithSettings(const PrintSettings& settings); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // The current page's context; only valid between NewPage and PageDone call | 78 // The current page's context; only valid between NewPage and PageDone call |
79 // pairs. | 79 // pairs. |
80 CGContext* context_; | 80 CGContext* context_; |
81 | 81 |
82 DISALLOW_COPY_AND_ASSIGN(PrintingContextMac); | 82 DISALLOW_COPY_AND_ASSIGN(PrintingContextMac); |
83 }; | 83 }; |
84 | 84 |
85 } // namespace printing | 85 } // namespace printing |
86 | 86 |
87 #endif // PRINTING_PRINTING_CONTEXT_MAC_H_ | 87 #endif // PRINTING_PRINTING_CONTEXT_MAC_H_ |
OLD | NEW |