| 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 30 matching lines...) Expand all Loading... |
| 41 this._sidebarTree.registerRequiredCSS('audits/auditsSidebarTree.css'); | 41 this._sidebarTree.registerRequiredCSS('audits/auditsSidebarTree.css'); |
| 42 this.panelSidebarElement().appendChild(this._sidebarTree.element); | 42 this.panelSidebarElement().appendChild(this._sidebarTree.element); |
| 43 | 43 |
| 44 this._auditsItemTreeElement = new Audits.AuditsSidebarTreeElement(this); | 44 this._auditsItemTreeElement = new Audits.AuditsSidebarTreeElement(this); |
| 45 this._sidebarTree.appendChild(this._auditsItemTreeElement); | 45 this._sidebarTree.appendChild(this._auditsItemTreeElement); |
| 46 | 46 |
| 47 this._auditResultsTreeElement = new UI.TreeElement(Common.UIString('RESULTS'
), true); | 47 this._auditResultsTreeElement = new UI.TreeElement(Common.UIString('RESULTS'
), true); |
| 48 this._auditResultsTreeElement.selectable = false; | 48 this._auditResultsTreeElement.selectable = false; |
| 49 this._auditResultsTreeElement.listItemElement.classList.add('audits-sidebar-
results'); | 49 this._auditResultsTreeElement.listItemElement.classList.add('audits-sidebar-
results'); |
| 50 this._auditResultsTreeElement.expand(); | 50 this._auditResultsTreeElement.expand(); |
| 51 this._auditResultsTreeElement.setCollapsible(false); |
| 51 this._sidebarTree.appendChild(this._auditResultsTreeElement); | 52 this._sidebarTree.appendChild(this._auditResultsTreeElement); |
| 52 | 53 |
| 53 this._constructCategories(); | 54 this._constructCategories(); |
| 54 | 55 |
| 55 this._auditController = new Audits.AuditController(this); | 56 this._auditController = new Audits.AuditController(this); |
| 56 this._launcherView = new Audits.AuditLauncherView(this._auditController); | 57 this._launcherView = new Audits.AuditLauncherView(this._auditController); |
| 57 for (var id in this.categoriesById) | 58 for (var id in this.categoriesById) |
| 58 this._launcherView.addCategory(this.categoriesById[id]); | 59 this._launcherView.addCategory(this.categoriesById[id]); |
| 59 | 60 |
| 60 var extensionCategories = Extensions.extensionServer.auditCategories(); | 61 var extensionCategories = Extensions.extensionServer.auditCategories(); |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 | 506 |
| 506 | 507 |
| 507 // Contributed audit rules should go into this namespace. | 508 // Contributed audit rules should go into this namespace. |
| 508 Audits.AuditRules = {}; | 509 Audits.AuditRules = {}; |
| 509 | 510 |
| 510 /** | 511 /** |
| 511 * Contributed audit categories should go into this namespace. | 512 * Contributed audit categories should go into this namespace. |
| 512 * @type {!Object.<string, function(new:Audits.AuditCategory)>} | 513 * @type {!Object.<string, function(new:Audits.AuditCategory)>} |
| 513 */ | 514 */ |
| 514 Audits.AuditCategories = {}; | 515 Audits.AuditCategories = {}; |
| OLD | NEW |