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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 this._isProfiling = true; | 87 this._isProfiling = true; |
88 this._updateControls(); | 88 this._updateControls(); |
89 }, | 89 }, |
90 | 90 |
91 profileFinished: function() | 91 profileFinished: function() |
92 { | 92 { |
93 this._isProfiling = false; | 93 this._isProfiling = false; |
94 this._updateControls(); | 94 this._updateControls(); |
95 }, | 95 }, |
96 | 96 |
| 97 /** |
| 98 * @param {WebInspector.ProfileType} profileType |
| 99 */ |
| 100 updateProfileType: function(profileType) |
| 101 { |
| 102 this._isInstantProfile = profileType.isInstantProfile(); |
| 103 this._updateControls(); |
| 104 }, |
| 105 |
97 __proto__: WebInspector.View.prototype | 106 __proto__: WebInspector.View.prototype |
98 } | 107 } |
99 | 108 |
100 | 109 |
101 /** | 110 /** |
102 * @constructor | 111 * @constructor |
103 * @extends {WebInspector.ProfileLauncherView} | 112 * @extends {WebInspector.ProfileLauncherView} |
104 * @param {!WebInspector.ProfilesPanel} profilesPanel | 113 * @param {!WebInspector.ProfilesPanel} profilesPanel |
105 */ | 114 */ |
106 WebInspector.MultiProfileLauncherView = function(profilesPanel) | 115 WebInspector.MultiProfileLauncherView = function(profilesPanel) |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 188 |
180 profileFinished: function() | 189 profileFinished: function() |
181 { | 190 { |
182 this._isProfiling = false; | 191 this._isProfiling = false; |
183 this._updateControls(); | 192 this._updateControls(); |
184 }, | 193 }, |
185 | 194 |
186 __proto__: WebInspector.ProfileLauncherView.prototype | 195 __proto__: WebInspector.ProfileLauncherView.prototype |
187 } | 196 } |
188 | 197 |
OLD | NEW |