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 renderer that file selection has been completed. |
| 108 void OnFileSelectionCompleted(); |
| 109 |
107 // Notifies the Web UI that the printer is unavailable or its settings are | 110 // Notifies the Web UI that the printer is unavailable or its settings are |
108 // invalid. | 111 // invalid. |
109 void OnInvalidPrinterSettings(); | 112 void OnInvalidPrinterSettings(); |
110 | 113 |
111 // Notifies the Web UI to cancel the pending preview request. | 114 // Notifies the Web UI to cancel the pending preview request. |
112 void OnCancelPendingPreviewRequest(); | 115 void OnCancelPendingPreviewRequest(); |
113 | 116 |
114 private: | 117 private: |
115 FRIEND_TEST_ALL_PREFIXES(PrintPreviewTabControllerUnitTest, | 118 FRIEND_TEST_ALL_PREFIXES(PrintPreviewTabControllerUnitTest, |
116 TitleAfterReload); | 119 TitleAfterReload); |
(...skipping 14 matching lines...) Expand all Loading... |
131 std::string initiator_url_; | 134 std::string initiator_url_; |
132 | 135 |
133 // Store the initiator tab title, used for populating the print preview tab | 136 // Store the initiator tab title, used for populating the print preview tab |
134 // title. | 137 // title. |
135 string16 initiator_tab_title_; | 138 string16 initiator_tab_title_; |
136 | 139 |
137 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); | 140 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); |
138 }; | 141 }; |
139 | 142 |
140 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ | 143 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ |
OLD | NEW |