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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 133 |
134 // Hides the print preview tab. | 134 // Hides the print preview tab. |
135 void OnHidePreviewTab(); | 135 void OnHidePreviewTab(); |
136 | 136 |
137 // Closes the print preview tab. | 137 // Closes the print preview tab. |
138 void OnClosePrintPreviewTab(); | 138 void OnClosePrintPreviewTab(); |
139 | 139 |
140 // Reload the printers list. | 140 // Reload the printers list. |
141 void OnReloadPrintersList(); | 141 void OnReloadPrintersList(); |
142 | 142 |
| 143 // Notifies the WebUI that the pdf print scaling option is disabled by |
| 144 // default. |
| 145 void OnPrintPreviewScalingDisabled(); |
| 146 |
143 private: | 147 private: |
144 friend class PrintPreviewHandlerTest; | 148 friend class PrintPreviewHandlerTest; |
145 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsCustom); | 149 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsCustom); |
146 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsDefault); | 150 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsDefault); |
147 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, | 151 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, |
148 StickyMarginsCustomThenDefault); | 152 StickyMarginsCustomThenDefault); |
149 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, | 153 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, |
150 GetLastUsedMarginSettingsCustom); | 154 GetLastUsedMarginSettingsCustom); |
151 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, | 155 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, |
152 GetLastUsedMarginSettingsDefault); | 156 GetLastUsedMarginSettingsDefault); |
(...skipping 25 matching lines...) Expand all Loading... |
178 // Keeps track of whether OnClosePrintPreviewTab() has been called or not. | 182 // Keeps track of whether OnClosePrintPreviewTab() has been called or not. |
179 bool tab_closed_; | 183 bool tab_closed_; |
180 | 184 |
181 // True if the user visited the page directly, false if it's a live UI. | 185 // True if the user visited the page directly, false if it's a live UI. |
182 bool is_dummy_; | 186 bool is_dummy_; |
183 | 187 |
184 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); | 188 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); |
185 }; | 189 }; |
186 | 190 |
187 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ | 191 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ |
OLD | NEW |