OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 this._headerElement.className = "no-audits"; | 59 this._headerElement.className = "no-audits"; |
60 this._headerElement.textContent = WebInspector.UIString("No audits to run"); | 60 this._headerElement.textContent = WebInspector.UIString("No audits to run"); |
61 this._contentElement.appendChild(this._headerElement); | 61 this._contentElement.appendChild(this._headerElement); |
62 | 62 |
63 WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, Web
Inspector.NetworkManager.Events.RequestStarted, this._onRequestStarted, this); | 63 WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, Web
Inspector.NetworkManager.Events.RequestStarted, this._onRequestStarted, this); |
64 WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, Web
Inspector.NetworkManager.Events.RequestFinished, this._onRequestFinished, this); | 64 WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, Web
Inspector.NetworkManager.Events.RequestFinished, this._onRequestFinished, this); |
65 | 65 |
66 var defaultSelectedAuditCategory = {}; | 66 var defaultSelectedAuditCategory = {}; |
67 defaultSelectedAuditCategory[WebInspector.AuditLauncherView.AllCategoriesKey
] = true; | 67 defaultSelectedAuditCategory[WebInspector.AuditLauncherView.AllCategoriesKey
] = true; |
68 this._selectedCategoriesSetting = WebInspector.settings.createSetting("selec
tedAuditCategories", defaultSelectedAuditCategory); | 68 this._selectedCategoriesSetting = WebInspector.settings.createSetting("selec
tedAuditCategories", defaultSelectedAuditCategory); |
69 } | 69 }; |
70 | 70 |
71 WebInspector.AuditLauncherView.AllCategoriesKey = "__AllCategories"; | 71 WebInspector.AuditLauncherView.AllCategoriesKey = "__AllCategories"; |
72 | 72 |
73 WebInspector.AuditLauncherView.prototype = { | 73 WebInspector.AuditLauncherView.prototype = { |
74 _resetResourceCount: function() | 74 _resetResourceCount: function() |
75 { | 75 { |
76 this._loadedResources = 0; | 76 this._loadedResources = 0; |
77 this._totalResources = 0; | 77 this._totalResources = 0; |
78 }, | 78 }, |
79 | 79 |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 this._updateButton(); | 300 this._updateButton(); |
301 }, | 301 }, |
302 | 302 |
303 _updateButton: function() | 303 _updateButton: function() |
304 { | 304 { |
305 this._launchButton.textContent = this._auditRunning ? WebInspector.UIStr
ing("Stop") : WebInspector.UIString("Run"); | 305 this._launchButton.textContent = this._auditRunning ? WebInspector.UIStr
ing("Stop") : WebInspector.UIString("Run"); |
306 this._launchButton.disabled = !this._currentCategoriesCount; | 306 this._launchButton.disabled = !this._currentCategoriesCount; |
307 }, | 307 }, |
308 | 308 |
309 __proto__: WebInspector.VBox.prototype | 309 __proto__: WebInspector.VBox.prototype |
310 } | 310 }; |
OLD | NEW |