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

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

Issue 352983004: DevTools: add more jsdocs to NetworkPanel. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase 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
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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 callViewElement.appendChild(WebInspector.CanvasProfileDataGridHelper .createCallArgumentElement(call.result)); 512 callViewElement.appendChild(WebInspector.CanvasProfileDataGridHelper .createCallArgumentElement(call.result));
513 } 513 }
514 514
515 var node = new WebInspector.DataGridNode(data); 515 var node = new WebInspector.DataGridNode(data);
516 node.index = index; 516 node.index = index;
517 node.selectable = true; 517 node.selectable = true;
518 node.call = call; 518 node.call = call;
519 return node; 519 return node;
520 }, 520 },
521 521
522 /**
523 * @param {!Element} element
524 * @param {!Event} event
525 * @return {!Element|!AnchorBox|undefined}
526 */
522 _popoverAnchor: function(element, event) 527 _popoverAnchor: function(element, event)
523 { 528 {
524 var argumentElement = element.enclosingNodeOrSelfWithClass("canvas-call- argument"); 529 var argumentElement = element.enclosingNodeOrSelfWithClass("canvas-call- argument");
525 if (!argumentElement || argumentElement.__suppressPopover) 530 if (!argumentElement || argumentElement.__suppressPopover)
526 return null; 531 return;
527 return argumentElement; 532 return argumentElement;
528 }, 533 },
529 534
530 _resolveObjectForPopover: function(argumentElement, showCallback, objectGrou pName) 535 _resolveObjectForPopover: function(argumentElement, showCallback, objectGrou pName)
531 { 536 {
532 /** 537 /**
533 * @param {?Protocol.Error} error 538 * @param {?Protocol.Error} error
534 * @param {!RuntimeAgent.RemoteObject=} result 539 * @param {!RuntimeAgent.RemoteObject=} result
535 * @param {!CanvasAgent.ResourceState=} resourceState 540 * @param {!CanvasAgent.ResourceState=} resourceState
536 * @this {WebInspector.CanvasProfileView} 541 * @this {WebInspector.CanvasProfileView}
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
1267 }, 1272 },
1268 1273
1269 clearResourceStates: function() 1274 clearResourceStates: function()
1270 { 1275 {
1271 this._currentResourceStates = {}; 1276 this._currentResourceStates = {};
1272 this.dispatchEventToListeners(WebInspector.CanvasTraceLogPlayerProxy.Eve nts.CanvasReplayStateChanged); 1277 this.dispatchEventToListeners(WebInspector.CanvasTraceLogPlayerProxy.Eve nts.CanvasReplayStateChanged);
1273 }, 1278 },
1274 1279
1275 __proto__: WebInspector.Object.prototype 1280 __proto__: WebInspector.Object.prototype
1276 } 1281 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/network/NetworkPanel.js ('k') | Source/devtools/front_end/sources/JavaScriptSourceFrame.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698