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

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

Issue 10083060: [Print Preview]: Added code to support pdf fit to page functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 8 years, 8 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 | Annotate | Revision Log
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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 // Hides the print preview tab. 130 // Hides the print preview tab.
131 void OnHidePreviewTab(); 131 void OnHidePreviewTab();
132 132
133 // Closes the print preview tab. 133 // Closes the print preview tab.
134 void OnClosePrintPreviewTab(); 134 void OnClosePrintPreviewTab();
135 135
136 // Reload the printers list. 136 // Reload the printers list.
137 void OnReloadPrintersList(); 137 void OnReloadPrintersList();
138 138
139 // Notifies the WebUI that the pdf print scaling option is disabled by
140 // default.
141 void OnPrintPreviewScalingDisabled();
142
139 private: 143 private:
140 friend class PrintPreviewHandlerTest; 144 friend class PrintPreviewHandlerTest;
141 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsCustom); 145 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsCustom);
142 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsDefault); 146 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsDefault);
143 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, 147 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest,
144 StickyMarginsCustomThenDefault); 148 StickyMarginsCustomThenDefault);
145 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, 149 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest,
146 GetLastUsedMarginSettingsCustom); 150 GetLastUsedMarginSettingsCustom);
147 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, 151 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest,
148 GetLastUsedMarginSettingsDefault); 152 GetLastUsedMarginSettingsDefault);
(...skipping 25 matching lines...) Expand all
174 // Keeps track of whether OnClosePrintPreviewTab() has been called or not. 178 // Keeps track of whether OnClosePrintPreviewTab() has been called or not.
175 bool tab_closed_; 179 bool tab_closed_;
176 180
177 // True if the user visited the page directly, false if it's a live UI. 181 // True if the user visited the page directly, false if it's a live UI.
178 bool is_dummy_; 182 bool is_dummy_;
179 183
180 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); 184 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI);
181 }; 185 };
182 186
183 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ 187 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698