| 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 15 matching lines...) Expand all Loading... |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * @constructor | 32 * @constructor |
| 33 * @implements {WebInspector.FlameChartDataProvider} | 33 * @implements {WebInspector.FlameChartDataProvider} |
| 34 * @implements {WebInspector.TimelineFlameChart.SelectionProvider} | 34 * @implements {WebInspector.TimelineFlameChart.SelectionProvider} |
| 35 * @param {!WebInspector.TimelineModel} model | 35 * @param {!WebInspector.TimelineModel} model |
| 36 * @param {!WebInspector.TimelineFrameModel} frameModel | 36 * @param {!WebInspector.TimelineFrameModelBase} frameModel |
| 37 */ | 37 */ |
| 38 WebInspector.TimelineFlameChartDataProvider = function(model, frameModel) | 38 WebInspector.TimelineFlameChartDataProvider = function(model, frameModel) |
| 39 { | 39 { |
| 40 WebInspector.FlameChartDataProvider.call(this); | 40 WebInspector.FlameChartDataProvider.call(this); |
| 41 this._model = model; | 41 this._model = model; |
| 42 this._frameModel = frameModel; | 42 this._frameModel = frameModel; |
| 43 this._font = "12px " + WebInspector.fontFamily(); | 43 this._font = "12px " + WebInspector.fontFamily(); |
| 44 this._linkifier = new WebInspector.Linkifier(); | 44 this._linkifier = new WebInspector.Linkifier(); |
| 45 } | 45 } |
| 46 | 46 |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 } | 436 } |
| 437 return -1; | 437 return -1; |
| 438 } | 438 } |
| 439 } | 439 } |
| 440 | 440 |
| 441 /** | 441 /** |
| 442 * @constructor | 442 * @constructor |
| 443 * @implements {WebInspector.FlameChartDataProvider} | 443 * @implements {WebInspector.FlameChartDataProvider} |
| 444 * @implements {WebInspector.TimelineFlameChart.SelectionProvider} | 444 * @implements {WebInspector.TimelineFlameChart.SelectionProvider} |
| 445 * @param {!WebInspector.TracingTimelineModel} model | 445 * @param {!WebInspector.TracingTimelineModel} model |
| 446 * @param {!WebInspector.TimelineFrameModel} frameModel | 446 * @param {!WebInspector.TimelineFrameModelBase} frameModel |
| 447 * @param {!WebInspector.Target} target | 447 * @param {!WebInspector.Target} target |
| 448 */ | 448 */ |
| 449 WebInspector.TracingBasedTimelineFlameChartDataProvider = function(model, frameM
odel, target) | 449 WebInspector.TracingBasedTimelineFlameChartDataProvider = function(model, frameM
odel, target) |
| 450 { | 450 { |
| 451 WebInspector.FlameChartDataProvider.call(this); | 451 WebInspector.FlameChartDataProvider.call(this); |
| 452 this._model = model; | 452 this._model = model; |
| 453 this._frameModel = frameModel; | 453 this._frameModel = frameModel; |
| 454 this._target = target; | 454 this._target = target; |
| 455 this._font = "12px " + WebInspector.fontFamily(); | 455 this._font = "12px " + WebInspector.fontFamily(); |
| 456 this._linkifier = new WebInspector.Linkifier(); | 456 this._linkifier = new WebInspector.Linkifier(); |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 } | 798 } |
| 799 | 799 |
| 800 /** | 800 /** |
| 801 * @constructor | 801 * @constructor |
| 802 * @extends {WebInspector.VBox} | 802 * @extends {WebInspector.VBox} |
| 803 * @implements {WebInspector.TimelineModeView} | 803 * @implements {WebInspector.TimelineModeView} |
| 804 * @implements {WebInspector.FlameChartDelegate} | 804 * @implements {WebInspector.FlameChartDelegate} |
| 805 * @param {!WebInspector.TimelineModeViewDelegate} delegate | 805 * @param {!WebInspector.TimelineModeViewDelegate} delegate |
| 806 * @param {!WebInspector.TimelineModel} model | 806 * @param {!WebInspector.TimelineModel} model |
| 807 * @param {?WebInspector.TracingTimelineModel} tracingModel | 807 * @param {?WebInspector.TracingTimelineModel} tracingModel |
| 808 * @param {!WebInspector.TimelineFrameModel} frameModel | 808 * @param {!WebInspector.TimelineFrameModelBase} frameModel |
| 809 */ | 809 */ |
| 810 WebInspector.TimelineFlameChart = function(delegate, model, tracingModel, frameM
odel) | 810 WebInspector.TimelineFlameChart = function(delegate, model, tracingModel, frameM
odel) |
| 811 { | 811 { |
| 812 WebInspector.VBox.call(this); | 812 WebInspector.VBox.call(this); |
| 813 this.element.classList.add("timeline-flamechart"); | 813 this.element.classList.add("timeline-flamechart"); |
| 814 this.registerRequiredCSS("flameChart.css"); | 814 this.registerRequiredCSS("flameChart.css"); |
| 815 this._delegate = delegate; | 815 this._delegate = delegate; |
| 816 this._model = model; | 816 this._model = model; |
| 817 this._dataProvider = tracingModel | 817 this._dataProvider = tracingModel |
| 818 ? new WebInspector.TracingBasedTimelineFlameChartDataProvider(tracingMod
el, frameModel, model.target()) | 818 ? new WebInspector.TracingBasedTimelineFlameChartDataProvider(tracingMod
el, frameModel, model.target()) |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 971 * @param {number} entryIndex | 971 * @param {number} entryIndex |
| 972 * @return {?WebInspector.TimelineSelection} | 972 * @return {?WebInspector.TimelineSelection} |
| 973 */ | 973 */ |
| 974 createSelection: function(entryIndex) { }, | 974 createSelection: function(entryIndex) { }, |
| 975 /** | 975 /** |
| 976 * @param {?WebInspector.TimelineSelection} selection | 976 * @param {?WebInspector.TimelineSelection} selection |
| 977 * @return {number} | 977 * @return {number} |
| 978 */ | 978 */ |
| 979 entryIndexForSelection: function(selection) { } | 979 entryIndexForSelection: function(selection) { } |
| 980 } | 980 } |
| OLD | NEW |