| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 new list item for the origin's data. | 10 * Creates a new list item for the origin's data. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 /** | 57 /** |
| 58 * @constructor | 58 * @constructor |
| 59 * @extends {cr.ui.List} | 59 * @extends {cr.ui.List} |
| 60 */ | 60 */ |
| 61 var OriginList = cr.ui.define('list'); | 61 var OriginList = cr.ui.define('list'); |
| 62 | 62 |
| 63 OriginList.prototype = { | 63 OriginList.prototype = { |
| 64 __proto__: List.prototype, | 64 __proto__: List.prototype, |
| 65 | 65 |
| 66 /** @override */ | 66 /** |
| 67 * @override |
| 68 * @param {!Object} entry |
| 69 */ |
| 67 createItem: function(entry) { | 70 createItem: function(entry) { |
| 68 return new OriginListItem(entry); | 71 return new OriginListItem(entry); |
| 69 }, | 72 }, |
| 70 }; | 73 }; |
| 71 | 74 |
| 72 return { | 75 return { |
| 73 OriginListItem: OriginListItem, | 76 OriginListItem: OriginListItem, |
| 74 OriginList: OriginList, | 77 OriginList: OriginList, |
| 75 }; | 78 }; |
| 76 }); | 79 }); |
| OLD | NEW |