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

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

Issue 340513003: DevTools: Add JSDoc for static methods, fix JSDoc types and induced errors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased patch Created 6 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 | Annotate | Revision Log
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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 366
367 /** 367 /**
368 * @param {string} url 368 * @param {string} url
369 * @return {!Element} 369 * @return {!Element}
370 */ 370 */
371 WebInspector.AuditRuleResult.linkifyDisplayName = function(url) 371 WebInspector.AuditRuleResult.linkifyDisplayName = function(url)
372 { 372 {
373 return WebInspector.linkifyURLAsNode(url, WebInspector.displayNameForURL(url )); 373 return WebInspector.linkifyURLAsNode(url, WebInspector.displayNameForURL(url ));
374 } 374 }
375 375
376 /**
377 * @param {string} domain
378 * @return {string}
379 */
376 WebInspector.AuditRuleResult.resourceDomain = function(domain) 380 WebInspector.AuditRuleResult.resourceDomain = function(domain)
377 { 381 {
378 return domain || WebInspector.UIString("[empty domain]"); 382 return domain || WebInspector.UIString("[empty domain]");
379 } 383 }
380 384
381 WebInspector.AuditRuleResult.prototype = { 385 WebInspector.AuditRuleResult.prototype = {
382 /** 386 /**
383 * @param {(string|boolean|number|!Object)} value 387 * @param {(string|boolean|number|!Object)} value
384 * @param {boolean=} expanded 388 * @param {boolean=} expanded
385 * @param {string=} className 389 * @param {string=} className
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 */ 523 */
520 WebInspector.AuditCategories = {}; 524 WebInspector.AuditCategories = {};
521 525
522 importScript("AuditCategory.js"); 526 importScript("AuditCategory.js");
523 importScript("AuditCategories.js"); 527 importScript("AuditCategories.js");
524 importScript("AuditController.js"); 528 importScript("AuditController.js");
525 importScript("AuditFormatters.js"); 529 importScript("AuditFormatters.js");
526 importScript("AuditLauncherView.js"); 530 importScript("AuditLauncherView.js");
527 importScript("AuditResultView.js"); 531 importScript("AuditResultView.js");
528 importScript("AuditRules.js"); 532 importScript("AuditRules.js");
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ScreencastView.js ('k') | Source/devtools/front_end/common/DOMExtension.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698