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 19 matching lines...) Expand all Loading... |
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("panelEnablerView.css"); | 38 this.registerRequiredCSS("panelEnablerView.css"); |
39 this.registerRequiredCSS("auditsPanel.css"); | 39 this.registerRequiredCSS("auditsPanel.css"); |
40 this.setMainElementConstraints(215); | |
41 | 40 |
42 this.auditsTreeElement = new WebInspector.SidebarSectionTreeElement("", {},
true); | 41 this.auditsTreeElement = new WebInspector.SidebarSectionTreeElement("", {},
true); |
43 this.sidebarTree.appendChild(this.auditsTreeElement); | 42 this.sidebarTree.appendChild(this.auditsTreeElement); |
44 this.auditsTreeElement.listItemElement.classList.add("hidden"); | 43 this.auditsTreeElement.listItemElement.classList.add("hidden"); |
45 | 44 |
46 this.auditsItemTreeElement = new WebInspector.AuditsSidebarTreeElement(this)
; | 45 this.auditsItemTreeElement = new WebInspector.AuditsSidebarTreeElement(this)
; |
47 this.auditsTreeElement.appendChild(this.auditsItemTreeElement); | 46 this.auditsTreeElement.appendChild(this.auditsItemTreeElement); |
48 | 47 |
49 this.auditResultsTreeElement = new WebInspector.SidebarSectionTreeElement(We
bInspector.UIString("RESULTS"), {}, true); | 48 this.auditResultsTreeElement = new WebInspector.SidebarSectionTreeElement(We
bInspector.UIString("RESULTS"), {}, true); |
50 this.sidebarTree.appendChild(this.auditResultsTreeElement); | 49 this.sidebarTree.appendChild(this.auditResultsTreeElement); |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 */ | 515 */ |
517 WebInspector.AuditCategories = {}; | 516 WebInspector.AuditCategories = {}; |
518 | 517 |
519 importScript("AuditCategory.js"); | 518 importScript("AuditCategory.js"); |
520 importScript("AuditCategories.js"); | 519 importScript("AuditCategories.js"); |
521 importScript("AuditController.js"); | 520 importScript("AuditController.js"); |
522 importScript("AuditFormatters.js"); | 521 importScript("AuditFormatters.js"); |
523 importScript("AuditLauncherView.js"); | 522 importScript("AuditLauncherView.js"); |
524 importScript("AuditResultView.js"); | 523 importScript("AuditResultView.js"); |
525 importScript("AuditRules.js"); | 524 importScript("AuditRules.js"); |
OLD | NEW |