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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/audits/AuditsPanel.js

Issue 2512873002: [DevTools] Do not use external links for resources anymore. (Closed)
Patch Set: 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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 var standardFormatters = Object.keys(String.standardFormatters); 370 var standardFormatters = Object.keys(String.standardFormatters);
371 for (var i = 0; i < standardFormatters.length; ++i) 371 for (var i = 0; i < standardFormatters.length; ++i)
372 this._formatters[standardFormatters[i]] = String.standardFormatters[standa rdFormatters[i]]; 372 this._formatters[standardFormatters[i]] = String.standardFormatters[standa rdFormatters[i]];
373 } 373 }
374 374
375 /** 375 /**
376 * @param {string} url 376 * @param {string} url
377 * @return {!Element} 377 * @return {!Element}
378 */ 378 */
379 static linkifyDisplayName(url) { 379 static linkifyDisplayName(url) {
380 return Components.Linkifier.linkifyURLAsNode(url, Bindings.displayNameForURL (url)); 380 return Components.Linkifier.linkifyURL(url, Bindings.displayNameForURL(url)) ;
381 } 381 }
382 382
383 /** 383 /**
384 * @param {string} domain 384 * @param {string} domain
385 * @return {string} 385 * @return {string}
386 */ 386 */
387 static resourceDomain(domain) { 387 static resourceDomain(domain) {
388 return domain || Common.UIString('[empty domain]'); 388 return domain || Common.UIString('[empty domain]');
389 } 389 }
390 390
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 505
506 506
507 // Contributed audit rules should go into this namespace. 507 // Contributed audit rules should go into this namespace.
508 Audits.AuditRules = {}; 508 Audits.AuditRules = {};
509 509
510 /** 510 /**
511 * Contributed audit categories should go into this namespace. 511 * Contributed audit categories should go into this namespace.
512 * @type {!Object.<string, function(new:Audits.AuditCategory)>} 512 * @type {!Object.<string, function(new:Audits.AuditCategory)>}
513 */ 513 */
514 Audits.AuditCategories = {}; 514 Audits.AuditCategories = {};
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698