Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Side by Side Diff: chrome/browser/resources/options/website_settings.js

Issue 559423003: Compile chrome://settings, part 7. 33 errors left (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@H_options_errors_5
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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', function() { 5 cr.define('options', function() {
6 /** @const */ var Page = cr.ui.pageManager.Page; 6 /** @const */ var Page = cr.ui.pageManager.Page;
7 /** @const */ var PageManager = cr.ui.pageManager.PageManager; 7 /** @const */ var PageManager = cr.ui.pageManager.PageManager;
8 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; 8 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel;
9 9
10 // Lookup table to generate the i18n strings. 10 // Lookup table to generate the i18n strings.
(...skipping 30 matching lines...) Expand all
41 41
42 /** 42 /**
43 * The saved allowed origins list. 43 * The saved allowed origins list.
44 * @type {options.OriginList} 44 * @type {options.OriginList}
45 * @private 45 * @private
46 */ 46 */
47 allowedList_: null, 47 allowedList_: null,
48 48
49 /** 49 /**
50 * The saved blocked origins list. 50 * The saved blocked origins list.
51 * @type {OriginList} 51 * @type {options.OriginList}
52 * @private 52 * @private
53 */ 53 */
54 blockedList_: null, 54 blockedList_: null,
55 55
56 /** @override */ 56 /** @override */
57 initializePage: function() { 57 initializePage: function() {
58 Page.prototype.initializePage.call(this); 58 Page.prototype.initializePage.call(this);
59 59
60 $('website-settings-overlay-confirm').onclick = 60 $('website-settings-overlay-confirm').onclick =
61 PageManager.closeOverlay.bind(PageManager); 61 PageManager.closeOverlay.bind(PageManager);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 var blockedList = $('blocked-origin-list'); 111 var blockedList = $('blocked-origin-list');
112 options.OriginList.decorate(blockedList); 112 options.OriginList.decorate(blockedList);
113 this.blockedList_ = assertInstanceof(blockedList, options.OriginList); 113 this.blockedList_ = assertInstanceof(blockedList, options.OriginList);
114 this.blockedList_.autoExpands = true; 114 this.blockedList_.autoExpands = true;
115 }, 115 },
116 116
117 /** 117 /**
118 * Populate an origin list with all of the origins with a given permission 118 * Populate an origin list with all of the origins with a given permission
119 * or that are using a given resource. 119 * or that are using a given resource.
120 * @param {OriginList} originList A list to populate. 120 * @param {options.OriginList} originList A list to populate.
121 * @param {!Object} originDict A dictionary of origins to their usage, which 121 * @param {!Object} originDict A dictionary of origins to their usage, which
122 will be used to sort the origins. 122 will be used to sort the origins.
123 * @private 123 * @private
124 */ 124 */
125 populateOriginsHelper_: function(originList, originDict) { 125 populateOriginsHelper_: function(originList, originDict) {
126 var origins = Object.keys(originDict).map(function(origin) { 126 var origins = Object.keys(originDict).map(function(origin) {
127 // |usage| means the time of last usage in seconds since epoch 127 // |usage| means the time of last usage in seconds since epoch
128 // (Jan 1, 1970) for permissions and means the amount of local storage 128 // (Jan 1, 1970) for permissions and means the amount of local storage
129 // in bytes used for local storage. 129 // in bytes used for local storage.
130 return { 130 return {
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 251
252 WebsiteSettingsManager.updateDefault = function(dict) { 252 WebsiteSettingsManager.updateDefault = function(dict) {
253 WebsiteSettingsManager.getInstance().updateDefault(dict); 253 WebsiteSettingsManager.getInstance().updateDefault(dict);
254 }; 254 };
255 255
256 // Export 256 // Export
257 return { 257 return {
258 WebsiteSettingsManager: WebsiteSettingsManager 258 WebsiteSettingsManager: WebsiteSettingsManager
259 }; 259 };
260 }); 260 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698