| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 /** | 50 /** |
| 51 * @constructor | 51 * @constructor |
| 52 * @extends {WebInspector.HBox} | 52 * @extends {WebInspector.HBox} |
| 53 * @param {!WebInspector.FlameChartDataProvider} dataProvider | 53 * @param {!WebInspector.FlameChartDataProvider} dataProvider |
| 54 * @param {!WebInspector.FlameChartDelegate} flameChartDelegate | 54 * @param {!WebInspector.FlameChartDelegate} flameChartDelegate |
| 55 * @param {boolean} isTopDown | 55 * @param {boolean} isTopDown |
| 56 */ | 56 */ |
| 57 WebInspector.FlameChart = function(dataProvider, flameChartDelegate, isTopDown) | 57 WebInspector.FlameChart = function(dataProvider, flameChartDelegate, isTopDown) |
| 58 { | 58 { |
| 59 WebInspector.HBox.call(this, true); | 59 WebInspector.HBox.call(this, true); |
| 60 this.contentElement.appendChild(WebInspector.View.createStyleElement("compon
ents/flameChart.css")); | 60 this.contentElement.appendChild(WebInspector.View.createStyleElement("ui/fla
meChart.css")); |
| 61 this.contentElement.classList.add("flame-chart-main-pane"); | 61 this.contentElement.classList.add("flame-chart-main-pane"); |
| 62 this._flameChartDelegate = flameChartDelegate; | 62 this._flameChartDelegate = flameChartDelegate; |
| 63 this._isTopDown = isTopDown; | 63 this._isTopDown = isTopDown; |
| 64 | 64 |
| 65 this._calculator = new WebInspector.FlameChart.Calculator(); | 65 this._calculator = new WebInspector.FlameChart.Calculator(); |
| 66 | 66 |
| 67 this._canvas = this.contentElement.createChild("canvas"); | 67 this._canvas = this.contentElement.createChild("canvas"); |
| 68 this._canvas.tabIndex = 1; | 68 this._canvas.tabIndex = 1; |
| 69 this.setDefaultFocusedElement(this._canvas); | 69 this.setDefaultFocusedElement(this._canvas); |
| 70 this._canvas.addEventListener("mousemove", this._onMouseMove.bind(this), fal
se); | 70 this._canvas.addEventListener("mousemove", this._onMouseMove.bind(this), fal
se); |
| (...skipping 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1310 this.update(); | 1310 this.update(); |
| 1311 }, | 1311 }, |
| 1312 | 1312 |
| 1313 _enabled: function() | 1313 _enabled: function() |
| 1314 { | 1314 { |
| 1315 return this._rawTimelineDataLength !== 0; | 1315 return this._rawTimelineDataLength !== 0; |
| 1316 }, | 1316 }, |
| 1317 | 1317 |
| 1318 __proto__: WebInspector.HBox.prototype | 1318 __proto__: WebInspector.HBox.prototype |
| 1319 } | 1319 } |
| OLD | NEW |