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

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

Issue 356843008: Fix private member access violations in profiler module (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed apavlov's comments 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 977 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 /** 988 /**
989 * @constructor 989 * @constructor
990 * @extends {WebInspector.ProfileHeader} 990 * @extends {WebInspector.ProfileHeader}
991 * @param {!WebInspector.Target} target 991 * @param {!WebInspector.Target} target
992 * @param {!WebInspector.CanvasProfileType} type 992 * @param {!WebInspector.CanvasProfileType} type
993 * @param {!CanvasAgent.TraceLogId=} traceLogId 993 * @param {!CanvasAgent.TraceLogId=} traceLogId
994 * @param {!PageAgent.FrameId=} frameId 994 * @param {!PageAgent.FrameId=} frameId
995 */ 995 */
996 WebInspector.CanvasProfileHeader = function(target, type, traceLogId, frameId) 996 WebInspector.CanvasProfileHeader = function(target, type, traceLogId, frameId)
997 { 997 {
998 WebInspector.ProfileHeader.call(this, target, type, WebInspector.UIString("T race Log %d", type._nextProfileUid)); 998 WebInspector.ProfileHeader.call(this, target, type, WebInspector.UIString("T race Log %d", type.nextProfileUid()));
999 /** @type {!CanvasAgent.TraceLogId} */ 999 /** @type {!CanvasAgent.TraceLogId} */
1000 this._traceLogId = traceLogId || ""; 1000 this._traceLogId = traceLogId || "";
1001 this._frameId = frameId; 1001 this._frameId = frameId;
1002 this._alive = true; 1002 this._alive = true;
1003 this._traceLogSize = 0; 1003 this._traceLogSize = 0;
1004 this._traceLogPlayer = traceLogId ? new WebInspector.CanvasTraceLogPlayerPro xy(traceLogId) : null; 1004 this._traceLogPlayer = traceLogId ? new WebInspector.CanvasTraceLogPlayerPro xy(traceLogId) : null;
1005 } 1005 }
1006 1006
1007 WebInspector.CanvasProfileHeader.prototype = { 1007 WebInspector.CanvasProfileHeader.prototype = {
1008 /** 1008 /**
(...skipping 263 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/HeapSnapshotView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698