| 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 cr.define('options', function() { | 5 cr.define('options', function() { |
| 6 const ArrayDataModel = cr.ui.ArrayDataModel; | 6 const ArrayDataModel = cr.ui.ArrayDataModel; |
| 7 const OptionsPage = options.OptionsPage; | 7 const OptionsPage = options.OptionsPage; |
| 8 const SettingsDialog = options.SettingsDialog; | 8 const SettingsDialog = options.SettingsDialog; |
| 9 | 9 |
| 10 /** | 10 /** |
| 11 * StartupOverlay class | 11 * StartupOverlay class |
| 12 * Encapsulated handling of the 'Set Startup pages' overlay page. | 12 * Encapsulated handling of the 'Set Startup pages' overlay page. |
| 13 * @constructor | 13 * @constructor |
| 14 * @class | 14 * @class |
| 15 */ | 15 */ |
| 16 function StartupOverlay() { | 16 function StartupOverlay() { |
| 17 SettingsDialog.call(this, 'startup', templateData.startupPagesDialogTitle, | 17 SettingsDialog.call(this, 'startup', |
| 18 'startup-overlay', | 18 templateData.startupPagesOverlayTabTitle, |
| 19 $('startup-overlay-confirm'), $('startup-overlay-cancel')); | 19 'startup-overlay', |
| 20 $('startup-overlay-confirm'), |
| 21 $('startup-overlay-cancel')); |
| 20 }; | 22 }; |
| 21 | 23 |
| 22 cr.addSingletonGetter(StartupOverlay); | 24 cr.addSingletonGetter(StartupOverlay); |
| 23 | 25 |
| 24 StartupOverlay.prototype = { | 26 StartupOverlay.prototype = { |
| 25 __proto__: SettingsDialog.prototype, | 27 __proto__: SettingsDialog.prototype, |
| 26 | 28 |
| 27 /** | 29 /** |
| 28 * An autocomplete list that can be attached to a text field during editing. | 30 * An autocomplete list that can be attached to a text field during editing. |
| 29 * @type {HTMLElement} | 31 * @type {HTMLElement} |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 var instance = StartupOverlay.getInstance(); | 128 var instance = StartupOverlay.getInstance(); |
| 127 return instance[name + '_'].apply(instance, arguments); | 129 return instance[name + '_'].apply(instance, arguments); |
| 128 }; | 130 }; |
| 129 }); | 131 }); |
| 130 | 132 |
| 131 // Export | 133 // Export |
| 132 return { | 134 return { |
| 133 StartupOverlay: StartupOverlay | 135 StartupOverlay: StartupOverlay |
| 134 }; | 136 }; |
| 135 }); | 137 }); |
| OLD | NEW |