| 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_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 void OnPrintPreviewFailed(); | 112 void OnPrintPreviewFailed(); |
| 113 | 113 |
| 114 // Notified the Web UI that this print preview dialog's RenderProcess has been | 114 // Notified the Web UI that this print preview dialog's RenderProcess has been |
| 115 // closed, which may occur for several reasons, e.g. tab closure or crash. | 115 // closed, which may occur for several reasons, e.g. tab closure or crash. |
| 116 void OnPrintPreviewDialogClosed(); | 116 void OnPrintPreviewDialogClosed(); |
| 117 | 117 |
| 118 // Notifies the Web UI that initiator is closed, so we can disable all the | 118 // Notifies the Web UI that initiator is closed, so we can disable all the |
| 119 // controls that need the initiator for generating the preview data. | 119 // controls that need the initiator for generating the preview data. |
| 120 void OnInitiatorClosed(); | 120 void OnInitiatorClosed(); |
| 121 | 121 |
| 122 // Notifies the Web UI renderer that file selection has been cancelled. | |
| 123 void OnFileSelectionCancelled(); | |
| 124 | |
| 125 // Notifies the Web UI that the printer is unavailable or its settings are | 122 // Notifies the Web UI that the printer is unavailable or its settings are |
| 126 // invalid. | 123 // invalid. |
| 127 void OnInvalidPrinterSettings(); | 124 void OnInvalidPrinterSettings(); |
| 128 | 125 |
| 129 // Notifies the Web UI to cancel the pending preview request. | 126 // Notifies the Web UI to cancel the pending preview request. |
| 130 void OnCancelPendingPreviewRequest(); | 127 void OnCancelPendingPreviewRequest(); |
| 131 | 128 |
| 132 // Hides the print preview dialog. | 129 // Hides the print preview dialog. |
| 133 void OnHidePreviewDialog(); | 130 void OnHidePreviewDialog(); |
| 134 | 131 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 // title. | 181 // title. |
| 185 base::string16 initiator_title_; | 182 base::string16 initiator_title_; |
| 186 | 183 |
| 187 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not. | 184 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not. |
| 188 bool dialog_closed_; | 185 bool dialog_closed_; |
| 189 | 186 |
| 190 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); | 187 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); |
| 191 }; | 188 }; |
| 192 | 189 |
| 193 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ | 190 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ |
| OLD | NEW |