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

Unified Diff: Source/devtools/front_end/HeapSnapshotView.js

Issue 221863002: Create resizer for allocation perspective split view (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/devtools/front_end/heapProfiler.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/HeapSnapshotView.js
diff --git a/Source/devtools/front_end/HeapSnapshotView.js b/Source/devtools/front_end/HeapSnapshotView.js
index bec5527f774c2ebb93b32466054967a155c21235..e0948654b6983c689e815783b69114e60e73235a 100644
--- a/Source/devtools/front_end/HeapSnapshotView.js
+++ b/Source/devtools/front_end/HeapSnapshotView.js
@@ -86,7 +86,7 @@ WebInspector.HeapSnapshotView = function(profile)
this._allocationDataGrid.show(this._allocationView.element);
}
- this._retainmentViewHeader = document.createElementWithClass("div", "retainers-view-header");
+ this._retainmentViewHeader = document.createElementWithClass("div", "heap-snapshot-view-resizer");
var retainingPathsTitleDiv = this._retainmentViewHeader.createChild("div", "title");
var retainingPathsTitle = retainingPathsTitleDiv.createChild("span");
retainingPathsTitle.textContent = WebInspector.UIString("Object's retaining tree");
@@ -375,6 +375,14 @@ WebInspector.HeapSnapshotView.AllocationPerspective = function()
{
WebInspector.HeapSnapshotView.Perspective.call(this, WebInspector.UIString("Allocation"));
this._allocationSplitView = new WebInspector.SplitView(false, true, "heapSnapshotAllocationSplitViewState", 200, 200);
+
+ var resizer = document.createElementWithClass("div", "heap-snapshot-view-resizer");
+ var title = resizer.createChild("div", "title").createChild("span");
+ title.textContent = WebInspector.UIString("Live objects");
+ this._allocationSplitView.hideDefaultResizer();
+ this._allocationSplitView.installResizer(resizer);
+
+ this._allocationSplitView.sidebarElement().appendChild(resizer);
}
WebInspector.HeapSnapshotView.AllocationPerspective.prototype = {
« no previous file with comments | « no previous file | Source/devtools/front_end/heapProfiler.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698