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

Side by Side Diff: chrome/browser/resources/md_extensions/item.js

Issue 1913353002: [MD Extensions] Add a details subpage, move to one list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 cr.define('extensions', function() { 5 cr.define('extensions', function() {
6 /** @interface */ 6 /** @interface */
7 var ItemDelegate = function() {}; 7 var ItemDelegate = function() {};
8 8
9 ItemDelegate.prototype = { 9 ItemDelegate.prototype = {
10 /** @param {string} id */ 10 /** @param {string} id */
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 this.delegate.deleteItem(this.data.id); 90 this.delegate.deleteItem(this.data.id);
91 }, 91 },
92 92
93 /** @private */ 93 /** @private */
94 onEnableChange_: function() { 94 onEnableChange_: function() {
95 this.delegate.setItemEnabled(this.data.id, this.$.enabled.checked); 95 this.delegate.setItemEnabled(this.data.id, this.$.enabled.checked);
96 }, 96 },
97 97
98 /** @private */ 98 /** @private */
99 onDetailsTap_: function() { 99 onDetailsTap_: function() {
100 this.fire('extension-item-will-show-details', {element: this});
100 this.delegate.showItemDetails(this.data.id); 101 this.delegate.showItemDetails(this.data.id);
101 }, 102 },
102 103
103 /** @private */ 104 /** @private */
104 onAllowIncognitoChange_: function() { 105 onAllowIncognitoChange_: function() {
105 this.delegate.setItemAllowedIncognito( 106 this.delegate.setItemAllowedIncognito(
106 this.data.id, this.$$('#allow-incognito').checked); 107 this.data.id, this.$$('#allow-incognito').checked);
107 }, 108 },
108 109
109 /** 110 /**
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 return this.data.blacklistText ? 'severe' : 'mild'; 185 return this.data.blacklistText ? 'severe' : 'mild';
185 }, 186 },
186 }); 187 });
187 188
188 return { 189 return {
189 Item: Item, 190 Item: Item,
190 ItemDelegate: ItemDelegate, 191 ItemDelegate: ItemDelegate,
191 }; 192 };
192 }); 193 });
193 194
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698