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

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

Issue 2450663004: DevTools: do not allow using 'this' before call into super. (Closed)
Patch Set: rebaselined 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui_lazy/FilteredListWidget.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 this._cursorElement = this._overviewGrid.element.createChild("div", "overvie w-grid-cursor-position"); 45 this._cursorElement = this._overviewGrid.element.createChild("div", "overvie w-grid-cursor-position");
46 this._cursorArea.addEventListener("mousemove", this._onMouseMove.bind(this), true); 46 this._cursorArea.addEventListener("mousemove", this._onMouseMove.bind(this), true);
47 this._cursorArea.addEventListener("mouseleave", this._hideCursor.bind(this), true); 47 this._cursorArea.addEventListener("mouseleave", this._hideCursor.bind(this), true);
48 48
49 this._overviewGrid.setResizeEnabled(false); 49 this._overviewGrid.setResizeEnabled(false);
50 this._overviewGrid.addEventListener(WebInspector.OverviewGrid.Events.WindowC hanged, this._onWindowChanged, this); 50 this._overviewGrid.addEventListener(WebInspector.OverviewGrid.Events.WindowC hanged, this._onWindowChanged, this);
51 this._overviewGrid.addEventListener(WebInspector.OverviewGrid.Events.Click, this._onClick, this); 51 this._overviewGrid.addEventListener(WebInspector.OverviewGrid.Events.Click, this._onClick, this);
52 this._overviewControls = []; 52 this._overviewControls = [];
53 this._markers = new Map(); 53 this._markers = new Map();
54 54
55 this._popoverHelper = new WebInspector.PopoverHelper(this._cursorArea, this. _getPopoverAnchor.bind(this), this._showPopover.bind(this), this._onHidePopover. bind(this)); 55 this._popoverHelper = new WebInspector.PopoverHelper(this._cursorArea);
56 this._popoverHelper.initializeCallbacks(this._getPopoverAnchor.bind(this), t his._showPopover.bind(this), this._onHidePopover.bind(this));
56 this._popoverHelper.setTimeout(0); 57 this._popoverHelper.setTimeout(0);
57 58
58 this._updateThrottler = new WebInspector.Throttler(100); 59 this._updateThrottler = new WebInspector.Throttler(100);
59 60
60 this._cursorEnabled = false; 61 this._cursorEnabled = false;
61 this._cursorPosition = 0; 62 this._cursorPosition = 0;
62 this._lastWidth = 0; 63 this._lastWidth = 0;
63 }; 64 };
64 65
65 /** @enum {symbol} */ 66 /** @enum {symbol} */
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 }, 634 },
634 635
635 resetCanvas: function() 636 resetCanvas: function()
636 { 637 {
637 this._canvas.width = this.element.clientWidth * window.devicePixelRatio; 638 this._canvas.width = this.element.clientWidth * window.devicePixelRatio;
638 this._canvas.height = this.element.clientHeight * window.devicePixelRati o; 639 this._canvas.height = this.element.clientHeight * window.devicePixelRati o;
639 }, 640 },
640 641
641 __proto__: WebInspector.VBox.prototype 642 __proto__: WebInspector.VBox.prototype
642 }; 643 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui_lazy/FilteredListWidget.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698