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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChartView.js

Issue 2640403003: Fix UI glitches on Performance and Memory panels (Closed)
Patch Set: fix flamechart panning bug Created 3 years, 11 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 Timeline.FlameChartStyle = { 5 Timeline.FlameChartStyle = {
6 textColor: '#333' 6 textColor: '#333'
7 }; 7 };
8 8
9 /** 9 /**
10 * @enum {symbol} 10 * @enum {symbol}
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 * @param {!Common.Event} event 299 * @param {!Common.Event} event
300 */ 300 */
301 _onEntrySelected(dataProvider, event) { 301 _onEntrySelected(dataProvider, event) {
302 var entryIndex = /** @type{number} */ (event.data); 302 var entryIndex = /** @type{number} */ (event.data);
303 this._delegate.select(dataProvider.createSelection(entryIndex)); 303 this._delegate.select(dataProvider.createSelection(entryIndex));
304 } 304 }
305 305
306 resizeToPreferredHeights() { 306 resizeToPreferredHeights() {
307 this._splitWidget.setSidebarSize( 307 this._splitWidget.setSidebarSize(
308 this._networkDataProvider.preferredHeight() + this._splitResizer.clientH eight + PerfUI.FlameChart.HeaderHeight + 308 this._networkDataProvider.preferredHeight() + this._splitResizer.clientH eight + PerfUI.FlameChart.HeaderHeight +
309 2); 309 3);
310 } 310 }
311 }; 311 };
312 312
313 /** 313 /**
314 * @unrestricted 314 * @unrestricted
315 */ 315 */
316 Timeline.TimelineFlameChartView.Selection = class { 316 Timeline.TimelineFlameChartView.Selection = class {
317 /** 317 /**
318 * @param {!Timeline.TimelineSelection} selection 318 * @param {!Timeline.TimelineSelection} selection
319 * @param {number} entryIndex 319 * @param {number} entryIndex
320 */ 320 */
321 constructor(selection, entryIndex) { 321 constructor(selection, entryIndex) {
322 this.timelineSelection = selection; 322 this.timelineSelection = selection;
323 this.entryIndex = entryIndex; 323 this.entryIndex = entryIndex;
324 } 324 }
325 }; 325 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698