OLD | NEW |
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 this._cursorArea.addEventListener('mouseleave', this._hideCursor.bind(this),
true); | 48 this._cursorArea.addEventListener('mouseleave', this._hideCursor.bind(this),
true); |
49 | 49 |
50 this._overviewGrid.setResizeEnabled(false); | 50 this._overviewGrid.setResizeEnabled(false); |
51 this._overviewGrid.addEventListener(PerfUI.OverviewGrid.Events.WindowChanged
, this._onWindowChanged, this); | 51 this._overviewGrid.addEventListener(PerfUI.OverviewGrid.Events.WindowChanged
, this._onWindowChanged, this); |
52 this._overviewGrid.setClickHandler(this._onClick.bind(this)); | 52 this._overviewGrid.setClickHandler(this._onClick.bind(this)); |
53 this._overviewControls = []; | 53 this._overviewControls = []; |
54 this._markers = new Map(); | 54 this._markers = new Map(); |
55 | 55 |
56 this._popoverHelper = new UI.PopoverHelper(this._cursorArea, this._getPopove
rRequest.bind(this)); | 56 this._popoverHelper = new UI.PopoverHelper(this._cursorArea, this._getPopove
rRequest.bind(this)); |
57 this._popoverHelper.setHasPadding(true); | 57 this._popoverHelper.setHasPadding(true); |
58 this._popoverHelper.setTimeout(0); | 58 this._popoverHelper.setTimeout(0, 300); |
59 | 59 |
60 this._updateThrottler = new Common.Throttler(100); | 60 this._updateThrottler = new Common.Throttler(100); |
61 | 61 |
62 this._cursorEnabled = false; | 62 this._cursorEnabled = false; |
63 this._cursorPosition = 0; | 63 this._cursorPosition = 0; |
64 this._lastWidth = 0; | 64 this._lastWidth = 0; |
65 } | 65 } |
66 | 66 |
67 /** | 67 /** |
68 * @param {!Event} event | 68 * @param {!Event} event |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 */ | 527 */ |
528 onClick(event) { | 528 onClick(event) { |
529 return false; | 529 return false; |
530 } | 530 } |
531 | 531 |
532 resetCanvas() { | 532 resetCanvas() { |
533 this._canvas.width = this.element.clientWidth * window.devicePixelRatio; | 533 this._canvas.width = this.element.clientWidth * window.devicePixelRatio; |
534 this._canvas.height = this.element.clientHeight * window.devicePixelRatio; | 534 this._canvas.height = this.element.clientHeight * window.devicePixelRatio; |
535 } | 535 } |
536 }; | 536 }; |
OLD | NEW |