| 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 var ItemList = Polymer({ | 6 var ItemList = Polymer({ |
| 7 is: 'extensions-item-list', | 7 is: 'extensions-item-list', |
| 8 | 8 |
| 9 behaviors: [ | 9 behaviors: [Polymer.NeonAnimatableBehavior, Polymer.IronResizableBehavior], |
| 10 Polymer.NeonAnimatableBehavior, | |
| 11 Polymer.IronResizableBehavior | |
| 12 ], | |
| 13 | 10 |
| 14 properties: { | 11 properties: { |
| 15 /** @type {Array<!chrome.developerPrivate.ExtensionInfo>} */ | 12 /** @type {Array<!chrome.developerPrivate.ExtensionInfo>} */ |
| 16 items: Array, | 13 items: Array, |
| 17 | 14 |
| 18 /** @type {extensions.ItemDelegate} */ | 15 /** @type {extensions.ItemDelegate} */ |
| 19 delegate: Object, | 16 delegate: Object, |
| 20 | 17 |
| 21 inDevMode: { | 18 inDevMode: { |
| 22 type: Boolean, | 19 type: Boolean, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 return this.items.filter(function(item) { | 72 return this.items.filter(function(item) { |
| 76 return item.name.toLowerCase().includes(this.filter.toLowerCase()); | 73 return item.name.toLowerCase().includes(this.filter.toLowerCase()); |
| 77 }, this); | 74 }, this); |
| 78 }, | 75 }, |
| 79 }); | 76 }); |
| 80 | 77 |
| 81 return { | 78 return { |
| 82 ItemList: ItemList, | 79 ItemList: ItemList, |
| 83 }; | 80 }; |
| 84 }); | 81 }); |
| OLD | NEW |