| 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 "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
| 9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 10 #include "chrome/browser/printing/print_job_worker_owner.h" | 10 #include "chrome/browser/printing/print_job_worker_owner.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 virtual int cookie() const { return cookie_; } | 51 virtual int cookie() const { return cookie_; } |
| 52 | 52 |
| 53 // Initializes the printing context. It is fine to call this function multiple | 53 // Initializes the printing context. It is fine to call this function multiple |
| 54 // times to reinitialize the settings. |parent_window| parameter will be the | 54 // times to reinitialize the settings. |parent_window| parameter will be the |
| 55 // owner of the print setting dialog box. It is unused when | 55 // owner of the print setting dialog box. It is unused when |
| 56 // |ask_for_user_settings| is DEFAULTS. | 56 // |ask_for_user_settings| is DEFAULTS. |
| 57 void GetSettings(GetSettingsAskParam ask_user_for_settings, | 57 void GetSettings(GetSettingsAskParam ask_user_for_settings, |
| 58 HWND parent_window, | 58 HWND parent_window, |
| 59 int expected_page_count, | 59 int expected_page_count, |
| 60 bool has_selection, |
| 60 CancelableTask* callback); | 61 CancelableTask* callback); |
| 61 | 62 |
| 62 // Stops the worker thread since the client is done with this object. | 63 // Stops the worker thread since the client is done with this object. |
| 63 void StopWorker(); | 64 void StopWorker(); |
| 64 | 65 |
| 65 // Returns true if the Print... dialog box is currently displayed. | 66 // Returns true if the Print... dialog box is currently displayed. |
| 66 bool is_print_dialog_box_shown() const; | 67 bool is_print_dialog_box_shown() const; |
| 67 | 68 |
| 68 // Returns true if a GetSettings() call is pending completion. | 69 // Returns true if a GetSettings() call is pending completion. |
| 69 bool is_callback_pending() const; | 70 bool is_callback_pending() const; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 97 | 98 |
| 98 // Task waiting to be executed. | 99 // Task waiting to be executed. |
| 99 scoped_ptr<CancelableTask> callback_; | 100 scoped_ptr<CancelableTask> callback_; |
| 100 | 101 |
| 101 DISALLOW_COPY_AND_ASSIGN(PrinterQuery); | 102 DISALLOW_COPY_AND_ASSIGN(PrinterQuery); |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 } // namespace printing | 105 } // namespace printing |
| 105 | 106 |
| 106 #endif // CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ | 107 #endif // CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ |
| OLD | NEW |