Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/profiler/ProfilesPanel.js

Issue 1763193002: [DevTools] Fix more frontend compiler errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@caseq-patch
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698