Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: Source/devtools/front_end/audits/AuditsPanel.js

Issue 396993003: DevTools: get rid of WebInspector.cssModel, use target models instead (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698