| 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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 /** @type {!Object.<string, !Element>} */ | 632 /** @type {!Object.<string, !Element>} */ |
| 633 this._frameOptions = {}; | 633 this._frameOptions = {}; |
| 634 | 634 |
| 635 /** @type {!Object.<string, boolean>} */ | 635 /** @type {!Object.<string, boolean>} */ |
| 636 this._framesWithCanvases = {}; | 636 this._framesWithCanvases = {}; |
| 637 | 637 |
| 638 this._frameSelector = new WebInspector.StatusBarComboBox(this._dispatchViewU
pdatedEvent.bind(this)); | 638 this._frameSelector = new WebInspector.StatusBarComboBox(this._dispatchViewU
pdatedEvent.bind(this)); |
| 639 this._frameSelector.element.title = WebInspector.UIString("Frame containing
the canvases to capture."); | 639 this._frameSelector.element.title = WebInspector.UIString("Frame containing
the canvases to capture."); |
| 640 this._frameSelector.element.classList.add("hidden"); | 640 this._frameSelector.element.classList.add("hidden"); |
| 641 | 641 |
| 642 this._target = /** @type {!WebInspector.Target} */ (WebInspector.targetManag
er.activeTarget()); | 642 this._target = /** @type {!WebInspector.Target} */ (WebInspector.targetManag
er.mainTarget()); |
| 643 this._target.resourceTreeModel.frames().forEach(this._addFrame, this); | 643 this._target.resourceTreeModel.frames().forEach(this._addFrame, this); |
| 644 this._target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeMod
el.EventTypes.FrameAdded, this._frameAdded, this); | 644 this._target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeMod
el.EventTypes.FrameAdded, this._frameAdded, this); |
| 645 this._target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeMod
el.EventTypes.FrameDetached, this._frameRemoved, this); | 645 this._target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeMod
el.EventTypes.FrameDetached, this._frameRemoved, this); |
| 646 | 646 |
| 647 this._dispatcher = new WebInspector.CanvasDispatcher(this); | 647 this._dispatcher = new WebInspector.CanvasDispatcher(this); |
| 648 this._canvasAgentEnabled = false; | 648 this._canvasAgentEnabled = false; |
| 649 | 649 |
| 650 this._decorationElement = document.createElement("div"); | 650 this._decorationElement = document.createElement("div"); |
| 651 this._decorationElement.className = "profile-canvas-decoration"; | 651 this._decorationElement.className = "profile-canvas-decoration"; |
| 652 this._updateDecorationElement(); | 652 this._updateDecorationElement(); |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1272 }, | 1272 }, |
| 1273 | 1273 |
| 1274 clearResourceStates: function() | 1274 clearResourceStates: function() |
| 1275 { | 1275 { |
| 1276 this._currentResourceStates = {}; | 1276 this._currentResourceStates = {}; |
| 1277 this.dispatchEventToListeners(WebInspector.CanvasTraceLogPlayerProxy.Eve
nts.CanvasReplayStateChanged); | 1277 this.dispatchEventToListeners(WebInspector.CanvasTraceLogPlayerProxy.Eve
nts.CanvasReplayStateChanged); |
| 1278 }, | 1278 }, |
| 1279 | 1279 |
| 1280 __proto__: WebInspector.Object.prototype | 1280 __proto__: WebInspector.Object.prototype |
| 1281 } | 1281 } |
| OLD | NEW |