commit | 0830b3daa42246aa0c597edf1f932449c9bbbec6 | [log] [tgz] |
---|---|---|
author | Tim van der Lippe <[email protected]> | Thu Oct 03 13:20:07 2019 |
committer | Commit Bot <[email protected]> | Thu Oct 03 13:20:07 2019 |
tree | ca5a24701d69679dbce6340a66ad3cf09246bc5b | |
parent | 383fb51daad72bea86e8aa6553c43f1c0c57eca0 [diff] [blame] |
Convert ui/ to ESM - ViewManager has been extracted from View - Action has been extracted from ActionRegistry - ContextFlavorListener has been extracted from Context Bug: 1006759 Change-Id: Iff41f3a7db4dcbd6da90fd5752923e32af03bac8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1827294 Commit-Queue: Tim Van der Lippe <[email protected]> Reviewed-by: Yang Guo <[email protected]> Cr-Original-Commit-Position: refs/heads/master@{#702390} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 0ffd51ccac853da7c8ec3d91ae868bc61626b29b
diff --git a/front_end/ui/ActionDelegate.js b/front_end/ui/ActionDelegate.js new file mode 100644 index 0000000..ec8341c --- /dev/null +++ b/front_end/ui/ActionDelegate.js
@@ -0,0 +1,25 @@ +// Copyright 2019 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +/** + * @interface + */ +export default class ActionDelegate { + /** + * @param {!UI.Context} context + * @param {string} actionId + * @return {boolean} + */ + handleAction(context, actionId) { + } +} + +/* Legacy exported object*/ +self.UI = self.UI || {}; + +/* Legacy exported object*/ +UI = UI || {}; + +/** @interface */ +UI.ActionDelegate = ActionDelegate; \ No newline at end of file