| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 156 |
| 157 /** | 157 /** |
| 158 * @return {?Element} | 158 * @return {?Element} |
| 159 */ | 159 */ |
| 160 decorationElement: function() | 160 decorationElement: function() |
| 161 { | 161 { |
| 162 return null; | 162 return null; |
| 163 }, | 163 }, |
| 164 | 164 |
| 165 /** | 165 /** |
| 166 * @nosideeffects | |
| 167 * @param {number} uid | 166 * @param {number} uid |
| 168 * @return {?WebInspector.ProfileHeader} | 167 * @return {?WebInspector.ProfileHeader} |
| 169 */ | 168 */ |
| 170 getProfile: function(uid) | 169 getProfile: function(uid) |
| 171 { | 170 { |
| 172 | |
| 173 for (var i = 0; i < this._profiles.length; ++i) { | 171 for (var i = 0; i < this._profiles.length; ++i) { |
| 174 if (this._profiles[i].uid === uid) | 172 if (this._profiles[i].uid === uid) |
| 175 return this._profiles[i]; | 173 return this._profiles[i]; |
| 176 } | 174 } |
| 177 return null; | 175 return null; |
| 178 }, | 176 }, |
| 179 | 177 |
| 180 /** | 178 /** |
| 181 * @param {!File} file | 179 * @param {!File} file |
| 182 */ | 180 */ |
| (...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1300 * @return {boolean} | 1298 * @return {boolean} |
| 1301 */ | 1299 */ |
| 1302 handleAction: function(context, actionId) | 1300 handleAction: function(context, actionId) |
| 1303 { | 1301 { |
| 1304 var panel = WebInspector.context.flavor(WebInspector.ProfilesPanel); | 1302 var panel = WebInspector.context.flavor(WebInspector.ProfilesPanel); |
| 1305 console.assert(panel && panel instanceof WebInspector.ProfilesPanel); | 1303 console.assert(panel && panel instanceof WebInspector.ProfilesPanel); |
| 1306 panel.toggleRecord(); | 1304 panel.toggleRecord(); |
| 1307 return true; | 1305 return true; |
| 1308 } | 1306 } |
| 1309 } | 1307 } |
| OLD | NEW |