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

Side by Side Diff: Source/devtools/front_end/HeapSnapshotDataGrids.js

Issue 198833008: Update constructors view when switching perspectives (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/devtools/front_end/HeapSnapshotView.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 var parent = constructorNodes[i]; 762 var parent = constructorNodes[i];
763 if (parent._name === className) { 763 if (parent._name === className) {
764 parent.revealNodeBySnapshotObjectId(parseInt(id, 10), callba ck); 764 parent.revealNodeBySnapshotObjectId(parseInt(id, 10), callba ck);
765 return; 765 return;
766 } 766 }
767 } 767 }
768 } 768 }
769 this.snapshot.nodeClassName(parseInt(id, 10), didGetClassName.bind(this) ); 769 this.snapshot.nodeClassName(parseInt(id, 10), didGetClassName.bind(this) );
770 }, 770 },
771 771
772 clear: function()
773 {
774 this._nextRequestedFilter = null;
775 this._lastFilter = null;
776 this.removeTopLevelNodes();
777 },
778
772 setDataSource: function(snapshot) 779 setDataSource: function(snapshot)
773 { 780 {
774 this.snapshot = snapshot; 781 this.snapshot = snapshot;
775 if (this._profileIndex === -1) 782 if (this._profileIndex === -1)
776 this._populateChildren(); 783 this._populateChildren();
777 784
778 if (this._objectIdToSelect) { 785 if (this._objectIdToSelect) {
779 this.highlightObjectByHeapSnapshotId(this._objectIdToSelect, functio n(found) {}); 786 this.highlightObjectByHeapSnapshotId(this._objectIdToSelect, functio n(found) {});
780 this._objectIdToSelect = null; 787 this._objectIdToSelect = null;
781 } 788 }
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 * @return {number} 1211 * @return {number}
1205 */ 1212 */
1206 allocationNodeId: function() 1213 allocationNodeId: function()
1207 { 1214 {
1208 return this.data.id; 1215 return this.data.id;
1209 }, 1216 },
1210 1217
1211 __proto__: WebInspector.DataGridNode.prototype 1218 __proto__: WebInspector.DataGridNode.prototype
1212 } 1219 }
1213 1220
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/HeapSnapshotView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698