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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 this._barHeight = dataProvider.barHeight(); | 97 this._barHeight = dataProvider.barHeight(); |
98 this._barHeightDelta = this._isTopDown ? -this._barHeight : this._barHeight; | 98 this._barHeightDelta = this._isTopDown ? -this._barHeight : this._barHeight; |
99 this._paddingLeft = this._dataProvider.paddingLeft(); | 99 this._paddingLeft = this._dataProvider.paddingLeft(); |
100 this._markerPadding = 2; | 100 this._markerPadding = 2; |
101 this._markerRadius = this._barHeight / 2 - this._markerPadding; | 101 this._markerRadius = this._barHeight / 2 - this._markerPadding; |
102 this._highlightedMarkerIndex = -1; | 102 this._highlightedMarkerIndex = -1; |
103 this._highlightedEntryIndex = -1; | 103 this._highlightedEntryIndex = -1; |
104 this._selectedEntryIndex = -1; | 104 this._selectedEntryIndex = -1; |
105 this._rawTimelineDataLength = 0; | 105 this._rawTimelineDataLength = 0; |
106 this._textWidth = {}; | 106 this._textWidth = {}; |
| 107 |
| 108 this._lastMouseOffsetX = 0; |
107 } | 109 } |
108 | 110 |
109 WebInspector.FlameChart.DividersBarHeight = 18; | 111 WebInspector.FlameChart.DividersBarHeight = 18; |
110 | 112 |
111 WebInspector.FlameChart.MinimalTimeWindowMs = 0.01; | 113 WebInspector.FlameChart.MinimalTimeWindowMs = 0.01; |
112 | 114 |
113 /** | 115 /** |
114 * @interface | 116 * @interface |
115 */ | 117 */ |
116 WebInspector.FlameChartDataProvider = function() | 118 WebInspector.FlameChartDataProvider = function() |
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1532 this.update(); | 1534 this.update(); |
1533 }, | 1535 }, |
1534 | 1536 |
1535 _enabled: function() | 1537 _enabled: function() |
1536 { | 1538 { |
1537 return this._rawTimelineDataLength !== 0; | 1539 return this._rawTimelineDataLength !== 0; |
1538 }, | 1540 }, |
1539 | 1541 |
1540 __proto__: WebInspector.HBox.prototype | 1542 __proto__: WebInspector.HBox.prototype |
1541 } | 1543 } |
OLD | NEW |