| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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); |
| 49 this.sidebarTree.appendChild(this.auditResultsTreeElement); | 49 this.sidebarTree.appendChild(this.auditResultsTreeElement); |
| 50 this.auditResultsTreeElement.expand(); | 50 this.auditResultsTreeElement.expand(); |
| 51 | 51 |
| 52 this._constructCategories(); | 52 this._constructCategories(); |
| 53 | 53 |
| 54 var target = /** @type {!WebInspector.Target} */ (WebInspector.targetManager
.activeTarget()); | 54 var target = /** @type {!WebInspector.Target} */ (WebInspector.targetManager
.mainTarget()); |
| 55 this._auditController = new WebInspector.AuditController(target, this); | 55 this._auditController = new WebInspector.AuditController(target, this); |
| 56 this._launcherView = new WebInspector.AuditLauncherView(this._auditControlle
r); | 56 this._launcherView = new WebInspector.AuditLauncherView(this._auditControlle
r); |
| 57 for (var id in this.categoriesById) | 57 for (var id in this.categoriesById) |
| 58 this._launcherView.addCategory(this.categoriesById[id]); | 58 this._launcherView.addCategory(this.categoriesById[id]); |
| 59 } | 59 } |
| 60 | 60 |
| 61 WebInspector.AuditsPanel.prototype = { | 61 WebInspector.AuditsPanel.prototype = { |
| 62 /** | 62 /** |
| 63 * @return {boolean} | 63 * @return {boolean} |
| 64 */ | 64 */ |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 */ | 523 */ |
| 524 WebInspector.AuditCategories = {}; | 524 WebInspector.AuditCategories = {}; |
| 525 | 525 |
| 526 importScript("AuditCategory.js"); | 526 importScript("AuditCategory.js"); |
| 527 importScript("AuditCategories.js"); | 527 importScript("AuditCategories.js"); |
| 528 importScript("AuditController.js"); | 528 importScript("AuditController.js"); |
| 529 importScript("AuditFormatters.js"); | 529 importScript("AuditFormatters.js"); |
| 530 importScript("AuditLauncherView.js"); | 530 importScript("AuditLauncherView.js"); |
| 531 importScript("AuditResultView.js"); | 531 importScript("AuditResultView.js"); |
| 532 importScript("AuditRules.js"); | 532 importScript("AuditRules.js"); |
| OLD | NEW |