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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui_lazy/ChartViewport.js

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 years, 1 month 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 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.VBox} 7 * @extends {WebInspector.VBox}
8 */ 8 */
9 WebInspector.ChartViewport = function() 9 WebInspector.ChartViewport = function()
10 { 10 {
11 WebInspector.VBox.call(this, true); 11 WebInspector.VBox.call(this, true);
12 12
13 this.contentElement.addEventListener("mousewheel", this._onMouseWheel.bind(t his), false); 13 this.contentElement.addEventListener("mousewheel", this._onMouseWheel.bind(t his), false);
14 this.contentElement.addEventListener("keydown", this._handleZoomPanKeys.bind (this), false); 14 this.contentElement.addEventListener("keydown", this._handleZoomPanKeys.bind (this), false);
15 15
16 this.viewportElement = this.contentElement.createChild("div", "fill"); 16 this.viewportElement = this.contentElement.createChild("div", "fill");
17 WebInspector.installInertialDragHandle(this.viewportElement, this._startDrag ging.bind(this), this._dragging.bind(this), this._endDragging.bind(this), "-webk it-grabbing", null); 17 WebInspector.installInertialDragHandle(this.viewportElement, this._startDrag ging.bind(this), this._dragging.bind(this), this._endDragging.bind(this), "-webk it-grabbing", null);
18 WebInspector.installDragHandle(this.viewportElement, this._startRangeSelecti on.bind(this), this._rangeSelectionDragging.bind(this), this._endRangeSelection. bind(this), "text", null); 18 WebInspector.installDragHandle(this.viewportElement, this._startRangeSelecti on.bind(this), this._rangeSelectionDragging.bind(this), this._endRangeSelection. bind(this), "text", null);
19 19
20 this._vScrollElement = this.contentElement.createChild("div", "flame-chart-v -scroll"); 20 this._vScrollElement = this.contentElement.createChild("div", "flame-chart-v -scroll");
21 this._vScrollContent = this._vScrollElement.createChild("div"); 21 this._vScrollContent = this._vScrollElement.createChild("div");
22 this._vScrollElement.addEventListener("scroll", this._onScroll.bind(this), f alse); 22 this._vScrollElement.addEventListener("scroll", this._onScroll.bind(this), f alse);
23 23
24 this._selectionOverlay = this.contentElement.createChild("div", "flame-chart -selection-overlay hidden"); 24 this._selectionOverlay = this.contentElement.createChild("div", "flame-chart -selection-overlay hidden");
25 this._selectedTimeSpanLabel = this._selectionOverlay.createChild("div", "tim e-span"); 25 this._selectedTimeSpanLabel = this._selectionOverlay.createChild("div", "tim e-span");
26 26
27 this.reset(); 27 this.reset();
28 } 28 };
29 29
30 WebInspector.ChartViewport.prototype = { 30 WebInspector.ChartViewport.prototype = {
31 /** 31 /**
32 * @return {boolean} 32 * @return {boolean}
33 */ 33 */
34 isDragging: function() 34 isDragging: function()
35 { 35 {
36 return this._isDragging; 36 return this._isDragging;
37 }, 37 },
38 38
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 } 456 }
457 this._cancelAnimation(); 457 this._cancelAnimation();
458 this._cancelWindowTimesAnimation = WebInspector.animateFunction(this.ele ment.window(), this._animateWindowTimes.bind(this), 458 this._cancelWindowTimesAnimation = WebInspector.animateFunction(this.ele ment.window(), this._animateWindowTimes.bind(this),
459 [{from: this._timeWindowLeft, to: startTime}, {from: this._timeWindo wRight, to: endTime}], 5, 459 [{from: this._timeWindowLeft, to: startTime}, {from: this._timeWindo wRight, to: endTime}], 5,
460 this._animationCompleted.bind(this)); 460 this._animationCompleted.bind(this));
461 this._pendingAnimationTimeLeft = startTime; 461 this._pendingAnimationTimeLeft = startTime;
462 this._pendingAnimationTimeRight = endTime; 462 this._pendingAnimationTimeRight = endTime;
463 }, 463 },
464 464
465 __proto__: WebInspector.VBox.prototype 465 __proto__: WebInspector.VBox.prototype
466 } 466 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698