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 /** |
(...skipping 20 matching lines...) Expand all Loading... |
31 * @type {HTMLElement} | 31 * @type {HTMLElement} |
32 * @private | 32 * @private |
33 */ | 33 */ |
34 autocompleteList_: null, | 34 autocompleteList_: null, |
35 | 35 |
36 startup_pages_pref_: { | 36 startup_pages_pref_: { |
37 'name': 'session.startup_urls', | 37 'name': 'session.startup_urls', |
38 'disabled': false | 38 'disabled': false |
39 }, | 39 }, |
40 | 40 |
41 /** | 41 /** @override */ |
42 * Initialize the page. | |
43 */ | |
44 initializePage: function() { | 42 initializePage: function() { |
45 SettingsDialog.prototype.initializePage.call(this); | 43 SettingsDialog.prototype.initializePage.call(this); |
46 | 44 |
47 var self = this; | 45 var self = this; |
48 | 46 |
49 var startupPagesList = $('startupPagesList'); | 47 var startupPagesList = $('startupPagesList'); |
50 options.browser_options.StartupPageList.decorate(startupPagesList); | 48 options.browser_options.StartupPageList.decorate(startupPagesList); |
51 startupPagesList.autoExpands = true; | 49 startupPagesList.autoExpands = true; |
52 | 50 |
53 $('startupUseCurrentButton').onclick = function(event) { | 51 $('startupUseCurrentButton').onclick = function(event) { |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 var instance = StartupOverlay.getInstance(); | 164 var instance = StartupOverlay.getInstance(); |
167 return instance[name + '_'].apply(instance, arguments); | 165 return instance[name + '_'].apply(instance, arguments); |
168 }; | 166 }; |
169 }); | 167 }); |
170 | 168 |
171 // Export | 169 // Export |
172 return { | 170 return { |
173 StartupOverlay: StartupOverlay | 171 StartupOverlay: StartupOverlay |
174 }; | 172 }; |
175 }); | 173 }); |
OLD | NEW |