Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(773)

Side by Side Diff: chrome/browser/ui/webui/print_preview/print_preview_ui.h

Issue 2969383003: Print Preview: Finish removing global Javascript functions. (Closed)
Patch Set: Fix test Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698