| 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_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // Notifies the Web UI that initiator tab is closed, so we can disable all the | 100 // Notifies the Web UI that initiator tab is closed, so we can disable all the |
| 101 // controls that need the initiator tab for generating the preview data. | 101 // controls that need the initiator tab for generating the preview data. |
| 102 void OnInitiatorTabClosed(); | 102 void OnInitiatorTabClosed(); |
| 103 | 103 |
| 104 // Notifies the Web UI that the initiator tab has crashed. | 104 // Notifies the Web UI that the initiator tab has crashed. |
| 105 void OnInitiatorTabCrashed(); | 105 void OnInitiatorTabCrashed(); |
| 106 | 106 |
| 107 // Notifies the Web UI renderer that file selection has been cancelled. | 107 // Notifies the Web UI renderer that file selection has been cancelled. |
| 108 void OnFileSelectionCancelled(); | 108 void OnFileSelectionCancelled(); |
| 109 | 109 |
| 110 // Notifies the Web UI renderer that file selection has been completed. |
| 111 void OnFileSelectionCompleted(); |
| 112 |
| 110 // Notifies the Web UI that the printer is unavailable or its settings are | 113 // Notifies the Web UI that the printer is unavailable or its settings are |
| 111 // invalid. | 114 // invalid. |
| 112 void OnInvalidPrinterSettings(); | 115 void OnInvalidPrinterSettings(); |
| 113 | 116 |
| 114 // Notifies the Web UI to cancel the pending preview request. | 117 // Notifies the Web UI to cancel the pending preview request. |
| 115 void OnCancelPendingPreviewRequest(); | 118 void OnCancelPendingPreviewRequest(); |
| 116 | 119 |
| 117 private: | 120 private: |
| 118 FRIEND_TEST_ALL_PREFIXES(PrintPreviewTabControllerUnitTest, | 121 FRIEND_TEST_ALL_PREFIXES(PrintPreviewTabControllerUnitTest, |
| 119 TitleAfterReload); | 122 TitleAfterReload); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 134 std::string initiator_url_; | 137 std::string initiator_url_; |
| 135 | 138 |
| 136 // Store the initiator tab title, used for populating the print preview tab | 139 // Store the initiator tab title, used for populating the print preview tab |
| 137 // title. | 140 // title. |
| 138 string16 initiator_tab_title_; | 141 string16 initiator_tab_title_; |
| 139 | 142 |
| 140 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); | 143 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); |
| 141 }; | 144 }; |
| 142 | 145 |
| 143 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ | 146 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ |
| OLD | NEW |