| OLD | NEW |
| 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 Loading... |
| 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; |
| OLD | NEW |