| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // Second element of |args| is the current cloud print data JSON. | 86 // Second element of |args| is the current cloud print data JSON. |
| 87 void HandleSaveLastPrinter(const base::ListValue* args); | 87 void HandleSaveLastPrinter(const base::ListValue* args); |
| 88 | 88 |
| 89 // Gets the printer capabilities. First element of |args| is the printer name. | 89 // Gets the printer capabilities. First element of |args| is the printer name. |
| 90 void HandleGetPrinterCapabilities(const base::ListValue* args); | 90 void HandleGetPrinterCapabilities(const base::ListValue* args); |
| 91 | 91 |
| 92 // Asks the initiator renderer to show the native print system dialog. |args| | 92 // Asks the initiator renderer to show the native print system dialog. |args| |
| 93 // is unused. | 93 // is unused. |
| 94 void HandleShowSystemDialog(const base::ListValue* args); | 94 void HandleShowSystemDialog(const base::ListValue* args); |
| 95 | 95 |
| 96 // Brings up a dialog to allow the user to sign into cloud print. |
| 97 // |args| is unused. |
| 98 void HandleSignin(const base::ListValue* args); |
| 99 |
| 96 // Brings up a web page to allow the user to configure cloud print. | 100 // Brings up a web page to allow the user to configure cloud print. |
| 97 // |args| is unused. | 101 // |args| is unused. |
| 98 void HandleManageCloudPrint(const base::ListValue* args); | 102 void HandleManageCloudPrint(const base::ListValue* args); |
| 99 | 103 |
| 100 // Reloads the initiator tab and closes the associated preview tab. |args| is | 104 // Reloads the initiator tab and closes the associated preview tab. |args| is |
| 101 // unused. | 105 // unused. |
| 102 void HandleReloadCrashedInitiatorTab(const base::ListValue* args); | 106 void HandleReloadCrashedInitiatorTab(const base::ListValue* args); |
| 103 | 107 |
| 104 // Asks the browser to show the native printer management dialog. | 108 // Asks the browser to show the native printer management dialog. |
| 105 // |args| is unused. | 109 // |args| is unused. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 // Whether we have already logged a failed print preview. | 169 // Whether we have already logged a failed print preview. |
| 166 bool reported_failed_preview_; | 170 bool reported_failed_preview_; |
| 167 | 171 |
| 168 // Whether we have already logged the number of printers this session. | 172 // Whether we have already logged the number of printers this session. |
| 169 bool has_logged_printers_count_; | 173 bool has_logged_printers_count_; |
| 170 | 174 |
| 171 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); | 175 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); |
| 172 }; | 176 }; |
| 173 | 177 |
| 174 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ | 178 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ |
| OLD | NEW |