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

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

Issue 553573003: Compile chrome://settings, part 3: 167 proper errors left (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@G_options_errors_1
Patch Set: mark narrow type in createItem JSDoc 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 ///////////////////////////////////////////////////////////////////////////// 10 /////////////////////////////////////////////////////////////////////////////
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 this.createOriginsList_(); 63 this.createOriginsList_();
64 chrome.send('updateOrigins', ['geolocation']); 64 chrome.send('updateOrigins', ['geolocation']);
65 }, 65 },
66 66
67 /** 67 /**
68 * Creates, decorates and initializes the origin list. 68 * Creates, decorates and initializes the origin list.
69 * @private 69 * @private
70 */ 70 */
71 createOriginsList_: function() { 71 createOriginsList_: function() {
72 this.originList_ = this.pageDiv.querySelector('.origin-list'); 72 this.originList_ = /** @type {options.OriginList} */(
73 this.pageDiv.querySelector('.origin-list'));
73 options.OriginList.decorate(this.originList_); 74 options.OriginList.decorate(this.originList_);
74 this.originList_.autoExpands = true; 75 this.originList_.autoExpands = true;
75 }, 76 },
76 77
77 /** 78 /**
78 * Populate the origin list with all of the origins with a given permission 79 * Populate the origin list with all of the origins with a given permission
79 * or that are using a given resource. 80 * or that are using a given resource.
80 * @param {!Object} originDict A dictionary of origins to their usage, which 81 * @param {!Object} originDict A dictionary of origins to their usage, which
81 will be used to sort the origins. 82 will be used to sort the origins.
82 * @private 83 * @private
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 130
130 WebsiteSettingsManager.showEditPage = function(url) { 131 WebsiteSettingsManager.showEditPage = function(url) {
131 WebsiteSettingsEditor.getInstance().populatePage(url); 132 WebsiteSettingsEditor.getInstance().populatePage(url);
132 }; 133 };
133 134
134 // Export 135 // Export
135 return { 136 return {
136 WebsiteSettingsManager: WebsiteSettingsManager 137 WebsiteSettingsManager: WebsiteSettingsManager
137 }; 138 };
138 }); 139 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698