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.browser_options', function() { | 5 cr.define('options.browser_options', function() { |
6 /** @const */ var DeletableItem = options.DeletableItem; | 6 /** @const */ var DeletableItem = options.DeletableItem; |
7 /** @const */ var DeletableItemList = options.DeletableItemList; | 7 /** @const */ var DeletableItemList = options.DeletableItemList; |
8 /** @const */ var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; | 8 /** @const */ var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; |
9 | 9 |
10 /** | 10 /** |
11 * Creates a new profile list item. | 11 * Creates a new profile list item. |
12 * @param {Object} profileInfo The profile this item represents. | 12 * @param {Object} profileInfo The profile this item represents. |
13 * @constructor | 13 * @constructor |
14 * @extends {cr.ui.DeletableItem} | 14 * @extends {options.DeletableItem} |
15 */ | 15 */ |
16 function ProfileListItem(profileInfo) { | 16 function ProfileListItem(profileInfo) { |
17 var el = cr.doc.createElement('div'); | 17 var el = cr.doc.createElement('div'); |
18 el.profileInfo_ = profileInfo; | 18 el.profileInfo_ = profileInfo; |
19 ProfileListItem.decorate(el); | 19 ProfileListItem.decorate(el); |
20 return el; | 20 return el; |
21 } | 21 } |
22 | 22 |
23 /** | 23 /** |
24 * Decorates an element as a profile list item. | 24 * Decorates an element as a profile list item. |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 * If false, items in this list will not be deletable. | 125 * If false, items in this list will not be deletable. |
126 * @private | 126 * @private |
127 */ | 127 */ |
128 canDeleteItems_: true, | 128 canDeleteItems_: true, |
129 }; | 129 }; |
130 | 130 |
131 return { | 131 return { |
132 ProfileList: ProfileList | 132 ProfileList: ProfileList |
133 }; | 133 }; |
134 }); | 134 }); |
OLD | NEW |