OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/callback.h" | 8 #include "base/callback.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "chrome/browser/printing/print_job_worker_owner.h" | 11 #include "chrome/browser/printing/print_job_worker_owner.h" |
12 #include "printing/print_job_constants.h" | 12 #include "printing/print_job_constants.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 class DictionaryValue; | 15 class DictionaryValue; |
16 } | 16 } |
17 | 17 |
18 namespace printing { | 18 namespace printing { |
19 | 19 |
20 class PrintDestinationInterface; | 20 class PrintDestinationInterface; |
21 class PrintJobWorker; | 21 class PrintJobWorker; |
22 | 22 |
23 // Query the printer for settings. | 23 // Query the printer for settings. |
24 class PrinterQuery : public PrintJobWorkerOwner { | 24 class PrinterQuery : public PrintJobWorkerOwner { |
25 public: | 25 public: |
26 // GetSettings() UI parameter. | 26 // GetSettings() UI parameter. |
27 enum GetSettingsAskParam { | 27 enum class GetSettingsAskParam { |
28 DEFAULTS, | 28 DEFAULTS, |
29 ASK_USER, | 29 ASK_USER, |
30 SYSTEM_SPECIFIC, | |
Vitaly Buka (NO REVIEWS)
2014/12/12 08:37:16
please replace system_specific with bool flag
| |
30 }; | 31 }; |
31 | 32 |
32 PrinterQuery(int render_process_id, int render_view_id); | 33 PrinterQuery(int render_process_id, int render_view_id); |
33 | 34 |
34 // PrintJobWorkerOwner implementation. | 35 // PrintJobWorkerOwner implementation. |
35 void GetSettingsDone(const PrintSettings& new_settings, | 36 void GetSettingsDone(const PrintSettings& new_settings, |
36 PrintingContext::Result result) override; | 37 PrintingContext::Result result) override; |
37 PrintJobWorker* DetachWorker(PrintJobWorkerOwner* new_owner) override; | 38 PrintJobWorker* DetachWorker(PrintJobWorkerOwner* new_owner) override; |
38 const PrintSettings& settings() const override; | 39 const PrintSettings& settings() const override; |
39 int cookie() const override; | 40 int cookie() const override; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
89 | 90 |
90 // Callback waiting to be run. | 91 // Callback waiting to be run. |
91 base::Closure callback_; | 92 base::Closure callback_; |
92 | 93 |
93 DISALLOW_COPY_AND_ASSIGN(PrinterQuery); | 94 DISALLOW_COPY_AND_ASSIGN(PrinterQuery); |
94 }; | 95 }; |
95 | 96 |
96 } // namespace printing | 97 } // namespace printing |
97 | 98 |
98 #endif // CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ | 99 #endif // CHROME_BROWSER_PRINTING_PRINTER_QUERY_H_ |
OLD | NEW |