| 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 ArrayDataModel = cr.ui.ArrayDataModel; | 6 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; |
| 7 /** @const */ var List = cr.ui.List; | 7 /** @const */ var List = cr.ui.List; |
| 8 /** @const */ var ListItem = cr.ui.ListItem; | 8 /** @const */ var ListItem = cr.ui.ListItem; |
| 9 /** @const */ var DeletableItem = options.DeletableItem; | 9 /** @const */ var DeletableItem = options.DeletableItem; |
| 10 /** @const */ var DeletableItemList = options.DeletableItemList; | 10 /** @const */ var DeletableItemList = options.DeletableItemList; |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * Creates a new ignored protocol / content handler list item. | 13 * Creates a new ignored protocol / content handler list item. |
| 14 * | 14 * |
| 15 * Accepts values in the form | 15 * Accepts values in the form |
| 16 * ['mailto', 'http://www.thesite.com/%s', 'www.thesite.com'], | 16 * ['mailto', 'http://www.thesite.com/%s', 'www.thesite.com'], |
| 17 * @param {Object} entry A dictionary describing the handlers for a given | 17 * @param {Object} entry A dictionary describing the handlers for a given |
| 18 * protocol. | 18 * protocol. |
| 19 * @constructor | 19 * @constructor |
| 20 * @extends {cr.ui.DeletableItemList} | 20 * @extends {options.DeletableItemList} |
| 21 */ | 21 */ |
| 22 function IgnoredHandlersListItem(entry) { | 22 function IgnoredHandlersListItem(entry) { |
| 23 var el = cr.doc.createElement('div'); | 23 var el = cr.doc.createElement('div'); |
| 24 el.dataItem = entry; | 24 el.dataItem = entry; |
| 25 el.__proto__ = IgnoredHandlersListItem.prototype; | 25 el.__proto__ = IgnoredHandlersListItem.prototype; |
| 26 el.decorate(); | 26 el.decorate(); |
| 27 return el; | 27 return el; |
| 28 } | 28 } |
| 29 | 29 |
| 30 IgnoredHandlersListItem.prototype = { | 30 IgnoredHandlersListItem.prototype = { |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 }, | 246 }, |
| 247 }; | 247 }; |
| 248 | 248 |
| 249 return { | 249 return { |
| 250 IgnoredHandlersListItem: IgnoredHandlersListItem, | 250 IgnoredHandlersListItem: IgnoredHandlersListItem, |
| 251 IgnoredHandlersList: IgnoredHandlersList, | 251 IgnoredHandlersList: IgnoredHandlersList, |
| 252 HandlerListItem: HandlerListItem, | 252 HandlerListItem: HandlerListItem, |
| 253 HandlersList: HandlersList, | 253 HandlersList: HandlersList, |
| 254 }; | 254 }; |
| 255 }); | 255 }); |
| OLD | NEW |