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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/components/Linkifier.js

Issue 2376583002: DevTools: remove WI.NetworkMapping.networkURL (Closed)
Patch Set: do not blackbox fs uiSourceCodes Created 4 years, 2 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 /** 293 /**
294 * @param {!Event} event 294 * @param {!Event} event
295 */ 295 */
296 function clickHandler(event) 296 function clickHandler(event)
297 { 297 {
298 var uiLocation = anchor[WebInspector.Linkifier._uiLocationSymbol]; 298 var uiLocation = anchor[WebInspector.Linkifier._uiLocationSymbol];
299 if (!uiLocation) 299 if (!uiLocation)
300 return; 300 return;
301 301
302 event.consume(true); 302 event.consume(true);
303 var networkURL = WebInspector.networkMapping.networkURL(uiLocation.u iSourceCode); 303 if (WebInspector.Linkifier.handleLink(uiLocation.uiSourceCode.url(), uiLocation.lineNumber))
304 if (WebInspector.Linkifier.handleLink(networkURL, uiLocation.lineNum ber))
305 return; 304 return;
306 WebInspector.Revealer.reveal(uiLocation); 305 WebInspector.Revealer.reveal(uiLocation);
307 } 306 }
308 anchor.addEventListener("click", clickHandler, false); 307 anchor.addEventListener("click", clickHandler, false);
309 return anchor; 308 return anchor;
310 }, 309 },
311 310
312 reset: function() 311 reset: function()
313 { 312 {
314 for (var target of this._anchorsByTarget.keysArray()) { 313 for (var target of this._anchorsByTarget.keysArray()) {
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 /** 554 /**
556 * @param {!WebInspector.NetworkRequest} request 555 * @param {!WebInspector.NetworkRequest} request
557 * @return {!Element} 556 * @return {!Element}
558 */ 557 */
559 WebInspector.linkifyRequestAsNode = function(request) 558 WebInspector.linkifyRequestAsNode = function(request)
560 { 559 {
561 var anchor = WebInspector.linkifyURLAsNode(request.url); 560 var anchor = WebInspector.linkifyURLAsNode(request.url);
562 anchor.requestId = request.requestId; 561 anchor.requestId = request.requestId;
563 return anchor; 562 return anchor;
564 } 563 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698