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 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 /** | 31 /** |
32 * @constructor | 32 * @constructor |
33 * @extends {WebInspector.PanelWithSidebarTree} | 33 * @extends {WebInspector.PanelWithSidebarTree} |
34 */ | 34 */ |
35 WebInspector.AuditsPanel = function() | 35 WebInspector.AuditsPanel = function() |
36 { | 36 { |
37 WebInspector.PanelWithSidebarTree.call(this, "audits"); | 37 WebInspector.PanelWithSidebarTree.call(this, "audits"); |
38 this.registerRequiredCSS("components/panelEnablerView.css"); | 38 this.registerRequiredCSS("ui/panelEnablerView.css"); |
39 this.registerRequiredCSS("audits/auditsPanel.css"); | 39 this.registerRequiredCSS("audits/auditsPanel.css"); |
40 | 40 |
41 this.auditsTreeElement = new WebInspector.SidebarSectionTreeElement("", {},
true); | 41 this.auditsTreeElement = new WebInspector.SidebarSectionTreeElement("", {},
true); |
42 this.sidebarTree.appendChild(this.auditsTreeElement); | 42 this.sidebarTree.appendChild(this.auditsTreeElement); |
43 this.auditsTreeElement.listItemElement.classList.add("hidden"); | 43 this.auditsTreeElement.listItemElement.classList.add("hidden"); |
44 | 44 |
45 this.auditsItemTreeElement = new WebInspector.AuditsSidebarTreeElement(this)
; | 45 this.auditsItemTreeElement = new WebInspector.AuditsSidebarTreeElement(this)
; |
46 this.auditsTreeElement.appendChild(this.auditsItemTreeElement); | 46 this.auditsTreeElement.appendChild(this.auditsItemTreeElement); |
47 | 47 |
48 this.auditResultsTreeElement = new WebInspector.SidebarSectionTreeElement(We
bInspector.UIString("RESULTS"), {}, true); | 48 this.auditResultsTreeElement = new WebInspector.SidebarSectionTreeElement(We
bInspector.UIString("RESULTS"), {}, true); |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 } | 568 } |
569 | 569 |
570 // Contributed audit rules should go into this namespace. | 570 // Contributed audit rules should go into this namespace. |
571 WebInspector.AuditRules = {}; | 571 WebInspector.AuditRules = {}; |
572 | 572 |
573 /** | 573 /** |
574 * Contributed audit categories should go into this namespace. | 574 * Contributed audit categories should go into this namespace. |
575 * @type {!Object.<string, function(new:WebInspector.AuditCategory)>} | 575 * @type {!Object.<string, function(new:WebInspector.AuditCategory)>} |
576 */ | 576 */ |
577 WebInspector.AuditCategories = {}; | 577 WebInspector.AuditCategories = {}; |
OLD | NEW |