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

Side by Side Diff: Source/devtools/front_end/timeline/TimelinePanel.js

Issue 1309723003: DevTools: Refactor memory counter display (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: range inside label Created 5 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 return this._lazyPaintProfilerView; 262 return this._lazyPaintProfilerView;
263 }, 263 },
264 264
265 /** 265 /**
266 * @param {!WebInspector.TimelineModeView} modeView 266 * @param {!WebInspector.TimelineModeView} modeView
267 */ 267 */
268 _addModeView: function(modeView) 268 _addModeView: function(modeView)
269 { 269 {
270 modeView.setWindowTimes(this.windowStartTime(), this.windowEndTime()); 270 modeView.setWindowTimes(this.windowStartTime(), this.windowEndTime());
271 modeView.refreshRecords(this._textFilter._regex); 271 modeView.refreshRecords(this._textFilter._regex);
272 this._stackView.appendView(modeView.view(), "timelinePanelTimelineStackS plitViewState"); 272 this._stackView.appendView(modeView.view(), "timelinePanelTimelineStackS plitViewState", undefined, 112);
273 modeView.view().addEventListener(WebInspector.SplitWidget.Events.Sidebar SizeChanged, this._sidebarResized, this); 273 modeView.view().addEventListener(WebInspector.SplitWidget.Events.Sidebar SizeChanged, this._sidebarResized, this);
274 this._currentViews.push(modeView); 274 this._currentViews.push(modeView);
275 }, 275 },
276 276
277 _removeAllModeViews: function() 277 _removeAllModeViews: function()
278 { 278 {
279 for (var i = 0; i < this._currentViews.length; ++i) { 279 for (var i = 0; i < this._currentViews.length; ++i) {
280 this._currentViews[i].removeEventListener(WebInspector.SplitWidget.E vents.SidebarSizeChanged, this._sidebarResized, this); 280 this._currentViews[i].removeEventListener(WebInspector.SplitWidget.E vents.SidebarSizeChanged, this._sidebarResized, this);
281 this._currentViews[i].dispose(); 281 this._currentViews[i].dispose();
282 } 282 }
(...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after
1792 /** 1792 /**
1793 * @override 1793 * @override
1794 * @param {string} value 1794 * @param {string} value
1795 */ 1795 */
1796 handleQueryParam: function(value) 1796 handleQueryParam: function(value)
1797 { 1797 {
1798 WebInspector.TimelinePanel.show(); 1798 WebInspector.TimelinePanel.show();
1799 WebInspector.TimelinePanel.instance()._loadFromURL(value); 1799 WebInspector.TimelinePanel.instance()._loadFromURL(value);
1800 } 1800 }
1801 } 1801 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698