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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 } |
OLD | NEW |