| OLD | NEW |
| 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 Loading... |
| 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: url, text: Bindings.displayName
ForURL(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 Loading... |
| 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 = {}; |
| OLD | NEW |