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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkLogViewColumns.js

Issue 2801943003: [DevTools] Remove SDK.SDKObject (Closed)
Patch Set: Created 3 years, 8 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 /** 4 /**
5 * @unrestricted 5 * @unrestricted
6 */ 6 */
7 Network.NetworkLogViewColumns = class { 7 Network.NetworkLogViewColumns = class {
8 /** 8 /**
9 * @param {!Network.NetworkLogView} networkLogView 9 * @param {!Network.NetworkLogView} networkLogView
10 * @param {!Network.NetworkTransferTimeCalculator} timeCalculator 10 * @param {!Network.NetworkTransferTimeCalculator} timeCalculator
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 var anchor = event.target.enclosingNodeOrSelfWithClass('network-script-initi ated'); 578 var anchor = event.target.enclosingNodeOrSelfWithClass('network-script-initi ated');
579 var request = /** @type {?SDK.NetworkRequest} */ (anchor ? anchor.request : null); 579 var request = /** @type {?SDK.NetworkRequest} */ (anchor ? anchor.request : null);
580 var initiator = request ? request.initiator() : null; 580 var initiator = request ? request.initiator() : null;
581 if (!initiator || !initiator.stack) 581 if (!initiator || !initiator.stack)
582 return null; 582 return null;
583 583
584 return { 584 return {
585 box: anchor.boxInWindow(), 585 box: anchor.boxInWindow(),
586 show: popover => { 586 show: popover => {
587 var content = Components.DOMPresentationUtils.buildStackTracePreviewCont ents( 587 var content = Components.DOMPresentationUtils.buildStackTracePreviewCont ents(
588 anchor.request.target(), this._popupLinkifier, initiator.stack); 588 anchor.request.networkManager().target(), this._popupLinkifier, init iator.stack);
589 popover.contentElement.appendChild(content); 589 popover.contentElement.appendChild(content);
590 return Promise.resolve(true); 590 return Promise.resolve(true);
591 }, 591 },
592 hide: () => { 592 hide: () => {
593 this._popupLinkifier.reset(); 593 this._popupLinkifier.reset();
594 } 594 }
595 }; 595 };
596 } 596 }
597 597
598 /** 598 /**
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 */ 867 */
868 lookupColumnValue(request) {}, 868 lookupColumnValue(request) {},
869 869
870 /** 870 /**
871 * @param {!SDK.NetworkRequest} aRequest 871 * @param {!SDK.NetworkRequest} aRequest
872 * @param {!SDK.NetworkRequest} bRequest 872 * @param {!SDK.NetworkRequest} bRequest
873 * @return {number} 873 * @return {number}
874 */ 874 */
875 requestComparator(aRequest, bRequest) {} 875 requestComparator(aRequest, bRequest) {}
876 }; 876 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698