| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 var items = this._profileTypeSelectorForm.elements; | 198 var items = this._profileTypeSelectorForm.elements; |
| 199 for (var i = 0; i < items.length; ++i) { | 199 for (var i = 0; i < items.length; ++i) { |
| 200 if (items[i].type === "radio") | 200 if (items[i].type === "radio") |
| 201 items[i].disabled = this._isProfiling; | 201 items[i].disabled = this._isProfiling; |
| 202 } | 202 } |
| 203 }, | 203 }, |
| 204 | 204 |
| 205 /** | 205 /** |
| 206 * @param {!WebInspector.ProfileType} profileType | 206 * @param {!WebInspector.ProfileType} profileType |
| 207 */ | 207 */ |
| 208 _profileTypeChanged: function(profileType, event) | 208 _profileTypeChanged: function(profileType) |
| 209 { | 209 { |
| 210 this.dispatchEventToListeners(WebInspector.MultiProfileLauncherView.Even
tTypes.ProfileTypeSelected, profileType); | 210 this.dispatchEventToListeners(WebInspector.MultiProfileLauncherView.Even
tTypes.ProfileTypeSelected, profileType); |
| 211 this._isInstantProfile = profileType.isInstantProfile(); | 211 this._isInstantProfile = profileType.isInstantProfile(); |
| 212 this._isEnabled = profileType.isEnabled(); | 212 this._isEnabled = profileType.isEnabled(); |
| 213 this._profileTypeId = profileType.id; | 213 this._profileTypeId = profileType.id; |
| 214 this._updateControls(); | 214 this._updateControls(); |
| 215 WebInspector.settings.selectedProfileType.set(profileType.id); | 215 WebInspector.settings.selectedProfileType.set(profileType.id); |
| 216 }, | 216 }, |
| 217 | 217 |
| 218 profileStarted: function() | 218 profileStarted: function() |
| 219 { | 219 { |
| 220 this._isProfiling = true; | 220 this._isProfiling = true; |
| 221 this._updateControls(); | 221 this._updateControls(); |
| 222 }, | 222 }, |
| 223 | 223 |
| 224 profileFinished: function() | 224 profileFinished: function() |
| 225 { | 225 { |
| 226 this._isProfiling = false; | 226 this._isProfiling = false; |
| 227 this._updateControls(); | 227 this._updateControls(); |
| 228 }, | 228 }, |
| 229 | 229 |
| 230 __proto__: WebInspector.ProfileLauncherView.prototype | 230 __proto__: WebInspector.ProfileLauncherView.prototype |
| 231 } | 231 } |
| 232 | 232 |
| OLD | NEW |