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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 // Notifies the Web UI to cancel the pending preview request. | 129 // Notifies the Web UI to cancel the pending preview request. |
130 void OnCancelPendingPreviewRequest(); | 130 void OnCancelPendingPreviewRequest(); |
131 | 131 |
132 // Hides the print preview dialog. | 132 // Hides the print preview dialog. |
133 void OnHidePreviewDialog(); | 133 void OnHidePreviewDialog(); |
134 | 134 |
135 // Closes the print preview dialog. | 135 // Closes the print preview dialog. |
136 void OnClosePrintPreviewDialog(); | 136 void OnClosePrintPreviewDialog(); |
137 | 137 |
138 // Reload the printers list. | |
139 void OnReloadPrintersList(); | |
140 | |
141 // Notifies the WebUI to set print preset options from source PDF. | 138 // Notifies the WebUI to set print preset options from source PDF. |
142 void OnSetOptionsFromDocument( | 139 void OnSetOptionsFromDocument( |
143 const PrintHostMsg_SetOptionsFromDocument_Params& params); | 140 const PrintHostMsg_SetOptionsFromDocument_Params& params); |
144 | 141 |
145 // Allows tests to wait until the print preview dialog is loaded. | 142 // Allows tests to wait until the print preview dialog is loaded. |
146 class TestingDelegate { | 143 class TestingDelegate { |
147 public: | 144 public: |
148 virtual void DidGetPreviewPageCount(int page_count) = 0; | 145 virtual void DidGetPreviewPageCount(int page_count) = 0; |
149 virtual void DidRenderPreviewPage(content::WebContents* preview_dialog) = 0; | 146 virtual void DidRenderPreviewPage(content::WebContents* preview_dialog) = 0; |
150 }; | 147 }; |
(...skipping 33 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 |