OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 29 matching lines...) Expand all Loading... |
40 OK, | 40 OK, |
41 CANCEL, | 41 CANCEL, |
42 FAILED, | 42 FAILED, |
43 }; | 43 }; |
44 | 44 |
45 PrintingContext(); | 45 PrintingContext(); |
46 ~PrintingContext(); | 46 ~PrintingContext(); |
47 | 47 |
48 // Asks the user what printer and format should be used to print. Updates the | 48 // Asks the user what printer and format should be used to print. Updates the |
49 // context with the select device settings. | 49 // context with the select device settings. |
50 Result AskUserForSettings(gfx::NativeWindow window, int max_pages, | 50 Result AskUserForSettings(gfx::NativeView parent_view, int max_pages, |
51 bool has_selection); | 51 bool has_selection); |
52 | 52 |
53 // Selects the user's default printer and format. Updates the context with the | 53 // Selects the user's default printer and format. Updates the context with the |
54 // default device settings. | 54 // default device settings. |
55 Result UseDefaultSettings(); | 55 Result UseDefaultSettings(); |
56 | 56 |
57 void SetUseOverlays(bool use_overlays) { | 57 void SetUseOverlays(bool use_overlays) { |
58 settings_.use_overlays = use_overlays; | 58 settings_.use_overlays = use_overlays; |
59 } | 59 } |
60 | 60 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 | 171 |
172 // Did the user cancel the print job. | 172 // Did the user cancel the print job. |
173 volatile bool abort_printing_; | 173 volatile bool abort_printing_; |
174 | 174 |
175 DISALLOW_COPY_AND_ASSIGN(PrintingContext); | 175 DISALLOW_COPY_AND_ASSIGN(PrintingContext); |
176 }; | 176 }; |
177 | 177 |
178 } // namespace printing | 178 } // namespace printing |
179 | 179 |
180 #endif // PRINTING_PRINTING_CONTEXT_H_ | 180 #endif // PRINTING_PRINTING_CONTEXT_H_ |
OLD | NEW |