| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
| 4 * Copyright (C) 2010 Google Inc. All rights reserved. | 4 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 var selectedCookie = this._nextSelectedCookie || this.selectedCookie(); | 140 var selectedCookie = this._nextSelectedCookie || this.selectedCookie(); |
| 141 this._nextSelectedCookie = null; | 141 this._nextSelectedCookie = null; |
| 142 this._dataGrid.rootNode().removeChildren(); | 142 this._dataGrid.rootNode().removeChildren(); |
| 143 for (var i = 0; i < this._data.length; ++i) { | 143 for (var i = 0; i < this._data.length; ++i) { |
| 144 var item = this._data[i]; | 144 var item = this._data[i]; |
| 145 if (item.folderName) { | 145 if (item.folderName) { |
| 146 var groupData = {name: item.folderName, value: "", domain: "", p
ath: "", expires: "", size: this._totalSize(item.cookies), httpOnly: "", secure:
""}; | 146 var groupData = {name: item.folderName, value: "", domain: "", p
ath: "", expires: "", size: this._totalSize(item.cookies), httpOnly: "", secure:
""}; |
| 147 var groupNode = new WebInspector.DataGridNode(groupData); | 147 var groupNode = new WebInspector.DataGridNode(groupData); |
| 148 groupNode.selectable = true; | 148 groupNode.selectable = true; |
| 149 this._dataGrid.rootNode().appendChild(groupNode); | 149 this._dataGrid.rootNode().appendChild(groupNode); |
| 150 groupNode.element.classList.add("row-group"); | 150 groupNode.element().classList.add("row-group"); |
| 151 this._populateNode(groupNode, item.cookies, selectedCookie); | 151 this._populateNode(groupNode, item.cookies, selectedCookie); |
| 152 groupNode.expand(); | 152 groupNode.expand(); |
| 153 } else | 153 } else |
| 154 this._populateNode(this._dataGrid.rootNode(), item.cookies, sele
ctedCookie); | 154 this._populateNode(this._dataGrid.rootNode(), item.cookies, sele
ctedCookie); |
| 155 } | 155 } |
| 156 }, | 156 }, |
| 157 | 157 |
| 158 /** | 158 /** |
| 159 * @param {!WebInspector.DataGridNode} parentNode | 159 * @param {!WebInspector.DataGridNode} parentNode |
| 160 * @param {?Array.<!WebInspector.Cookie>} cookies | 160 * @param {?Array.<!WebInspector.Cookie>} cookies |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 }, | 277 }, |
| 278 | 278 |
| 279 _refresh: function() | 279 _refresh: function() |
| 280 { | 280 { |
| 281 if (this._refreshCallback) | 281 if (this._refreshCallback) |
| 282 this._refreshCallback(); | 282 this._refreshCallback(); |
| 283 }, | 283 }, |
| 284 | 284 |
| 285 __proto__: WebInspector.VBox.prototype | 285 __proto__: WebInspector.VBox.prototype |
| 286 } | 286 } |
| OLD | NEW |