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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/perf_ui/TimelineOverviewPane.js

Issue 2690603003: Timeline: streamline flame chart views update logic (Closed)
Patch Set: moar fixes Created 3 years, 10 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 this._overviewCalculator.reset(); 253 this._overviewCalculator.reset();
254 this._overviewGrid.reset(); 254 this._overviewGrid.reset();
255 this._overviewGrid.setResizeEnabled(false); 255 this._overviewGrid.setResizeEnabled(false);
256 this._overviewGrid.updateDividers(this._overviewCalculator); 256 this._overviewGrid.updateDividers(this._overviewCalculator);
257 this._cursorEnabled = false; 257 this._cursorEnabled = false;
258 this._hideCursor(); 258 this._hideCursor();
259 this._markers = new Map(); 259 this._markers = new Map();
260 for (var i = 0; i < this._overviewControls.length; ++i) 260 for (var i = 0; i < this._overviewControls.length; ++i)
261 this._overviewControls[i].reset(); 261 this._overviewControls[i].reset();
262 this._popoverHelper.hidePopover(); 262 this._popoverHelper.hidePopover();
263 this._update(); 263 this.scheduleUpdate();
264 } 264 }
265 265
266 /** 266 /**
267 * @param {!Event} event 267 * @param {!Event} event
268 * @return {boolean} 268 * @return {boolean}
269 */ 269 */
270 _onClick(event) { 270 _onClick(event) {
271 for (var overviewControl of this._overviewControls) { 271 for (var overviewControl of this._overviewControls) {
272 if (overviewControl.onClick(event)) 272 if (overviewControl.onClick(event))
273 return true; 273 return true;
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 */ 539 */
540 onClick(event) { 540 onClick(event) {
541 return false; 541 return false;
542 } 542 }
543 543
544 resetCanvas() { 544 resetCanvas() {
545 this._canvas.width = this.element.clientWidth * window.devicePixelRatio; 545 this._canvas.width = this.element.clientWidth * window.devicePixelRatio;
546 this._canvas.height = this.element.clientHeight * window.devicePixelRatio; 546 this._canvas.height = this.element.clientHeight * window.devicePixelRatio;
547 } 547 }
548 }; 548 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698