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 * Encapsulates all settings and logic related to the media size selection UI. | 9 * Encapsulates all settings and logic related to the media size selection UI. |
10 * @param {!print_preview.ticket_items.MediaSize} ticketItem Used to read and | 10 * @param {!print_preview.ticket_items.MediaSize} ticketItem Used to read and |
11 * write the media size ticket item. | 11 * write the media size ticket item. |
12 * @constructor | 12 * @constructor |
13 * @extends {print_preview.SettingsSectionSelect} | 13 * @extends {print_preview.SettingsSectionSelect} |
14 */ | 14 */ |
15 function MediaSizeSettings(ticketItem) { | 15 function MediaSizeSettings(ticketItem) { |
16 print_preview.SettingsSectionSelect.call(this, ticketItem); | 16 print_preview.SettingsSectionSelect.call(this, ticketItem); |
17 }; | 17 } |
18 | 18 |
19 MediaSizeSettings.prototype = { | 19 MediaSizeSettings.prototype = { |
20 __proto__: print_preview.SettingsSectionSelect.prototype, | 20 __proto__: print_preview.SettingsSectionSelect.prototype, |
21 | 21 |
22 /** @override */ | 22 /** @override */ |
23 getDefaultDisplayName_: function(option) { | 23 getDefaultDisplayName_: function(option) { |
24 return option.name; | 24 return option.name; |
25 } | 25 } |
26 }; | 26 }; |
27 | 27 |
28 // Export | 28 // Export |
29 return { | 29 return { |
30 MediaSizeSettings: MediaSizeSettings | 30 MediaSizeSettings: MediaSizeSettings |
31 }; | 31 }; |
32 }); | 32 }); |
OLD | NEW |