| 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_PRINTER_QUERY_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ |
| 6 #define CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ | 6 #define CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ |
| 7 | 7 |
| 8 #include "app/gfx/native_widget_types.h" |
| 8 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 9 #include "chrome/browser/printing/print_job_worker_owner.h" | 10 #include "chrome/browser/printing/print_job_worker_owner.h" |
| 10 | 11 |
| 11 class CancelableTask; | 12 class CancelableTask; |
| 12 class MessageLoop; | 13 class MessageLoop; |
| 13 | 14 |
| 14 namespace base { | 15 namespace base { |
| 15 class Thread; | 16 class Thread; |
| 16 } | 17 } |
| 17 | 18 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 40 } | 41 } |
| 41 virtual const PrintSettings& settings() const { return settings_; } | 42 virtual const PrintSettings& settings() const { return settings_; } |
| 42 | 43 |
| 43 virtual int cookie() const { return cookie_; } | 44 virtual int cookie() const { return cookie_; } |
| 44 | 45 |
| 45 // Initializes the printing context. It is fine to call this function multiple | 46 // Initializes the printing context. It is fine to call this function multiple |
| 46 // times to reinitialize the settings. |parent_window| parameter will be the | 47 // times to reinitialize the settings. |parent_window| parameter will be the |
| 47 // owner of the print setting dialog box. It is unused when | 48 // owner of the print setting dialog box. It is unused when |
| 48 // |ask_for_user_settings| is DEFAULTS. | 49 // |ask_for_user_settings| is DEFAULTS. |
| 49 void GetSettings(GetSettingsAskParam ask_user_for_settings, | 50 void GetSettings(GetSettingsAskParam ask_user_for_settings, |
| 50 HWND parent_window, | 51 gfx::NativeWindow parent_window, |
| 51 int expected_page_count, | 52 int expected_page_count, |
| 52 bool has_selection, | 53 bool has_selection, |
| 53 CancelableTask* callback); | 54 CancelableTask* callback); |
| 54 | 55 |
| 55 // Stops the worker thread since the client is done with this object. | 56 // Stops the worker thread since the client is done with this object. |
| 56 void StopWorker(); | 57 void StopWorker(); |
| 57 | 58 |
| 58 // Returns true if the Print... dialog box is currently displayed. | 59 // Returns true if the Print... dialog box is currently displayed. |
| 59 bool is_print_dialog_box_shown() const; | 60 bool is_print_dialog_box_shown() const; |
| 60 | 61 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 90 | 91 |
| 91 // Task waiting to be executed. | 92 // Task waiting to be executed. |
| 92 scoped_ptr<CancelableTask> callback_; | 93 scoped_ptr<CancelableTask> callback_; |
| 93 | 94 |
| 94 DISALLOW_COPY_AND_ASSIGN(PrinterQuery); | 95 DISALLOW_COPY_AND_ASSIGN(PrinterQuery); |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 } // namespace printing | 98 } // namespace printing |
| 98 | 99 |
| 99 #endif // CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ | 100 #endif // CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ |
| OLD | NEW |