OLD | NEW |
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 23 matching lines...) Expand all Loading... |
34 */ | 34 */ |
35 setItemAllowedOnAllSites: assertNotReached, | 35 setItemAllowedOnAllSites: assertNotReached, |
36 | 36 |
37 /** | 37 /** |
38 * @param {string} id | 38 * @param {string} id |
39 * @param {boolean} collectsErrors | 39 * @param {boolean} collectsErrors |
40 */ | 40 */ |
41 setItemCollectsErrors: assertNotReached, | 41 setItemCollectsErrors: assertNotReached, |
42 | 42 |
43 /** | 43 /** |
44 * @param {string} id, | 44 * @param {string} id |
45 * @param {chrome.developerPrivate.ExtensionView} view | 45 * @param {chrome.developerPrivate.ExtensionView} view |
46 */ | 46 */ |
47 inspectItemView: assertNotReached, | 47 inspectItemView: assertNotReached, |
48 | 48 |
49 /** @param {string} id */ | 49 /** @param {string} id */ |
50 repairItem: assertNotReached, | 50 repairItem: assertNotReached, |
| 51 |
| 52 /** @param {string} id */ |
| 53 showItemOptionsPage: assertNotReached, |
51 }; | 54 }; |
52 | 55 |
53 var Item = Polymer({ | 56 var Item = Polymer({ |
54 is: 'extensions-item', | 57 is: 'extensions-item', |
55 | 58 |
56 behaviors: [I18nBehavior], | 59 behaviors: [I18nBehavior], |
57 | 60 |
58 properties: { | 61 properties: { |
59 // The item's delegate, or null. | 62 // The item's delegate, or null. |
60 delegate: { | 63 delegate: { |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 return this.data.blacklistText ? 'severe' : 'mild'; | 217 return this.data.blacklistText ? 'severe' : 'mild'; |
215 }, | 218 }, |
216 }); | 219 }); |
217 | 220 |
218 return { | 221 return { |
219 Item: Item, | 222 Item: Item, |
220 ItemDelegate: ItemDelegate, | 223 ItemDelegate: ItemDelegate, |
221 }; | 224 }; |
222 }); | 225 }); |
223 | 226 |
OLD | NEW |