Chromium Code Reviews| 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_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 139 // |args| is unused. | 139 // |args| is unused. |
| 140 void HandleHidePreview(const base::ListValue* args); | 140 void HandleHidePreview(const base::ListValue* args); |
| 141 | 141 |
| 142 // Handles the request to cancel the pending print request. |args| is unused. | 142 // Handles the request to cancel the pending print request. |args| is unused. |
| 143 void HandleCancelPendingPrintRequest(const base::ListValue* args); | 143 void HandleCancelPendingPrintRequest(const base::ListValue* args); |
| 144 | 144 |
| 145 // Handles a request to store data that the web ui wishes to persist. | 145 // Handles a request to store data that the web ui wishes to persist. |
| 146 // First element of |args| is the data to persist. | 146 // First element of |args| is the data to persist. |
| 147 void HandleSaveAppState(const base::ListValue* args); | 147 void HandleSaveAppState(const base::ListValue* args); |
| 148 | 148 |
| 149 // Gets the printer capabilities. First element of |args| is the printer name. | 149 // Gets the printer capabilities for the printer |printer_name|. |
|
Lei Zhang
2016/11/03 23:41:46
You reverted back to HandleGetPrinterCapabilities(
skau
2016/11/04 19:28:59
Oops
| |
| 150 void HandleGetPrinterCapabilities(const base::ListValue* args); | 150 void HandleGetPrinterCapabilities(const base::ListValue* args); |
| 151 | 151 |
| 152 #if BUILDFLAG(ENABLE_BASIC_PRINT_DIALOG) | 152 #if BUILDFLAG(ENABLE_BASIC_PRINT_DIALOG) |
| 153 // Asks the initiator renderer to show the native print system dialog. |args| | 153 // Asks the initiator renderer to show the native print system dialog. |args| |
| 154 // is unused. | 154 // is unused. |
| 155 void HandleShowSystemDialog(const base::ListValue* args); | 155 void HandleShowSystemDialog(const base::ListValue* args); |
| 156 #endif | 156 #endif |
| 157 | 157 |
| 158 // Callback for the signin dialog to call once signin is complete. | 158 // Callback for the signin dialog to call once signin is complete. |
| 159 void OnSigninComplete(); | 159 void OnSigninComplete(); |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 379 // Notifies tests that want to know if the PDF has been saved. This doesn't | 379 // Notifies tests that want to know if the PDF has been saved. This doesn't |
| 380 // notify the test if it was a successful save, only that it was attempted. | 380 // notify the test if it was a successful save, only that it was attempted. |
| 381 base::Closure pdf_file_saved_closure_; | 381 base::Closure pdf_file_saved_closure_; |
| 382 | 382 |
| 383 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; | 383 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; |
| 384 | 384 |
| 385 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); | 385 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); |
| 386 }; | 386 }; |
| 387 | 387 |
| 388 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ | 388 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ |
| OLD | NEW |