| 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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 this._overviewPane = new WebInspector.CPUProfileFlameChart.OverviewPane(data
Provider); | 381 this._overviewPane = new WebInspector.CPUProfileFlameChart.OverviewPane(data
Provider); |
| 382 this._overviewPane.show(this.element); | 382 this._overviewPane.show(this.element); |
| 383 | 383 |
| 384 this._mainPane = new WebInspector.FlameChart(dataProvider, this._overviewPan
e, true); | 384 this._mainPane = new WebInspector.FlameChart(dataProvider, this._overviewPan
e, true); |
| 385 this._mainPane.show(this.element); | 385 this._mainPane.show(this.element); |
| 386 this._mainPane.addEventListener(WebInspector.FlameChart.Events.EntrySelected
, this._onEntrySelected, this); | 386 this._mainPane.addEventListener(WebInspector.FlameChart.Events.EntrySelected
, this._onEntrySelected, this); |
| 387 this._overviewPane.addEventListener(WebInspector.OverviewGrid.Events.WindowC
hanged, this._onWindowChanged, this); | 387 this._overviewPane.addEventListener(WebInspector.OverviewGrid.Events.WindowC
hanged, this._onWindowChanged, this); |
| 388 } | 388 } |
| 389 | 389 |
| 390 WebInspector.CPUProfileFlameChart.prototype = { | 390 WebInspector.CPUProfileFlameChart.prototype = { |
| 391 focus: function() |
| 392 { |
| 393 this._mainPane.focus(); |
| 394 }, |
| 395 |
| 391 /** | 396 /** |
| 392 * @param {!WebInspector.Event} event | 397 * @param {!WebInspector.Event} event |
| 393 */ | 398 */ |
| 394 _onWindowChanged: function(event) | 399 _onWindowChanged: function(event) |
| 395 { | 400 { |
| 396 var windowLeft = event.data.windowTimeLeft; | 401 var windowLeft = event.data.windowTimeLeft; |
| 397 var windowRight = event.data.windowTimeRight; | 402 var windowRight = event.data.windowTimeRight; |
| 398 this._mainPane.setWindowTimes(windowLeft, windowRight); | 403 this._mainPane.setWindowTimes(windowLeft, windowRight); |
| 399 }, | 404 }, |
| 400 | 405 |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 { | 658 { |
| 654 var ratio = window.devicePixelRatio; | 659 var ratio = window.devicePixelRatio; |
| 655 this._overviewCanvas.width = width * ratio; | 660 this._overviewCanvas.width = width * ratio; |
| 656 this._overviewCanvas.height = height * ratio; | 661 this._overviewCanvas.height = height * ratio; |
| 657 this._overviewCanvas.style.width = width + "px"; | 662 this._overviewCanvas.style.width = width + "px"; |
| 658 this._overviewCanvas.style.height = height + "px"; | 663 this._overviewCanvas.style.height = height + "px"; |
| 659 }, | 664 }, |
| 660 | 665 |
| 661 __proto__: WebInspector.VBox.prototype | 666 __proto__: WebInspector.VBox.prototype |
| 662 } | 667 } |
| OLD | NEW |