| 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 DeletableItemList = options.DeletableItemList; | 6 /** @const */ var DeletableItemList = options.DeletableItemList; |
| 7 /** @const */ var DeletableItem = options.DeletableItem; | 7 /** @const */ var DeletableItem = options.DeletableItem; |
| 8 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; | 8 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; |
| 9 /** @const */ var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; | 9 /** @const */ var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 ['size', 'label_local_storage_size'], | 32 ['size', 'label_local_storage_size'], |
| 33 ['modified', 'label_local_storage_last_modified']], | 33 ['modified', 'label_local_storage_last_modified']], |
| 34 'indexed_db': [['origin', 'label_indexed_db_origin'], | 34 'indexed_db': [['origin', 'label_indexed_db_origin'], |
| 35 ['size', 'label_indexed_db_size'], | 35 ['size', 'label_indexed_db_size'], |
| 36 ['modified', 'label_indexed_db_last_modified']], | 36 ['modified', 'label_indexed_db_last_modified']], |
| 37 'file_system': [['origin', 'label_file_system_origin'], | 37 'file_system': [['origin', 'label_file_system_origin'], |
| 38 ['persistent', 'label_file_system_persistent_usage'], | 38 ['persistent', 'label_file_system_persistent_usage'], |
| 39 ['temporary', 'label_file_system_temporary_usage']], | 39 ['temporary', 'label_file_system_temporary_usage']], |
| 40 'server_bound_cert': [['serverId', 'label_server_bound_cert_server_id'], | 40 'server_bound_cert': [['serverId', 'label_server_bound_cert_server_id'], |
| 41 ['certType', 'label_server_bound_cert_type'], | 41 ['certType', 'label_server_bound_cert_type'], |
| 42 ['created', 'label_server_bound_cert_created'], | 42 ['created', 'label_server_bound_cert_created']], |
| 43 ['expires', 'label_server_bound_cert_expires']], | |
| 44 'flash_lso': [['domain', 'label_cookie_domain']], | 43 'flash_lso': [['domain', 'label_cookie_domain']], |
| 45 }; | 44 }; |
| 46 | 45 |
| 47 /** | 46 /** |
| 48 * Returns the item's height, like offsetHeight but such that it works better | 47 * Returns the item's height, like offsetHeight but such that it works better |
| 49 * when the page is zoomed. See the similar calculation in @{code cr.ui.List}. | 48 * when the page is zoomed. See the similar calculation in @{code cr.ui.List}. |
| 50 * This version also accounts for the animation done in this file. | 49 * This version also accounts for the animation done in this file. |
| 51 * @param {Element} item The item to get the height of. | 50 * @param {Element} item The item to get the height of. |
| 52 * @return {number} The height of the item, calculated with zooming in mind. | 51 * @return {number} The height of the item, calculated with zooming in mind. |
| 53 */ | 52 */ |
| (...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 913 parent.clear(); | 912 parent.clear(); |
| 914 this.addByParent_(parent, 0, children); | 913 this.addByParent_(parent, 0, children); |
| 915 parent.endBatchUpdates(); | 914 parent.endBatchUpdates(); |
| 916 }, | 915 }, |
| 917 }; | 916 }; |
| 918 | 917 |
| 919 return { | 918 return { |
| 920 CookiesList: CookiesList | 919 CookiesList: CookiesList |
| 921 }; | 920 }; |
| 922 }); | 921 }); |
| OLD | NEW |