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

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

Issue 2501883002: DevTools: kill Bindings.NetworkMapping (Closed)
Patch Set: rebaseline Created 4 years, 1 month 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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 */ 544 */
545 Components.linkifyStringAsFragment = function(string) { 545 Components.linkifyStringAsFragment = function(string) {
546 /** 546 /**
547 * @param {string} title 547 * @param {string} title
548 * @param {string} url 548 * @param {string} url
549 * @param {number=} lineNumber 549 * @param {number=} lineNumber
550 * @param {number=} columnNumber 550 * @param {number=} columnNumber
551 * @return {!Node} 551 * @return {!Node}
552 */ 552 */
553 function linkifier(title, url, lineNumber, columnNumber) { 553 function linkifier(title, url, lineNumber, columnNumber) {
554 var isExternal = !Bindings.resourceForURL(url) && !Bindings.networkMapping.u iSourceCodeForURLForAnyTarget(url); 554 var isExternal = !Bindings.resourceForURL(url) && !Workspace.workspace.uiSou rceCodeForURL(url);
555 var urlNode = UI.linkifyURLAsNode(url, title, undefined, isExternal); 555 var urlNode = UI.linkifyURLAsNode(url, title, undefined, isExternal);
556 if (typeof lineNumber !== 'undefined') { 556 if (typeof lineNumber !== 'undefined') {
557 urlNode.lineNumber = lineNumber; 557 urlNode.lineNumber = lineNumber;
558 if (typeof columnNumber !== 'undefined') 558 if (typeof columnNumber !== 'undefined')
559 urlNode.columnNumber = columnNumber; 559 urlNode.columnNumber = columnNumber;
560 } 560 }
561 561
562 return urlNode; 562 return urlNode;
563 } 563 }
564 564
(...skipping 26 matching lines...) Expand all
591 591
592 /** 592 /**
593 * @param {!SDK.NetworkRequest} request 593 * @param {!SDK.NetworkRequest} request
594 * @return {!Element} 594 * @return {!Element}
595 */ 595 */
596 Components.linkifyRequestAsNode = function(request) { 596 Components.linkifyRequestAsNode = function(request) {
597 var anchor = UI.linkifyURLAsNode(request.url); 597 var anchor = UI.linkifyURLAsNode(request.url);
598 anchor.requestId = request.requestId; 598 anchor.requestId = request.requestId;
599 return anchor; 599 return anchor;
600 }; 600 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698