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

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

Issue 204333004: DevTools: Speculatively patch DevTools to make CodeSchool extension work. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed pause settings 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/Main.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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 function didLoadBaseSnaphot(baseSnapshotProxy) 856 function didLoadBaseSnaphot(baseSnapshotProxy)
857 { 857 {
858 if (this._diffDataGrid.baseSnapshot !== baseSnapshotProxy) 858 if (this._diffDataGrid.baseSnapshot !== baseSnapshotProxy)
859 this._diffDataGrid.setBaseDataSource(baseSnapshotProxy); 859 this._diffDataGrid.setBaseDataSource(baseSnapshotProxy);
860 } 860 }
861 }, 861 },
862 862
863 _onSelectedPerspectiveChanged: function(event) 863 _onSelectedPerspectiveChanged: function(event)
864 { 864 {
865 this._changePerspective(event.target.selectedIndex); 865 this._changePerspective(event.target.selectedIndex);
866 // FIXME: This is needed by CodeSchool extension.
867 this._onSelectedViewChanged(event);
868 },
869
870 _onSelectedViewChanged: function(event)
871 {
866 }, 872 },
867 873
868 _changePerspective: function(selectedIndex) 874 _changePerspective: function(selectedIndex)
869 { 875 {
870 if (selectedIndex === this._currentPerspectiveIndex) 876 if (selectedIndex === this._currentPerspectiveIndex)
871 return; 877 return;
872 878
873 if (this._dataGrid) 879 if (this._dataGrid)
874 this._dataGrid.removeEventListener(WebInspector.HeapSnapshotSortable DataGrid.Events.ResetFilter, this._onResetClassNameFilter, this); 880 this._dataGrid.removeEventListener(WebInspector.HeapSnapshotSortable DataGrid.Events.ResetFilter, this._onResetClassNameFilter, this);
875 881
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
2167 if (color) 2173 if (color)
2168 swatchDiv.style.backgroundColor = color; 2174 swatchDiv.style.backgroundColor = color;
2169 else 2175 else
2170 swatchDiv.classList.add("heap-snapshot-stats-empty-swatch"); 2176 swatchDiv.classList.add("heap-snapshot-stats-empty-swatch");
2171 nameDiv.textContent = name; 2177 nameDiv.textContent = name;
2172 sizeDiv.textContent = WebInspector.UIString("%s KB", Number.withThousand sSeparator(Math.round(value / 1024))); 2178 sizeDiv.textContent = WebInspector.UIString("%s KB", Number.withThousand sSeparator(Math.round(value / 1024)));
2173 }, 2179 },
2174 2180
2175 __proto__: WebInspector.VBox.prototype 2181 __proto__: WebInspector.VBox.prototype
2176 } 2182 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/Main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698