Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: Source/devtools/front_end/components/CookiesTable.js

Issue 449413002: DevTools: DataGrid: turn "element" getter to function. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « LayoutTests/inspector/profiler/heap-snapshot-test.js ('k') | Source/devtools/front_end/network/NetworkPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698