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 CHROME_BROWSER_PRINTING_PRINT_JOB_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_JOB_H_ |
6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_H_ | 6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_H_ |
7 | 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/gfx/native_widget_types.h" |
8 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
9 #include "base/ref_counted.h" | 11 #include "base/ref_counted.h" |
10 #include "chrome/browser/printing/print_job_worker_owner.h" | 12 #include "chrome/browser/printing/print_job_worker_owner.h" |
11 #include "chrome/common/notification_service.h" | 13 #include "chrome/common/notification_service.h" |
12 | 14 |
13 class ChromeFont; | 15 class ChromeFont; |
14 class GURL; | 16 class GURL; |
15 class Thread; | 17 class Thread; |
16 | 18 |
17 namespace printing { | 19 namespace printing { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 77 |
76 // DestructionObserver | 78 // DestructionObserver |
77 virtual void WillDestroyCurrentMessageLoop(); | 79 virtual void WillDestroyCurrentMessageLoop(); |
78 | 80 |
79 // Initializes the printing context. This can be done synchronously or not. It | 81 // Initializes the printing context. This can be done synchronously or not. It |
80 // is fine to call this function multiple times to reinitialize the settings. | 82 // is fine to call this function multiple times to reinitialize the settings. |
81 // |parent_window| parameter will be the owner of the print setting dialog | 83 // |parent_window| parameter will be the owner of the print setting dialog |
82 // box. It is unused when |ask_for_user_settings| is DEFAULTS. No-op if a | 84 // box. It is unused when |ask_for_user_settings| is DEFAULTS. No-op if a |
83 // print job is active. | 85 // print job is active. |
84 void GetSettings(GetSettingsAskParam ask_user_for_settings, | 86 void GetSettings(GetSettingsAskParam ask_user_for_settings, |
85 HWND parent_window); | 87 gfx::NativeView parent_window); |
86 | 88 |
87 // Starts the actual printing. Signals the worker that it should begin to | 89 // Starts the actual printing. Signals the worker that it should begin to |
88 // spool as soon as data is available. | 90 // spool as soon as data is available. |
89 void StartPrinting(); | 91 void StartPrinting(); |
90 | 92 |
91 // Waits for the worker thread to finish its queued tasks and disconnects the | 93 // Waits for the worker thread to finish its queued tasks and disconnects the |
92 // delegate object. The PrintJobManager will remove it reference. This may | 94 // delegate object. The PrintJobManager will remove it reference. This may |
93 // have the side-effect of destroying the object if the caller doesn't have a | 95 // have the side-effect of destroying the object if the caller doesn't have a |
94 // handle to the object. | 96 // handle to the object. |
95 void Stop(); | 97 void Stop(); |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 scoped_refptr<PrintedPage> page_; | 226 scoped_refptr<PrintedPage> page_; |
225 const Type type_; | 227 const Type type_; |
226 | 228 |
227 DISALLOW_COPY_AND_ASSIGN(JobEventDetails); | 229 DISALLOW_COPY_AND_ASSIGN(JobEventDetails); |
228 }; | 230 }; |
229 | 231 |
230 } // namespace printing | 232 } // namespace printing |
231 | 233 |
232 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_H_ | 234 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_H_ |
233 | 235 |
OLD | NEW |