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

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

Issue 2515763003: DevTools: use shorthand syntax in interface definitions. (Closed)
Patch Set: Created 4 years, 1 month 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 /** 253 /**
254 * @interface 254 * @interface
255 */ 255 */
256 Profiler.ProfileType.DataDisplayDelegate = function() {}; 256 Profiler.ProfileType.DataDisplayDelegate = function() {};
257 257
258 Profiler.ProfileType.DataDisplayDelegate.prototype = { 258 Profiler.ProfileType.DataDisplayDelegate.prototype = {
259 /** 259 /**
260 * @param {?Profiler.ProfileHeader} profile 260 * @param {?Profiler.ProfileHeader} profile
261 * @return {?UI.Widget} 261 * @return {?UI.Widget}
262 */ 262 */
263 showProfile: function(profile) {}, 263 showProfile(profile) {},
264 264
265 /** 265 /**
266 * @param {!Protocol.HeapProfiler.HeapSnapshotObjectId} snapshotObjectId 266 * @param {!Protocol.HeapProfiler.HeapSnapshotObjectId} snapshotObjectId
267 * @param {string} perspectiveName 267 * @param {string} perspectiveName
268 */ 268 */
269 showObject: function(snapshotObjectId, perspectiveName) {} 269 showObject(snapshotObjectId, perspectiveName) {}
270 }; 270 };
271 271
272 /** 272 /**
273 * @unrestricted 273 * @unrestricted
274 */ 274 */
275 Profiler.ProfileHeader = class extends Common.Object { 275 Profiler.ProfileHeader = class extends Common.Object {
276 /** 276 /**
277 * @param {?SDK.Target} target 277 * @param {?SDK.Target} target
278 * @param {!Profiler.ProfileType} profileType 278 * @param {!Profiler.ProfileType} profileType
279 * @param {string} title 279 * @param {string} title
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 * @param {string} actionId 1253 * @param {string} actionId
1254 * @return {boolean} 1254 * @return {boolean}
1255 */ 1255 */
1256 handleAction(context, actionId) { 1256 handleAction(context, actionId) {
1257 var panel = UI.context.flavor(Profiler.ProfilesPanel); 1257 var panel = UI.context.flavor(Profiler.ProfilesPanel);
1258 console.assert(panel && panel instanceof Profiler.ProfilesPanel); 1258 console.assert(panel && panel instanceof Profiler.ProfilesPanel);
1259 panel.toggleRecord(); 1259 panel.toggleRecord();
1260 return true; 1260 return true;
1261 } 1261 }
1262 }; 1262 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698