| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // unused. | 114 // unused. |
| 115 void HandleReloadCrashedInitiatorTab(const base::ListValue* args); | 115 void HandleReloadCrashedInitiatorTab(const base::ListValue* args); |
| 116 | 116 |
| 117 // Asks the browser to show the native printer management dialog. | 117 // Asks the browser to show the native printer management dialog. |
| 118 // |args| is unused. | 118 // |args| is unused. |
| 119 void HandleManagePrinters(const base::ListValue* args); | 119 void HandleManagePrinters(const base::ListValue* args); |
| 120 | 120 |
| 121 // Asks the browser to close the preview tab. |args| is unused. | 121 // Asks the browser to close the preview tab. |args| is unused. |
| 122 void HandleClosePreviewTab(const base::ListValue* args); | 122 void HandleClosePreviewTab(const base::ListValue* args); |
| 123 | 123 |
| 124 // Asks the browser for the title of the initiator tab. |
| 125 // |args| is unused. |
| 126 void HandleGetInitiatorTabTitle(const base::ListValue* args); |
| 127 |
| 124 // Sends the printer capabilities to the Web UI. |settings_info| contains | 128 // Sends the printer capabilities to the Web UI. |settings_info| contains |
| 125 // printer capabilities information. | 129 // printer capabilities information. |
| 126 void SendPrinterCapabilities(const base::DictionaryValue& settings_info); | 130 void SendPrinterCapabilities(const base::DictionaryValue& settings_info); |
| 127 | 131 |
| 128 // Sends the default printer to the Web UI. | 132 // Sends the default printer to the Web UI. |
| 129 void SendDefaultPrinter(const base::StringValue& default_printer, | 133 void SendDefaultPrinter(const base::StringValue& default_printer, |
| 130 const base::StringValue& cloud_print_data); | 134 const base::StringValue& cloud_print_data); |
| 131 | 135 |
| 132 // Send the list of printers to the Web UI. | 136 // Send the list of printers to the Web UI. |
| 133 void SetupPrinterList(const base::ListValue& printers); | 137 void SetupPrinterList(const base::ListValue& printers); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // Whether we have already logged a failed print preview. | 182 // Whether we have already logged a failed print preview. |
| 179 bool reported_failed_preview_; | 183 bool reported_failed_preview_; |
| 180 | 184 |
| 181 // Whether we have already logged the number of printers this session. | 185 // Whether we have already logged the number of printers this session. |
| 182 bool has_logged_printers_count_; | 186 bool has_logged_printers_count_; |
| 183 | 187 |
| 184 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); | 188 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); |
| 185 }; | 189 }; |
| 186 | 190 |
| 187 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ | 191 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ |
| OLD | NEW |