| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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('options', function() { | 5 cr.define('options', function() { |
| 6 /** @const */ var List = cr.ui.List; | 6 /** @const */ var List = cr.ui.List; |
| 7 /** @const */ var ListItem = cr.ui.ListItem; | 7 /** @const */ var ListItem = cr.ui.ListItem; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Creates a deletable list item, which has a button that will trigger a call | 10 * Creates a deletable list item, which has a button that will trigger a call |
| 11 * to deleteItemAtIndex(index) in the list. | 11 * to deleteItemAtIndex(index) in the list. |
| 12 * @constructor |
| 13 * @extends {cr.ui.ListItem} |
| 12 */ | 14 */ |
| 13 var DeletableItem = cr.ui.define('li'); | 15 var DeletableItem = cr.ui.define('li'); |
| 14 | 16 |
| 15 DeletableItem.prototype = { | 17 DeletableItem.prototype = { |
| 16 __proto__: ListItem.prototype, | 18 __proto__: ListItem.prototype, |
| 17 | 19 |
| 18 /** | 20 /** |
| 19 * The element subclasses should populate with content. | 21 * The element subclasses should populate with content. |
| 20 * @type {HTMLElement} | 22 * @type {HTMLElement} |
| 21 * @private | 23 * @private |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 */ | 190 */ |
| 189 deleteItemAtIndex: function(index) { | 191 deleteItemAtIndex: function(index) { |
| 190 }, | 192 }, |
| 191 }; | 193 }; |
| 192 | 194 |
| 193 return { | 195 return { |
| 194 DeletableItemList: DeletableItemList, | 196 DeletableItemList: DeletableItemList, |
| 195 DeletableItem: DeletableItem, | 197 DeletableItem: DeletableItem, |
| 196 }; | 198 }; |
| 197 }); | 199 }); |
| OLD | NEW |