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

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

Issue 375253002: [Chrome] Support NumCopies print preset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // Closes the print preview dialog. 136 // Closes the print preview dialog.
137 void OnClosePrintPreviewDialog(); 137 void OnClosePrintPreviewDialog();
138 138
139 // Reload the printers list. 139 // Reload the printers list.
140 void OnReloadPrintersList(); 140 void OnReloadPrintersList();
141 141
142 // Notifies the WebUI that the pdf print scaling option is disabled by 142 // Notifies the WebUI that the pdf print scaling option is disabled by
143 // default. 143 // default.
144 void OnPrintPreviewScalingDisabled(); 144 void OnPrintPreviewScalingDisabled();
145 145
146 // Notifies the WebUI about number of copies to be printed.
147 void OnPrintPreviewNumCopies(int num_copies);
Vitaly Buka (NO REVIEWS) 2014/07/10 01:13:05 *SetCopies
Nikhil 2014/07/16 13:52:55 Removed, OnSetOptionsFromDocument() will be used.
148
146 // Allows tests to wait until the print preview dialog is loaded. Optionally 149 // Allows tests to wait until the print preview dialog is loaded. Optionally
147 // also instructs the dialog to auto-cancel, which is used for testing only. 150 // also instructs the dialog to auto-cancel, which is used for testing only.
148 class TestingDelegate { 151 class TestingDelegate {
149 public: 152 public:
150 virtual bool IsAutoCancelEnabled() = 0; 153 virtual bool IsAutoCancelEnabled() = 0;
151 virtual void DidGetPreviewPageCount(int page_count) = 0; 154 virtual void DidGetPreviewPageCount(int page_count) = 0;
152 virtual void DidRenderPreviewPage(content::WebContents* preview_dialog) = 0; 155 virtual void DidRenderPreviewPage(content::WebContents* preview_dialog) = 0;
153 }; 156 };
154 157
155 static void SetDelegateForTesting(TestingDelegate* delegate); 158 static void SetDelegateForTesting(TestingDelegate* delegate);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // title. 195 // title.
193 base::string16 initiator_title_; 196 base::string16 initiator_title_;
194 197
195 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not. 198 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not.
196 bool dialog_closed_; 199 bool dialog_closed_;
197 200
198 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); 201 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI);
199 }; 202 };
200 203
201 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ 204 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698