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

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

Issue 1863623002: Convert Site Details to settings-subpage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback Created 4 years, 8 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 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 * 'site-details' show the details (permissions and usage) for a given origin 7 * 'site-details' show the details (permissions and usage) for a given origin
8 * under Site Settings. 8 * under Site Settings.
9 */ 9 */
10 Polymer({ 10 Polymer({
(...skipping 16 matching lines...) Expand all
27 */ 27 */
28 storedData_: { 28 storedData_: {
29 type: String, 29 type: String,
30 value: '', 30 value: '',
31 }, 31 },
32 32
33 /** 33 /**
34 * The type of storage for the origin. 34 * The type of storage for the origin.
35 */ 35 */
36 storageType_: Number, 36 storageType_: Number,
37
38 /**
39 * The current active route.
40 */
41 currentRoute: {
42 type: Object,
43 notify: true,
44 },
45 }, 37 },
46 38
47 listeners: { 39 listeners: {
48 'usage-deleted': 'onUsageDeleted', 40 'usage-deleted': 'onUsageDeleted',
49 }, 41 },
50 42
51 ready: function() { 43 ready: function() {
52 this.ContentSettingsTypes = settings.ContentSettingsTypes; 44 this.ContentSettingsTypes = settings.ContentSettingsTypes;
53 }, 45 },
54 46
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 93
102 /** 94 /**
103 * Returns true if one or more permission is showing. 95 * Returns true if one or more permission is showing.
104 */ 96 */
105 permissionShowing_: function() { 97 permissionShowing_: function() {
106 return Array.prototype.some.call( 98 return Array.prototype.some.call(
107 this.root.querySelectorAll('site-details-permission'), 99 this.root.querySelectorAll('site-details-permission'),
108 function(element) { return element.offsetHeight > 0; }); 100 function(element) { return element.offsetHeight > 0; });
109 }, 101 },
110 }); 102 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698