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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/ActionRegistry.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 /** 4 /**
5 * @unrestricted 5 * @unrestricted
6 */ 6 */
7 UI.ActionRegistry = class { 7 UI.ActionRegistry = class {
8 constructor() { 8 constructor() {
9 /** @type {!Map.<string, !UI.Action>} */ 9 /** @type {!Map.<string, !UI.Action>} */
10 this._actionsById = new Map(); 10 this._actionsById = new Map();
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 * @interface 202 * @interface
203 */ 203 */
204 UI.ActionDelegate = function() {}; 204 UI.ActionDelegate = function() {};
205 205
206 UI.ActionDelegate.prototype = { 206 UI.ActionDelegate.prototype = {
207 /** 207 /**
208 * @param {!UI.Context} context 208 * @param {!UI.Context} context
209 * @param {string} actionId 209 * @param {string} actionId
210 * @return {boolean} 210 * @return {boolean}
211 */ 211 */
212 handleAction: function(context, actionId) {} 212 handleAction(context, actionId) {}
213 }; 213 };
214 214
215 /** @type {!UI.ActionRegistry} */ 215 /** @type {!UI.ActionRegistry} */
216 UI.actionRegistry; 216 UI.actionRegistry;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698