OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 cr.define('print_preview', function() { | 5 cr.define('print_preview', function() { |
6 'use strict'; | 6 'use strict'; |
7 | 7 |
8 /** | 8 /** |
9 * Toggles visibility of the specified printing options sections. | 9 * Toggles visibility of the specified printing options sections. |
10 * @param {!print_preview.DestinationStore} destinationStore To listen for | 10 * @param {!print_preview.DestinationStore} destinationStore To listen for |
(...skipping 19 matching lines...) Expand all Loading... |
30 this.capabilitiesReady_ = false; | 30 this.capabilitiesReady_ = false; |
31 | 31 |
32 /** @private {boolean} */ | 32 /** @private {boolean} */ |
33 this.firstDestinationReady_ = false; | 33 this.firstDestinationReady_ = false; |
34 | 34 |
35 /** | 35 /** |
36 * Used to record usage statistics. | 36 * Used to record usage statistics. |
37 * @private {!print_preview.PrintSettingsUiMetricsContext} | 37 * @private {!print_preview.PrintSettingsUiMetricsContext} |
38 */ | 38 */ |
39 this.metrics_ = new print_preview.PrintSettingsUiMetricsContext(); | 39 this.metrics_ = new print_preview.PrintSettingsUiMetricsContext(); |
40 }; | 40 } |
41 | 41 |
42 /** | 42 /** |
43 * Which settings are visible to the user. | 43 * Which settings are visible to the user. |
44 * @enum {number} | 44 * @enum {number} |
45 */ | 45 */ |
46 MoreSettings.SettingsToShow = { | 46 MoreSettings.SettingsToShow = { |
47 MOST_POPULAR: 1, | 47 MOST_POPULAR: 1, |
48 ALL: 2 | 48 ALL: 2 |
49 }; | 49 }; |
50 | 50 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 section.setCollapseContent(collapseContent, noAnimation); | 163 section.setCollapseContent(collapseContent, noAnimation); |
164 }); | 164 }); |
165 } | 165 } |
166 }; | 166 }; |
167 | 167 |
168 // Export | 168 // Export |
169 return { | 169 return { |
170 MoreSettings: MoreSettings | 170 MoreSettings: MoreSettings |
171 }; | 171 }; |
172 }); | 172 }); |
OLD | NEW |