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 // TODO(rltoscano): Move data/* into print_preview.data namespace | 5 // TODO(rltoscano): Move data/* into print_preview.data namespace |
6 | 6 |
7 <include src="component.js"> | 7 <include src="component.js"> |
8 <include src="print_preview_focus_manager.js"> | 8 <include src="print_preview_focus_manager.js"> |
9 | 9 |
10 cr.define('print_preview', function() { | 10 cr.define('print_preview', function() { |
11 'use strict'; | 11 'use strict'; |
12 | 12 |
13 /** | 13 /** |
14 * Container class for Chromium's print preview. | 14 * Container class for Chromium's print preview. |
15 * @constructor | 15 * @constructor |
16 * @extends {print_preview.Component} | 16 * @extends {print_preview.Component} |
17 */ | 17 */ |
18 function PrintPreview() { | 18 function PrintPreview() { |
19 print_preview.Component.call(this); | 19 print_preview.Component.call(this); |
20 | 20 |
21 /** | 21 /** |
22 * If in PrintBrowser mode, don't show the navbar | |
23 */ | |
24 if (loadTimeData.getBoolean('printBrowserEnabled')) | |
25 $('navbar-container').style.display = 'none'; | |
rbpotter
2016/12/16 20:05:29
Not sure that this stops all the events from the n
| |
26 | |
27 /** | |
22 * Whether the print scaling feature is enabled. | 28 * Whether the print scaling feature is enabled. |
23 * @type {boolean} | 29 * @type {boolean} |
24 * @private | 30 * @private |
25 */ | 31 */ |
26 this.scalingEnabled_ = loadTimeData.getBoolean('scalingEnabled'); | 32 this.scalingEnabled_ = loadTimeData.getBoolean('scalingEnabled'); |
27 | 33 |
28 /** | 34 /** |
29 * Used to communicate with Chromium's print system. | 35 * Used to communicate with Chromium's print system. |
30 * @type {!print_preview.NativeLayer} | 36 * @type {!print_preview.NativeLayer} |
31 * @private | 37 * @private |
(...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1360 <include src="search/recent_destination_list.js"> | 1366 <include src="search/recent_destination_list.js"> |
1361 <include src="search/destination_list_item.js"> | 1367 <include src="search/destination_list_item.js"> |
1362 <include src="search/destination_search.js"> | 1368 <include src="search/destination_search.js"> |
1363 <include src="search/fedex_tos.js"> | 1369 <include src="search/fedex_tos.js"> |
1364 <include src="search/provisional_destination_resolver.js"> | 1370 <include src="search/provisional_destination_resolver.js"> |
1365 | 1371 |
1366 window.addEventListener('DOMContentLoaded', function() { | 1372 window.addEventListener('DOMContentLoaded', function() { |
1367 printPreview = new print_preview.PrintPreview(); | 1373 printPreview = new print_preview.PrintPreview(); |
1368 printPreview.initialize(); | 1374 printPreview.initialize(); |
1369 }); | 1375 }); |
OLD | NEW |