| OLD | NEW |
| 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 * @implements {Timeline.TimelineModeView} | 6 * @implements {Timeline.TimelineModeView} |
| 7 * @implements {PerfUI.FlameChartDelegate} | 7 * @implements {PerfUI.FlameChartDelegate} |
| 8 * @implements {UI.Searchable} | 8 * @implements {UI.Searchable} |
| 9 * @unrestricted | 9 * @unrestricted |
| 10 */ | 10 */ |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 var extensions = this._model.extensionInfo(); | 147 var extensions = this._model.extensionInfo(); |
| 148 while (this._nextExtensionIndex < extensions.length) | 148 while (this._nextExtensionIndex < extensions.length) |
| 149 this._mainDataProvider.appendExtensionEvents(extensions[this._nextExtensio
nIndex++]); | 149 this._mainDataProvider.appendExtensionEvents(extensions[this._nextExtensio
nIndex++]); |
| 150 this._mainFlameChart.scheduleUpdate(); | 150 this._mainFlameChart.scheduleUpdate(); |
| 151 } | 151 } |
| 152 | 152 |
| 153 /** | 153 /** |
| 154 * @param {!Common.Event} commonEvent | 154 * @param {!Common.Event} commonEvent |
| 155 */ | 155 */ |
| 156 _onEntryHighlighted(commonEvent) { | 156 _onEntryHighlighted(commonEvent) { |
| 157 SDK.OverlayModel.hideDOMNodeHighlight(); | 157 SDK.DOMModel.hideDOMNodeHighlight(); |
| 158 var entryIndex = /** @type {number} */ (commonEvent.data); | 158 var entryIndex = /** @type {number} */ (commonEvent.data); |
| 159 var event = this._mainDataProvider.eventByIndex(entryIndex); | 159 var event = this._mainDataProvider.eventByIndex(entryIndex); |
| 160 if (!event) | 160 if (!event) |
| 161 return; | 161 return; |
| 162 var target = this._model && this._model.timelineModel().targetByEvent(event)
; | 162 var target = this._model && this._model.timelineModel().targetByEvent(event)
; |
| 163 if (!target) | 163 if (!target) |
| 164 return; | 164 return; |
| 165 var timelineData = TimelineModel.TimelineData.forEvent(event); | 165 var timelineData = TimelineModel.TimelineData.forEvent(event); |
| 166 var backendNodeId = timelineData.backendNodeId; | 166 var backendNodeId = timelineData.backendNodeId; |
| 167 if (!backendNodeId) | 167 if (!backendNodeId) |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 context.translate(this._style.lineWidth < 1 || (this._style.lineWidth & 1)
? 0.5 : 0, 0.5); | 524 context.translate(this._style.lineWidth < 1 || (this._style.lineWidth & 1)
? 0.5 : 0, 0.5); |
| 525 context.beginPath(); | 525 context.beginPath(); |
| 526 context.moveTo(x, height); | 526 context.moveTo(x, height); |
| 527 context.setLineDash(this._style.dashStyle); | 527 context.setLineDash(this._style.dashStyle); |
| 528 context.lineTo(x, context.canvas.height); | 528 context.lineTo(x, context.canvas.height); |
| 529 context.stroke(); | 529 context.stroke(); |
| 530 } | 530 } |
| 531 context.restore(); | 531 context.restore(); |
| 532 } | 532 } |
| 533 }; | 533 }; |
| OLD | NEW |