| 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 */ var ArrayDataModel = cr.ui.ArrayDataModel; | 6 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; |
| 7 /** @const */ var OptionsPage = options.OptionsPage; | 7 /** @const */ var OptionsPage = options.OptionsPage; |
| 8 /** @const */ var SettingsDialog = options.SettingsDialog; | 8 /** @const */ var 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', | 17 SettingsDialog.call(this, 'startup', |
| 18 templateData.startupPagesOverlayTabTitle, | 18 loadTimeData.getString('startupPagesOverlayTabTitle'), |
| 19 'startup-overlay', | 19 'startup-overlay', |
| 20 $('startup-overlay-confirm'), | 20 $('startup-overlay-confirm'), |
| 21 $('startup-overlay-cancel')); | 21 $('startup-overlay-cancel')); |
| 22 }; | 22 }; |
| 23 | 23 |
| 24 cr.addSingletonGetter(StartupOverlay); | 24 cr.addSingletonGetter(StartupOverlay); |
| 25 | 25 |
| 26 StartupOverlay.prototype = { | 26 StartupOverlay.prototype = { |
| 27 __proto__: SettingsDialog.prototype, | 27 __proto__: SettingsDialog.prototype, |
| 28 | 28 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 var instance = StartupOverlay.getInstance(); | 165 var instance = StartupOverlay.getInstance(); |
| 166 return instance[name + '_'].apply(instance, arguments); | 166 return instance[name + '_'].apply(instance, arguments); |
| 167 }; | 167 }; |
| 168 }); | 168 }); |
| 169 | 169 |
| 170 // Export | 170 // Export |
| 171 return { | 171 return { |
| 172 StartupOverlay: StartupOverlay | 172 StartupOverlay: StartupOverlay |
| 173 }; | 173 }; |
| 174 }); | 174 }); |
| OLD | NEW |