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_H_ | 5 #ifndef PRINTING_PRINTING_CONTEXT_H_ |
6 #define PRINTING_PRINTING_CONTEXT_H_ | 6 #define PRINTING_PRINTING_CONTEXT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/callback_old.h" | 11 #include "base/callback_old.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "printing/print_settings.h" | 13 #include "printing/print_settings.h" |
14 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 class DictionaryValue; | 17 class DictionaryValue; |
18 } | 18 } |
19 | 19 |
20 namespace printing { | 20 namespace printing { |
21 | 21 |
22 // An abstraction of a printer context, implemented by objects that describe the | 22 // An abstraction of a printer context, implemented by objects that describe the |
23 // user selected printing context. This includes the OS-dependent UI to ask the | 23 // user selected printing context. This includes the OS-dependent UI to ask the |
24 // user about the print settings. Concrete implementations directly talk to the | 24 // user about the print settings. Concrete implementations directly talk to the |
25 // printer and manage the document and page breaks. | 25 // printer and manage the document and page breaks. |
26 class PrintingContext { | 26 class PRINTING_EXPORT PrintingContext { |
27 public: | 27 public: |
28 // Tri-state result for user behavior-dependent functions. | 28 // Tri-state result for user behavior-dependent functions. |
29 enum Result { | 29 enum Result { |
30 OK, | 30 OK, |
31 CANCEL, | 31 CANCEL, |
32 FAILED, | 32 FAILED, |
33 }; | 33 }; |
34 | 34 |
35 virtual ~PrintingContext(); | 35 virtual ~PrintingContext(); |
36 | 36 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 129 |
130 // The application locale. | 130 // The application locale. |
131 std::string app_locale_; | 131 std::string app_locale_; |
132 | 132 |
133 DISALLOW_COPY_AND_ASSIGN(PrintingContext); | 133 DISALLOW_COPY_AND_ASSIGN(PrintingContext); |
134 }; | 134 }; |
135 | 135 |
136 } // namespace printing | 136 } // namespace printing |
137 | 137 |
138 #endif // PRINTING_PRINTING_CONTEXT_H_ | 138 #endif // PRINTING_PRINTING_CONTEXT_H_ |
OLD | NEW |