OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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.WebsiteSettings', function() { | 5 cr.define('options.WebsiteSettings', function() { |
6 /** @const */ var Page = cr.ui.pageManager.Page; | 6 /** @const */ var Page = cr.ui.pageManager.Page; |
7 | 7 |
8 ///////////////////////////////////////////////////////////////////////////// | 8 ///////////////////////////////////////////////////////////////////////////// |
9 // WebsiteSettingsEditor class: | 9 // WebsiteSettingsEditor class: |
10 | 10 |
11 /** | 11 /** |
12 * Encapsulated handling of the website settings editor page. | 12 * Encapsulated handling of the website settings editor page. |
13 * @constructor | 13 * @constructor |
| 14 * @extends {cr.ui.pageManager.Page} |
14 */ | 15 */ |
15 function WebsiteSettingsEditor() { | 16 function WebsiteSettingsEditor() { |
16 Page.call(this, 'websiteEdit', | 17 Page.call(this, 'websiteEdit', |
17 loadTimeData.getString('websitesOptionsPageTabTitle'), | 18 loadTimeData.getString('websitesOptionsPageTabTitle'), |
18 'website-settings-edit-page'); | 19 'website-settings-edit-page'); |
19 this.permissions = ['geolocation', 'notifications', 'media-stream', | 20 this.permissions = ['geolocation', 'notifications', 'media-stream', |
20 'cookies', 'multiple-automatic-downloads', 'images', | 21 'cookies', 'multiple-automatic-downloads', 'images', |
21 'plugins', 'popups', 'javascript']; | 22 'plugins', 'popups', 'javascript']; |
22 this.permissionsLookup = { | 23 this.permissionsLookup = { |
23 'geolocation': 'Location', | 24 'geolocation': 'Location', |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 WebsiteSettingsEditor.showEditPage = function(url) { | 159 WebsiteSettingsEditor.showEditPage = function(url) { |
159 WebsiteSettingsEditor.getInstance().populatePage(url); | 160 WebsiteSettingsEditor.getInstance().populatePage(url); |
160 }; | 161 }; |
161 | 162 |
162 // Export | 163 // Export |
163 return { | 164 return { |
164 WebsiteSettingsEditor: WebsiteSettingsEditor | 165 WebsiteSettingsEditor: WebsiteSettingsEditor |
165 }; | 166 }; |
166 | 167 |
167 }); | 168 }); |
OLD | NEW |