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

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

Issue 2902273002: DevTools: convert linkifyURL params into options object (Closed)
Patch Set: rebase and ac Created 3 years, 6 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 var standardFormatters = Object.keys(String.standardFormatters); 371 var standardFormatters = Object.keys(String.standardFormatters);
372 for (var i = 0; i < standardFormatters.length; ++i) 372 for (var i = 0; i < standardFormatters.length; ++i)
373 this._formatters[standardFormatters[i]] = String.standardFormatters[standa rdFormatters[i]]; 373 this._formatters[standardFormatters[i]] = String.standardFormatters[standa rdFormatters[i]];
374 } 374 }
375 375
376 /** 376 /**
377 * @param {string} url 377 * @param {string} url
378 * @return {!Element} 378 * @return {!Element}
379 */ 379 */
380 static linkifyDisplayName(url) { 380 static linkifyDisplayName(url) {
381 return Components.Linkifier.linkifyURL(url, Bindings.displayNameForURL(url)) ; 381 return Components.Linkifier.linkifyURL(url, {text: Bindings.displayNameForUR L(url)});
382 } 382 }
383 383
384 /** 384 /**
385 * @param {string} domain 385 * @param {string} domain
386 * @return {string} 386 * @return {string}
387 */ 387 */
388 static resourceDomain(domain) { 388 static resourceDomain(domain) {
389 return domain || Common.UIString('[empty domain]'); 389 return domain || Common.UIString('[empty domain]');
390 } 390 }
391 391
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 506
507 507
508 // Contributed audit rules should go into this namespace. 508 // Contributed audit rules should go into this namespace.
509 Audits.AuditRules = {}; 509 Audits.AuditRules = {};
510 510
511 /** 511 /**
512 * Contributed audit categories should go into this namespace. 512 * Contributed audit categories should go into this namespace.
513 * @type {!Object.<string, function(new:Audits.AuditCategory)>} 513 * @type {!Object.<string, function(new:Audits.AuditCategory)>}
514 */ 514 */
515 Audits.AuditCategories = {}; 515 Audits.AuditCategories = {};
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698