Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 1 | // 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 Lippe | c20afe7 | 2020-10-15 16:14:29 | [diff] [blame] | 5 | // @ts-nocheck |
| 6 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 7 | import * as UIModule from './ui.js'; |
| 8 | |
| 9 | self.UI = self.UI || {}; |
| 10 | UI = UI || {}; |
| 11 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 12 | /** @constructor */ |
Songtao Xia | e3af1e3 | 2020-08-18 22:01:26 | [diff] [blame] | 13 | UI.DockController = UIModule.DockController.DockController; |
| 14 | |
| 15 | UI.DockController.State = UIModule.DockController.State; |
| 16 | |
| 17 | /** @enum {symbol} */ |
| 18 | UI.DockController.Events = UIModule.DockController.Events; |
| 19 | |
| 20 | /** @constructor */ |
| 21 | UI.DockController.ToggleDockActionDelegate = UIModule.DockController.ToggleDockActionDelegate; |
| 22 | |
| 23 | /** @constructor */ |
| 24 | UI.DockController.CloseButtonProvider = UIModule.DockController.CloseButtonProvider; |
| 25 | |
| 26 | |
| 27 | /** @constructor */ |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 28 | UI.Context = UIModule.Context.Context; |
| 29 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 30 | /** @interface */ |
| 31 | UI.ContextFlavorListener = UIModule.ContextFlavorListener.ContextFlavorListener; |
| 32 | |
| 33 | /** @constructor */ |
| 34 | UI.ContextMenu = UIModule.ContextMenu.ContextMenu; |
| 35 | |
| 36 | /** |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 37 | * @interface |
| 38 | */ |
| 39 | UI.ContextMenu.Provider = UIModule.ContextMenu.Provider; |
| 40 | |
| 41 | /** @constructor */ |
| 42 | UI.Dialog = UIModule.Dialog.Dialog; |
| 43 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 44 | /** @constructor */ |
| 45 | UI.EmptyWidget = UIModule.EmptyWidget.EmptyWidget; |
| 46 | |
| 47 | /** @constructor */ |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 48 | UI.Fragment = UIModule.Fragment.Fragment; |
| 49 | |
| 50 | UI.html = UIModule.Fragment.html; |
| 51 | |
| 52 | UI.Geometry = {}; |
| 53 | |
| 54 | /** |
| 55 | * @constructor |
| 56 | */ |
| 57 | UI.Geometry.Vector = UIModule.Geometry.Vector; |
| 58 | |
| 59 | /** |
| 60 | * @constructor |
| 61 | */ |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 62 | UI.Geometry.CubicBezier = UIModule.Geometry.CubicBezier; |
| 63 | |
| 64 | /** |
| 65 | * @constructor |
| 66 | */ |
| 67 | UI.Geometry.EulerAngles = UIModule.Geometry.EulerAngles; |
| 68 | |
| 69 | /** |
| 70 | * @param {!UIModule.Geometry.Vector} u |
| 71 | * @param {!UIModule.Geometry.Vector} v |
| 72 | * @return {number} |
| 73 | */ |
| 74 | UI.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 | */ |
| 81 | UI.Geometry.crossProduct = UIModule.Geometry.crossProduct; |
| 82 | |
| 83 | /** |
| 84 | * @param {!UIModule.Geometry.Vector} u |
| 85 | * @param {!UIModule.Geometry.Vector} v |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 86 | * @return {number} |
| 87 | */ |
| 88 | UI.Geometry.calculateAngle = UIModule.Geometry.calculateAngle; |
| 89 | |
| 90 | /** |
| 91 | * @param {number} deg |
| 92 | * @return {number} |
| 93 | */ |
| 94 | UI.Geometry.degreesToRadians = UIModule.Geometry.degreesToRadians; |
| 95 | |
| 96 | /** |
| 97 | * @param {number} rad |
| 98 | * @return {number} |
| 99 | */ |
| 100 | UI.Geometry.radiansToDegrees = UIModule.Geometry.radiansToDegrees; |
| 101 | |
| 102 | /** @constructor */ |
| 103 | UI.Size = UIModule.Geometry.Size; |
| 104 | |
| 105 | /** @constructor */ |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 106 | UI.GlassPane = UIModule.GlassPane.GlassPane; |
| 107 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 108 | // Exported for layout tests. |
| 109 | UI.GlassPane._panes = UIModule.GlassPane.GlassPanePanes; |
| 110 | |
| 111 | /** @constructor */ |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 112 | UI.InspectorView = UIModule.InspectorView.InspectorView; |
| 113 | |
| 114 | /** |
| 115 | * @implements {UI.ActionDelegate} |
| 116 | * @unrestricted |
| 117 | */ |
| 118 | UI.InspectorView.ActionDelegate = UIModule.InspectorView.ActionDelegate; |
| 119 | |
| 120 | /** @constructor */ |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 121 | UI.ListControl = UIModule.ListControl.ListControl; |
| 122 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 123 | UI.ListMode = UIModule.ListControl.ListMode; |
| 124 | |
| 125 | /** @constructor */ |
| 126 | UI.ListModel = UIModule.ListModel.ListModel; |
| 127 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 128 | /** @constructor */ |
| 129 | UI.Panel = UIModule.Panel.Panel; |
| 130 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 131 | // For testing. |
| 132 | UI.panels = {}; |
| 133 | |
| 134 | /** @constructor */ |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 135 | UI.SearchableView = UIModule.SearchableView.SearchableView; |
| 136 | |
| 137 | /** |
| 138 | * @constructor |
| 139 | */ |
| 140 | UI.SearchableView.SearchConfig = UIModule.SearchableView.SearchConfig; |
| 141 | |
| 142 | /** @interface */ |
| 143 | UI.Searchable = UIModule.SearchableView.Searchable; |
| 144 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 145 | /** |
| 146 | * @interface |
| 147 | */ |
| 148 | UI.SettingUI = UIModule.SettingsUI.SettingUI; |
| 149 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 150 | /** @constructor */ |
| 151 | UI.ShortcutRegistry = UIModule.ShortcutRegistry.ShortcutRegistry; |
| 152 | |
Sigurd Schneider | 46da7db | 2020-05-20 13:45:11 | [diff] [blame] | 153 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 154 | UI.ShortcutRegistry.ForwardedShortcut = UIModule.ShortcutRegistry.ForwardedShortcut; |
| 155 | |
| 156 | /** @constructor */ |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 157 | UI.SoftContextMenu = UIModule.SoftContextMenu.SoftContextMenu; |
| 158 | |
| 159 | /** @constructor */ |
| 160 | UI.SoftDropDown = UIModule.SoftDropDown.SoftDropDown; |
| 161 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 162 | /** @constructor */ |
| 163 | UI.SplitWidget = UIModule.SplitWidget.SplitWidget; |
| 164 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 165 | /** @constructor */ |
| 166 | UI.SuggestBox = UIModule.SuggestBox.SuggestBox; |
| 167 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 168 | /** @constructor */ |
| 169 | UI.SyntaxHighlighter = UIModule.SyntaxHighlighter.SyntaxHighlighter; |
| 170 | |
| 171 | /** @constructor */ |
| 172 | UI.TabbedPane = UIModule.TabbedPane.TabbedPane; |
| 173 | |
| 174 | /** @enum {symbol} */ |
| 175 | UI.TabbedPane.Events = UIModule.TabbedPane.Events; |
| 176 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 177 | /** @interface */ |
| 178 | UI.TextEditor = UIModule.TextEditor.TextEditor; |
| 179 | |
| 180 | /** @interface */ |
| 181 | UI.TextEditorFactory = UIModule.TextEditor.TextEditorFactory; |
| 182 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 183 | /** @constructor */ |
| 184 | UI.TextPrompt = UIModule.TextPrompt.TextPrompt; |
| 185 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 186 | /** @constructor */ |
| 187 | UI.Toolbar = UIModule.Toolbar.Toolbar; |
| 188 | |
| 189 | /** @constructor */ |
| 190 | UI.ToolbarItem = UIModule.Toolbar.ToolbarItem; |
| 191 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 192 | /** @interface */ |
| 193 | UI.ToolbarItem.Provider = UIModule.Toolbar.Provider; |
| 194 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 195 | /** @constructor */ |
| 196 | UI.Tooltip = UIModule.Tooltip.Tooltip; |
| 197 | |
| 198 | // Exported for layout tests. |
| 199 | UI.Tooltip._symbol = UIModule.Tooltip.TooltipSymbol; |
| 200 | |
| 201 | /** @constructor */ |
| 202 | UI.TreeOutline = UIModule.TreeOutline.TreeOutline; |
| 203 | |
| 204 | UI.TreeOutline.Events = UIModule.TreeOutline.Events; |
| 205 | |
| 206 | /** @constructor */ |
| 207 | UI.TreeElement = UIModule.TreeOutline.TreeElement; |
| 208 | |
| 209 | /** @constructor */ |
| 210 | UI.TreeOutlineInShadow = UIModule.TreeOutline.TreeOutlineInShadow; |
| 211 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 212 | /** @interface */ |
| 213 | UI.Renderer = UIModule.UIUtils.Renderer; |
| 214 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 215 | UI.isBeingEdited = UIModule.UIUtils.isBeingEdited; |
| 216 | UI.isEditing = UIModule.UIUtils.isEditing; |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 217 | UI.highlightRangesWithStyleClass = UIModule.UIUtils.highlightRangesWithStyleClass; |
| 218 | UI.applyDomChanges = UIModule.UIUtils.applyDomChanges; |
| 219 | UI.revertDomChanges = UIModule.UIUtils.revertDomChanges; |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 220 | UI.beautifyFunctionName = UIModule.UIUtils.beautifyFunctionName; |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 221 | |
| 222 | /** @interface */ |
| 223 | UI.View = UIModule.View.View; |
| 224 | |
| 225 | /** @public */ |
| 226 | UI.View.widgetSymbol = UIModule.View.widgetSymbol; |
| 227 | |
| 228 | /** @constructor */ |
| 229 | UI.SimpleView = UIModule.View.SimpleView; |
| 230 | |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 231 | /** @interface */ |
| 232 | UI.ViewLocation = UIModule.View.ViewLocation; |
| 233 | |
| 234 | /** @interface */ |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 235 | UI.ViewLocationResolver = UIModule.View.ViewLocationResolver; |
| 236 | |
| 237 | /** @constructor */ |
| 238 | UI.ViewManager = UIModule.ViewManager.ViewManager; |
| 239 | |
| 240 | /** @constructor */ |
| 241 | UI.ViewManager._ContainerWidget = UIModule.ViewManager.ContainerWidget; |
| 242 | |
| 243 | /** @constructor */ |
| 244 | UI.Widget = UIModule.Widget.Widget; |
| 245 | |
| 246 | /** @constructor */ |
Paul Lewis | 9950e18 | 2019-12-16 16:06:07 | [diff] [blame] | 247 | UI.XLink = UIModule.XLink.XLink; |
| 248 | |
| 249 | /** |
| 250 | * @implements {UI.ContextMenu.Provider} |
| 251 | */ |
| 252 | UI.XLink.ContextMenuProvider = UIModule.XLink.ContextMenuProvider; |
| 253 | |
Tim van der Lippe | 3fffd0d | 2020-03-27 15:47:51 | [diff] [blame] | 254 | /** @type {!UIModule.Context.Context} */ |
Tim van der Lippe | d1a00aa | 2020-08-19 16:03:56 | [diff] [blame] | 255 | self.UI.context = UIModule.Context.Context.instance(); |
Songtao Xia | e3af1e3 | 2020-08-18 22:01:26 | [diff] [blame] | 256 | |
| 257 | |
| 258 | /** |
| 259 | * @type {!UI.DockController} |
| 260 | */ |
| 261 | UI.dockController; |