| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // Notifies the Web UI that initiator tab is closed, so we can disable all the | 97 // Notifies the Web UI that initiator tab is closed, so we can disable all the |
| 98 // controls that need the initiator tab for generating the preview data. | 98 // controls that need the initiator tab for generating the preview data. |
| 99 void OnInitiatorTabClosed(); | 99 void OnInitiatorTabClosed(); |
| 100 | 100 |
| 101 // Notifies the Web UI that the initiator tab has crashed. | 101 // Notifies the Web UI that the initiator tab has crashed. |
| 102 void OnInitiatorTabCrashed(); | 102 void OnInitiatorTabCrashed(); |
| 103 | 103 |
| 104 // Notifies the Web UI renderer that file selection has been cancelled. | 104 // Notifies the Web UI renderer that file selection has been cancelled. |
| 105 void OnFileSelectionCancelled(); | 105 void OnFileSelectionCancelled(); |
| 106 | 106 |
| 107 // Notifies the Web UI that the printer is unavailable or its settings are |
| 108 // invalid. |
| 109 void OnInvalidPrinterSettings(); |
| 110 |
| 107 // Notifies the Web UI to cancel the pending preview request. | 111 // Notifies the Web UI to cancel the pending preview request. |
| 108 void OnCancelPendingPreviewRequest(); | 112 void OnCancelPendingPreviewRequest(); |
| 109 | 113 |
| 110 private: | 114 private: |
| 111 FRIEND_TEST_ALL_PREFIXES(PrintPreviewTabControllerUnitTest, | 115 FRIEND_TEST_ALL_PREFIXES(PrintPreviewTabControllerUnitTest, |
| 112 TitleAfterReload); | 116 TitleAfterReload); |
| 113 | 117 |
| 114 // Returns the Singleton instance of the PrintPreviewDataService. | 118 // Returns the Singleton instance of the PrintPreviewDataService. |
| 115 PrintPreviewDataService* print_preview_data_service(); | 119 PrintPreviewDataService* print_preview_data_service(); |
| 116 | 120 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 127 std::string initiator_url_; | 131 std::string initiator_url_; |
| 128 | 132 |
| 129 // Store the initiator tab title, used for populating the print preview tab | 133 // Store the initiator tab title, used for populating the print preview tab |
| 130 // title. | 134 // title. |
| 131 string16 initiator_tab_title_; | 135 string16 initiator_tab_title_; |
| 132 | 136 |
| 133 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); | 137 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); |
| 134 }; | 138 }; |
| 135 | 139 |
| 136 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ | 140 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ |
| OLD | NEW |