Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: Source/devtools/front_end/profiler/CanvasProfileView.js

Issue 396993003: DevTools: get rid of WebInspector.cssModel, use target models instead (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/profiler/CPUProfileView.js ('k') | Source/devtools/front_end/profiler/HeapSnapshotProxy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698