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 /** |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 }, | 116 }, |
117 | 117 |
118 /** | 118 /** |
119 * Sets whether items in this list are deletable. | 119 * Sets whether items in this list are deletable. |
120 */ | 120 */ |
121 set canDeleteItems(value) { | 121 set canDeleteItems(value) { |
122 this.canDeleteItems_ = value; | 122 this.canDeleteItems_ = value; |
123 }, | 123 }, |
124 | 124 |
125 /** | 125 /** |
| 126 * @type {boolean} whether the items in this list are deletable. |
| 127 */ |
| 128 get canDeleteItems() { |
| 129 return this.canDeleteItems_; |
| 130 }, |
| 131 |
| 132 /** |
126 * If false, items in this list will not be deletable. | 133 * If false, items in this list will not be deletable. |
127 * @private | 134 * @private |
128 */ | 135 */ |
129 canDeleteItems_: true, | 136 canDeleteItems_: true, |
130 }; | 137 }; |
131 | 138 |
132 return { | 139 return { |
133 ProfileList: ProfileList | 140 ProfileList: ProfileList |
134 }; | 141 }; |
135 }); | 142 }); |
OLD | NEW |