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

Side by Side Diff: chrome/browser/resources/settings/site_settings/site_list.js

Issue 1477773003: Use dom-if to hide settings pages and show explicitly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'settings-site-list' shows a list of Allowed and Blocked sites for a given 7 * 'settings-site-list' shows a list of Allowed and Blocked sites for a given
8 * category. 8 * category.
9 * 9 *
10 * Example: 10 * Example:
(...skipping 29 matching lines...) Expand all
40 /** 40 /**
41 * Array of sites to display in the widget. 41 * Array of sites to display in the widget.
42 */ 42 */
43 sites_: { 43 sites_: {
44 type: Array, 44 type: Array,
45 value: function() { return []; }, 45 value: function() { return []; },
46 observer: 'onDataChanged_', 46 observer: 'onDataChanged_',
47 }, 47 },
48 48
49 /** 49 /**
50 * The ID of the category this widget is displaying data for.
51 * See site_settings/constants.js for possible values.
52 */
53 category: Number,
54
55 /**
56 * The type of category this widget is displaying data for. Normally 50 * The type of category this widget is displaying data for. Normally
57 * either ALLOW or BLOCK, representing which sites are allowed or blocked 51 * either ALLOW or BLOCK, representing which sites are allowed or blocked
58 * respectively. 52 * respectively.
59 */ 53 */
60 categorySubtype: Number, 54 categorySubtype: Number,
61 55
62 /** 56 /**
63 * Represents the state of the main toggle shown for the category. For 57 * Represents the state of the main toggle shown for the category. For
64 * example, the Location category can be set to Block/Ask so false, in that 58 * example, the Location category can be set to Block/Ask so false, in that
65 * case, represents Block and true represents Ask. 59 * case, represents Block and true represents Ask.
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 * Returns the icon to use for a given site. 270 * Returns the icon to use for a given site.
277 * @param {string} url The url of the site to fetch the icon for. 271 * @param {string} url The url of the site to fetch the icon for.
278 * @private 272 * @private
279 */ 273 */
280 computeSiteIcon_: function(url) { 274 computeSiteIcon_: function(url) {
281 // TODO(finnur): For now, we're returning a placeholder image for each site 275 // TODO(finnur): For now, we're returning a placeholder image for each site
282 // but the actual favicon for each site will need to be returned. 276 // but the actual favicon for each site will need to be returned.
283 return 'communication:message'; 277 return 'communication:message';
284 }, 278 },
285 }); 279 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698