| 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, |
| 20 'extensionSettings', | 20 'extensions', |
| 21 templateData.extensionSettingsTitle, | 21 templateData.extensionSettingsTitle, |
| 22 'extension-settings'); | 22 'extension-settings'); |
| 23 } | 23 } |
| 24 | 24 |
| 25 cr.addSingletonGetter(ExtensionSettings); | 25 cr.addSingletonGetter(ExtensionSettings); |
| 26 | 26 |
| 27 ExtensionSettings.prototype = { | 27 ExtensionSettings.prototype = { |
| 28 __proto__: OptionsPage.prototype, | 28 __proto__: OptionsPage.prototype, |
| 29 | 29 |
| 30 /** | 30 /** |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 176 |
| 177 var extensionList = $('extension-settings-list'); | 177 var extensionList = $('extension-settings-list'); |
| 178 ExtensionsList.decorate(extensionList); | 178 ExtensionsList.decorate(extensionList); |
| 179 } | 179 } |
| 180 | 180 |
| 181 // Export | 181 // Export |
| 182 return { | 182 return { |
| 183 ExtensionSettings: ExtensionSettings | 183 ExtensionSettings: ExtensionSettings |
| 184 }; | 184 }; |
| 185 }); | 185 }); |
| OLD | NEW |