OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 void SelectFile(const FilePath& default_path); | 51 void SelectFile(const FilePath& default_path); |
52 | 52 |
53 // Called when the print preview tab is destroyed. This is the last time | 53 // Called when the print preview tab is destroyed. This is the last time |
54 // this object has access to the PrintViewManager in order to disconnect the | 54 // this object has access to the PrintViewManager in order to disconnect the |
55 // observer. | 55 // observer. |
56 void OnTabDestroyed(); | 56 void OnTabDestroyed(); |
57 | 57 |
58 // Called when print preview failed. | 58 // Called when print preview failed. |
59 void OnPrintPreviewFailed(); | 59 void OnPrintPreviewFailed(); |
60 | 60 |
| 61 // Called when the user press ctrl+shift+p to display the native system |
| 62 // dialog. |
| 63 void ShowSystemDialog(); |
| 64 |
61 private: | 65 private: |
62 friend class PrintSystemTaskProxy; | 66 friend class PrintSystemTaskProxy; |
63 | 67 |
64 TabContents* preview_tab(); | 68 TabContents* preview_tab(); |
65 | 69 |
66 // Gets the default printer. |args| is unused. | 70 // Gets the default printer. |args| is unused. |
67 void HandleGetDefaultPrinter(const base::ListValue* args); | 71 void HandleGetDefaultPrinter(const base::ListValue* args); |
68 | 72 |
69 // Gets the list of printers. |args| is unused. | 73 // Gets the list of printers. |args| is unused. |
70 void HandleGetPrinters(const base::ListValue* args); | 74 void HandleGetPrinters(const base::ListValue* args); |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 // Whether we have already logged a failed print preview. | 176 // Whether we have already logged a failed print preview. |
173 bool reported_failed_preview_; | 177 bool reported_failed_preview_; |
174 | 178 |
175 // Whether we have already logged the number of printers this session. | 179 // Whether we have already logged the number of printers this session. |
176 bool has_logged_printers_count_; | 180 bool has_logged_printers_count_; |
177 | 181 |
178 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); | 182 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); |
179 }; | 183 }; |
180 | 184 |
181 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ | 185 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ |
OLD | NEW |