blob: b1224a99d35c6a70f10b474dfaf19ca0af38de64 [file] [log] [blame]
Paul Lewis9950e182019-12-16 16:06:071// Copyright 2019 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Tim van der Lippec20afe72020-10-15 16:14:295// @ts-nocheck
6
Paul Lewis9950e182019-12-16 16:06:077import * as UIModule from './ui.js';
8
9self.UI = self.UI || {};
10UI = UI || {};
11
Paul Lewis9950e182019-12-16 16:06:0712/** @constructor */
Songtao Xiae3af1e32020-08-18 22:01:2613UI.DockController = UIModule.DockController.DockController;
14
15UI.DockController.State = UIModule.DockController.State;
16
17/** @enum {symbol} */
18UI.DockController.Events = UIModule.DockController.Events;
19
20/** @constructor */
21UI.DockController.ToggleDockActionDelegate = UIModule.DockController.ToggleDockActionDelegate;
22
23/** @constructor */
24UI.DockController.CloseButtonProvider = UIModule.DockController.CloseButtonProvider;
25
26
27/** @constructor */
Paul Lewis9950e182019-12-16 16:06:0728UI.Context = UIModule.Context.Context;
29
Paul Lewis9950e182019-12-16 16:06:0730/** @interface */
31UI.ContextFlavorListener = UIModule.ContextFlavorListener.ContextFlavorListener;
32
33/** @constructor */
34UI.ContextMenu = UIModule.ContextMenu.ContextMenu;
35
36/**
Paul Lewis9950e182019-12-16 16:06:0737 * @interface
38 */
39UI.ContextMenu.Provider = UIModule.ContextMenu.Provider;
40
41/** @constructor */
42UI.Dialog = UIModule.Dialog.Dialog;
43
Paul Lewis9950e182019-12-16 16:06:0744/** @constructor */
45UI.EmptyWidget = UIModule.EmptyWidget.EmptyWidget;
46
47/** @constructor */
Paul Lewis9950e182019-12-16 16:06:0748UI.Fragment = UIModule.Fragment.Fragment;
49
50UI.html = UIModule.Fragment.html;
51
52UI.Geometry = {};
53
54/**
55 * @constructor
56 */
57UI.Geometry.Vector = UIModule.Geometry.Vector;
58
59/**
60 * @constructor
61 */
Paul Lewis9950e182019-12-16 16:06:0762UI.Geometry.CubicBezier = UIModule.Geometry.CubicBezier;
63
64/**
65 * @constructor
66 */
67UI.Geometry.EulerAngles = UIModule.Geometry.EulerAngles;
68
69/**
70 * @param {!UIModule.Geometry.Vector} u
71 * @param {!UIModule.Geometry.Vector} v
72 * @return {number}
73 */
74UI.Geometry.scalarProduct = UIModule.Geometry.scalarProduct;
75
76/**
77 * @param {!UIModule.Geometry.Vector} u
78 * @param {!UIModule.Geometry.Vector} v
79 * @return {!UIModule.Geometry.Vector}
80 */
81UI.Geometry.crossProduct = UIModule.Geometry.crossProduct;
82
83/**
84 * @param {!UIModule.Geometry.Vector} u
85 * @param {!UIModule.Geometry.Vector} v
Paul Lewis9950e182019-12-16 16:06:0786 * @return {number}
87 */
88UI.Geometry.calculateAngle = UIModule.Geometry.calculateAngle;
89
90/**
91 * @param {number} deg
92 * @return {number}
93 */
94UI.Geometry.degreesToRadians = UIModule.Geometry.degreesToRadians;
95
96/**
97 * @param {number} rad
98 * @return {number}
99 */
100UI.Geometry.radiansToDegrees = UIModule.Geometry.radiansToDegrees;
101
102/** @constructor */
103UI.Size = UIModule.Geometry.Size;
104
105/** @constructor */
Paul Lewis9950e182019-12-16 16:06:07106UI.GlassPane = UIModule.GlassPane.GlassPane;
107
Paul Lewis9950e182019-12-16 16:06:07108// Exported for layout tests.
109UI.GlassPane._panes = UIModule.GlassPane.GlassPanePanes;
110
111/** @constructor */
Paul Lewis9950e182019-12-16 16:06:07112UI.InspectorView = UIModule.InspectorView.InspectorView;
113
114/**
115 * @implements {UI.ActionDelegate}
116 * @unrestricted
117 */
118UI.InspectorView.ActionDelegate = UIModule.InspectorView.ActionDelegate;
119
120/** @constructor */
Paul Lewis9950e182019-12-16 16:06:07121UI.ListControl = UIModule.ListControl.ListControl;
122
Paul Lewis9950e182019-12-16 16:06:07123UI.ListMode = UIModule.ListControl.ListMode;
124
125/** @constructor */
126UI.ListModel = UIModule.ListModel.ListModel;
127
Paul Lewis9950e182019-12-16 16:06:07128/** @constructor */
129UI.Panel = UIModule.Panel.Panel;
130
Paul Lewis9950e182019-12-16 16:06:07131// For testing.
132UI.panels = {};
133
134/** @constructor */
Paul Lewis9950e182019-12-16 16:06:07135UI.SearchableView = UIModule.SearchableView.SearchableView;
136
137/**
138 * @constructor
139 */
140UI.SearchableView.SearchConfig = UIModule.SearchableView.SearchConfig;
141
142/** @interface */
143UI.Searchable = UIModule.SearchableView.Searchable;
144
Paul Lewis9950e182019-12-16 16:06:07145/**
146 * @interface
147 */
148UI.SettingUI = UIModule.SettingsUI.SettingUI;
149
Paul Lewis9950e182019-12-16 16:06:07150/** @constructor */
151UI.ShortcutRegistry = UIModule.ShortcutRegistry.ShortcutRegistry;
152
Sigurd Schneider46da7db2020-05-20 13:45:11153
Paul Lewis9950e182019-12-16 16:06:07154UI.ShortcutRegistry.ForwardedShortcut = UIModule.ShortcutRegistry.ForwardedShortcut;
155
156/** @constructor */
Paul Lewis9950e182019-12-16 16:06:07157UI.SoftContextMenu = UIModule.SoftContextMenu.SoftContextMenu;
158
159/** @constructor */
160UI.SoftDropDown = UIModule.SoftDropDown.SoftDropDown;
161
Paul Lewis9950e182019-12-16 16:06:07162/** @constructor */
163UI.SplitWidget = UIModule.SplitWidget.SplitWidget;
164
Paul Lewis9950e182019-12-16 16:06:07165/** @constructor */
166UI.SuggestBox = UIModule.SuggestBox.SuggestBox;
167
Paul Lewis9950e182019-12-16 16:06:07168/** @constructor */
169UI.SyntaxHighlighter = UIModule.SyntaxHighlighter.SyntaxHighlighter;
170
171/** @constructor */
172UI.TabbedPane = UIModule.TabbedPane.TabbedPane;
173
174/** @enum {symbol} */
175UI.TabbedPane.Events = UIModule.TabbedPane.Events;
176
Paul Lewis9950e182019-12-16 16:06:07177/** @interface */
178UI.TextEditor = UIModule.TextEditor.TextEditor;
179
180/** @interface */
181UI.TextEditorFactory = UIModule.TextEditor.TextEditorFactory;
182
Paul Lewis9950e182019-12-16 16:06:07183/** @constructor */
184UI.TextPrompt = UIModule.TextPrompt.TextPrompt;
185
Paul Lewis9950e182019-12-16 16:06:07186/** @constructor */
187UI.Toolbar = UIModule.Toolbar.Toolbar;
188
189/** @constructor */
190UI.ToolbarItem = UIModule.Toolbar.ToolbarItem;
191
Paul Lewis9950e182019-12-16 16:06:07192/** @interface */
193UI.ToolbarItem.Provider = UIModule.Toolbar.Provider;
194
Paul Lewis9950e182019-12-16 16:06:07195/** @constructor */
196UI.Tooltip = UIModule.Tooltip.Tooltip;
197
198// Exported for layout tests.
199UI.Tooltip._symbol = UIModule.Tooltip.TooltipSymbol;
200
201/** @constructor */
202UI.TreeOutline = UIModule.TreeOutline.TreeOutline;
203
204UI.TreeOutline.Events = UIModule.TreeOutline.Events;
205
206/** @constructor */
207UI.TreeElement = UIModule.TreeOutline.TreeElement;
208
209/** @constructor */
210UI.TreeOutlineInShadow = UIModule.TreeOutline.TreeOutlineInShadow;
211
Paul Lewis9950e182019-12-16 16:06:07212/** @interface */
213UI.Renderer = UIModule.UIUtils.Renderer;
214
Paul Lewis9950e182019-12-16 16:06:07215UI.isBeingEdited = UIModule.UIUtils.isBeingEdited;
216UI.isEditing = UIModule.UIUtils.isEditing;
Paul Lewis9950e182019-12-16 16:06:07217UI.highlightRangesWithStyleClass = UIModule.UIUtils.highlightRangesWithStyleClass;
218UI.applyDomChanges = UIModule.UIUtils.applyDomChanges;
219UI.revertDomChanges = UIModule.UIUtils.revertDomChanges;
Paul Lewis9950e182019-12-16 16:06:07220UI.beautifyFunctionName = UIModule.UIUtils.beautifyFunctionName;
Paul Lewis9950e182019-12-16 16:06:07221
222/** @interface */
223UI.View = UIModule.View.View;
224
225/** @public */
226UI.View.widgetSymbol = UIModule.View.widgetSymbol;
227
228/** @constructor */
229UI.SimpleView = UIModule.View.SimpleView;
230
Paul Lewis9950e182019-12-16 16:06:07231/** @interface */
232UI.ViewLocation = UIModule.View.ViewLocation;
233
234/** @interface */
Paul Lewis9950e182019-12-16 16:06:07235UI.ViewLocationResolver = UIModule.View.ViewLocationResolver;
236
237/** @constructor */
238UI.ViewManager = UIModule.ViewManager.ViewManager;
239
240/** @constructor */
241UI.ViewManager._ContainerWidget = UIModule.ViewManager.ContainerWidget;
242
243/** @constructor */
244UI.Widget = UIModule.Widget.Widget;
245
246/** @constructor */
Paul Lewis9950e182019-12-16 16:06:07247UI.XLink = UIModule.XLink.XLink;
248
249/**
250 * @implements {UI.ContextMenu.Provider}
251 */
252UI.XLink.ContextMenuProvider = UIModule.XLink.ContextMenuProvider;
253
Tim van der Lippe3fffd0d2020-03-27 15:47:51254/** @type {!UIModule.Context.Context} */
Tim van der Lipped1a00aa2020-08-19 16:03:56255self.UI.context = UIModule.Context.Context.instance();
Songtao Xiae3af1e32020-08-18 22:01:26256
257
258/**
259 * @type {!UI.DockController}
260 */
261UI.dockController;