OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 this._delegate = delegate; | 414 this._delegate = delegate; |
415 this._model = model; | 415 this._model = model; |
416 this._dataProvider = new WebInspector.TimelineFlameChartDataProvider(model,
frameModel); | 416 this._dataProvider = new WebInspector.TimelineFlameChartDataProvider(model,
frameModel); |
417 this._mainView = new WebInspector.FlameChart(this._dataProvider, this, true,
true); | 417 this._mainView = new WebInspector.FlameChart(this._dataProvider, this, true,
true); |
418 this._mainView.show(this.element); | 418 this._mainView.show(this.element); |
419 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStar
ted, this._onRecordingStarted, this); | 419 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStar
ted, this._onRecordingStarted, this); |
420 this._mainView.addEventListener(WebInspector.FlameChart.Events.EntrySelected
, this._onEntrySelected, this); | 420 this._mainView.addEventListener(WebInspector.FlameChart.Events.EntrySelected
, this._onEntrySelected, this); |
421 } | 421 } |
422 | 422 |
423 WebInspector.TimelineFlameChart.prototype = { | 423 WebInspector.TimelineFlameChart.prototype = { |
| 424 timelineStarted: function() |
| 425 { |
| 426 }, |
| 427 |
| 428 timelineStopped: function() |
| 429 { |
| 430 }, |
| 431 |
424 /** | 432 /** |
425 * @param {number} windowStartTime | 433 * @param {number} windowStartTime |
426 * @param {number} windowEndTime | 434 * @param {number} windowEndTime |
427 */ | 435 */ |
428 requestWindowTimes: function(windowStartTime, windowEndTime) | 436 requestWindowTimes: function(windowStartTime, windowEndTime) |
429 { | 437 { |
430 this._delegate.requestWindowTimes(windowStartTime, windowEndTime); | 438 this._delegate.requestWindowTimes(windowStartTime, windowEndTime); |
431 }, | 439 }, |
432 | 440 |
433 /** | 441 /** |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 */ | 535 */ |
528 _onEntrySelected: function(event) | 536 _onEntrySelected: function(event) |
529 { | 537 { |
530 var entryIndex = event.data; | 538 var entryIndex = event.data; |
531 var record = this._dataProvider._records[entryIndex]; | 539 var record = this._dataProvider._records[entryIndex]; |
532 this._delegate.selectRecord(record); | 540 this._delegate.selectRecord(record); |
533 }, | 541 }, |
534 | 542 |
535 __proto__: WebInspector.VBox.prototype | 543 __proto__: WebInspector.VBox.prototype |
536 } | 544 } |
OLD | NEW |