| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Used for observing function of the backend datasource for this page by | 5 // Used for observing function of the backend datasource for this page by |
| 6 // tests. | 6 // tests. |
| 7 var webui_responded_ = false; | 7 var webui_responded_ = false; |
| 8 | 8 |
| 9 cr.define('options', function() { | 9 cr.define('options', function() { |
| 10 var OptionsPage = options.OptionsPage; | 10 var OptionsPage = options.OptionsPage; |
| 11 var ExtensionsList = options.ExtensionsList; | 11 var ExtensionsList = options.ExtensionsList; |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * ExtensionSettings class | 14 * ExtensionSettings class |
| 15 * Encapsulated handling of the 'Manage Extensions' page. | 15 * Encapsulated handling of the 'Manage Extensions' page. |
| 16 * @class | 16 * @class |
| 17 */ | 17 */ |
| 18 function ExtensionSettings() { | 18 function ExtensionSettings() { |
| 19 OptionsPage.call(this, | 19 OptionsPage.call(this, 'extensions', |
| 20 'extensions', | 20 templateData.extensionSettingsTabTitle, |
| 21 templateData.extensionSettingsTitle, | |
| 22 'extension-settings'); | 21 'extension-settings'); |
| 23 } | 22 } |
| 24 | 23 |
| 25 cr.addSingletonGetter(ExtensionSettings); | 24 cr.addSingletonGetter(ExtensionSettings); |
| 26 | 25 |
| 27 ExtensionSettings.prototype = { | 26 ExtensionSettings.prototype = { |
| 28 __proto__: OptionsPage.prototype, | 27 __proto__: OptionsPage.prototype, |
| 29 | 28 |
| 30 /** | 29 /** |
| 31 * Initialize the page. | 30 * Initialize the page. |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 175 |
| 177 var extensionList = $('extension-settings-list'); | 176 var extensionList = $('extension-settings-list'); |
| 178 ExtensionsList.decorate(extensionList); | 177 ExtensionsList.decorate(extensionList); |
| 179 } | 178 } |
| 180 | 179 |
| 181 // Export | 180 // Export |
| 182 return { | 181 return { |
| 183 ExtensionSettings: ExtensionSettings | 182 ExtensionSettings: ExtensionSettings |
| 184 }; | 183 }; |
| 185 }); | 184 }); |
| OLD | NEW |