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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, this.
_getPopoverAnchor.bind(this), this._showPopover.bind(this), this._onHidePopover.
bind(this)); |
56 this._popoverHelper.setTimeout(0); | 56 this._popoverHelper.setTimeout(0); |
57 | 57 |
58 this._updateThrottler = new WebInspector.Throttler(100); | 58 this._updateThrottler = new WebInspector.Throttler(100); |
59 | 59 |
60 this._cursorEnabled = false; | 60 this._cursorEnabled = false; |
61 this._cursorPosition = 0; | 61 this._cursorPosition = 0; |
62 this._lastWidth = 0; | 62 this._lastWidth = 0; |
63 } | 63 } |
64 | 64 |
| 65 /** @enum {symbol} */ |
65 WebInspector.TimelineOverviewPane.Events = { | 66 WebInspector.TimelineOverviewPane.Events = { |
66 WindowChanged: "WindowChanged" | 67 WindowChanged: Symbol("WindowChanged") |
67 }; | 68 }; |
68 | 69 |
69 WebInspector.TimelineOverviewPane.prototype = { | 70 WebInspector.TimelineOverviewPane.prototype = { |
70 /** | 71 /** |
71 * @param {!Element} element | 72 * @param {!Element} element |
72 * @param {!Event} event | 73 * @param {!Event} event |
73 * @return {!Element|!AnchorBox|undefined} | 74 * @return {!Element|!AnchorBox|undefined} |
74 */ | 75 */ |
75 _getPopoverAnchor: function(element, event) | 76 _getPopoverAnchor: function(element, event) |
76 { | 77 { |
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 }, | 633 }, |
633 | 634 |
634 resetCanvas: function() | 635 resetCanvas: function() |
635 { | 636 { |
636 this._canvas.width = this.element.clientWidth * window.devicePixelRatio; | 637 this._canvas.width = this.element.clientWidth * window.devicePixelRatio; |
637 this._canvas.height = this.element.clientHeight * window.devicePixelRati
o; | 638 this._canvas.height = this.element.clientHeight * window.devicePixelRati
o; |
638 }, | 639 }, |
639 | 640 |
640 __proto__: WebInspector.VBox.prototype | 641 __proto__: WebInspector.VBox.prototype |
641 } | 642 } |
OLD | NEW |