| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 void HandleManageCloudPrint(const base::ListValue* args); | 135 void HandleManageCloudPrint(const base::ListValue* args); |
| 136 | 136 |
| 137 // Reloads the initiator tab and closes the associated preview tab. |args| is | 137 // Reloads the initiator tab and closes the associated preview tab. |args| is |
| 138 // unused. | 138 // unused. |
| 139 void HandleReloadCrashedInitiatorTab(const base::ListValue* args); | 139 void HandleReloadCrashedInitiatorTab(const base::ListValue* args); |
| 140 | 140 |
| 141 // Asks the browser to show the native printer management dialog. | 141 // Asks the browser to show the native printer management dialog. |
| 142 // |args| is unused. | 142 // |args| is unused. |
| 143 void HandleManagePrinters(const base::ListValue* args); | 143 void HandleManagePrinters(const base::ListValue* args); |
| 144 | 144 |
| 145 // Asks the browser to show the cloud print dialog. |args| is unused. | 145 // Asks the browser to show the cloud print dialog. |
| 146 void HandlePrintWithCloudPrint(const base::ListValue* args); | 146 void HandlePrintWithCloudPrint(); |
| 147 | 147 |
| 148 // Asks the browser to close the preview tab. |args| is unused. | 148 // Asks the browser to close the preview tab. |args| is unused. |
| 149 void HandleClosePreviewTab(const base::ListValue* args); | 149 void HandleClosePreviewTab(const base::ListValue* args); |
| 150 | 150 |
| 151 // Asks the browser for the title of the initiator tab. | 151 // Asks the browser for the title of the initiator tab. |
| 152 // |args| is unused. | 152 // |args| is unused. |
| 153 void HandleGetInitiatorTabTitle(const base::ListValue* args); | 153 void HandleGetInitiatorTabTitle(const base::ListValue* args); |
| 154 | 154 |
| 155 // Sends the printer capabilities to the Web UI. |settings_info| contains | 155 // Sends the printer capabilities to the Web UI. |settings_info| contains |
| 156 // printer capabilities information. | 156 // printer capabilities information. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 bool has_logged_printers_count_; | 216 bool has_logged_printers_count_; |
| 217 | 217 |
| 218 // Holds the path to the print to pdf request. It is empty if no such request | 218 // Holds the path to the print to pdf request. It is empty if no such request |
| 219 // exists. | 219 // exists. |
| 220 scoped_ptr<FilePath> print_to_pdf_path_; | 220 scoped_ptr<FilePath> print_to_pdf_path_; |
| 221 | 221 |
| 222 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); | 222 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); |
| 223 }; | 223 }; |
| 224 | 224 |
| 225 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ | 225 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ |
| OLD | NEW |