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 18 matching lines...) Expand all Loading... | |
29 */ | 29 */ |
30 | 30 |
31 /** | 31 /** |
32 * @constructor | 32 * @constructor |
33 * @param {!WebInspector.AuditController} auditController | 33 * @param {!WebInspector.AuditController} auditController |
34 * @extends {WebInspector.VBox} | 34 * @extends {WebInspector.VBox} |
35 */ | 35 */ |
36 WebInspector.AuditLauncherView = function(auditController) | 36 WebInspector.AuditLauncherView = function(auditController) |
37 { | 37 { |
38 WebInspector.VBox.call(this); | 38 WebInspector.VBox.call(this); |
39 this.setMinimumSize(new Size(100, 50)); | |
pfeldman
2014/03/14 06:23:10
You could have created Size inside the method.
dgozman
2014/03/14 15:55:15
Done.
| |
39 | 40 |
40 this._auditController = auditController; | 41 this._auditController = auditController; |
41 | 42 |
42 this._categoryIdPrefix = "audit-category-item-"; | 43 this._categoryIdPrefix = "audit-category-item-"; |
43 this._auditRunning = false; | 44 this._auditRunning = false; |
44 | 45 |
45 this.element.classList.add("audit-launcher-view"); | 46 this.element.classList.add("audit-launcher-view"); |
46 this.element.classList.add("panel-enabler-view"); | 47 this.element.classList.add("panel-enabler-view"); |
47 | 48 |
48 this._contentElement = document.createElement("div"); | 49 this._contentElement = document.createElement("div"); |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
318 }, | 319 }, |
319 | 320 |
320 _updateButton: function() | 321 _updateButton: function() |
321 { | 322 { |
322 this._launchButton.textContent = this._auditRunning ? WebInspector.UIStr ing("Stop") : WebInspector.UIString("Run"); | 323 this._launchButton.textContent = this._auditRunning ? WebInspector.UIStr ing("Stop") : WebInspector.UIString("Run"); |
323 this._launchButton.disabled = !this._currentCategoriesCount; | 324 this._launchButton.disabled = !this._currentCategoriesCount; |
324 }, | 325 }, |
325 | 326 |
326 __proto__: WebInspector.VBox.prototype | 327 __proto__: WebInspector.VBox.prototype |
327 } | 328 } |
OLD | NEW |