| 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 */ | 524 */ |
| 525 onselect: function() | 525 onselect: function() |
| 526 { | 526 { |
| 527 this._panel.showResults(this.results); | 527 this._panel.showResults(this.results); |
| 528 return true; | 528 return true; |
| 529 }, | 529 }, |
| 530 | 530 |
| 531 __proto__: TreeElement.prototype | 531 __proto__: TreeElement.prototype |
| 532 } | 532 } |
| 533 | 533 |
| 534 WebInspector.AuditsPanel.show = function() | |
| 535 { | |
| 536 WebInspector.inspectorView.setCurrentPanel(WebInspector.AuditsPanel.instance
()); | |
| 537 } | |
| 538 | |
| 539 /** | 534 /** |
| 540 * @return {!WebInspector.AuditsPanel} | 535 * @return {!WebInspector.AuditsPanel} |
| 541 */ | 536 */ |
| 542 WebInspector.AuditsPanel.instance = function() | 537 WebInspector.AuditsPanel.instance = function() |
| 543 { | 538 { |
| 544 return /** @type {!WebInspector.AuditsPanel} */ (self.runtime.sharedInstance
(WebInspector.AuditsPanel)); | 539 return /** @type {!WebInspector.AuditsPanel} */ (self.runtime.sharedInstance
(WebInspector.AuditsPanel)); |
| 545 } | 540 } |
| 546 | 541 |
| 547 // Contributed audit rules should go into this namespace. | 542 // Contributed audit rules should go into this namespace. |
| 548 WebInspector.AuditRules = {}; | 543 WebInspector.AuditRules = {}; |
| 549 | 544 |
| 550 /** | 545 /** |
| 551 * Contributed audit categories should go into this namespace. | 546 * Contributed audit categories should go into this namespace. |
| 552 * @type {!Object.<string, function(new:WebInspector.AuditCategory)>} | 547 * @type {!Object.<string, function(new:WebInspector.AuditCategory)>} |
| 553 */ | 548 */ |
| 554 WebInspector.AuditCategories = {}; | 549 WebInspector.AuditCategories = {}; |
| OLD | NEW |