Tim van der Lippe | aabc830 | 2019-12-10 15:34:45 | [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 | |
| 5 | import * as ElementsModule from './elements.js'; |
| 6 | |
| 7 | self.Elements = self.Elements || {}; |
| 8 | Elements = Elements || {}; |
| 9 | |
| 10 | /** @constructor */ |
| 11 | Elements.ClassesPaneWidget = ElementsModule.ClassesPaneWidget.ClassesPaneWidget; |
| 12 | |
| 13 | /** @constructor */ |
| 14 | Elements.ClassesPaneWidget.ButtonProvider = ElementsModule.ClassesPaneWidget.ButtonProvider; |
| 15 | |
| 16 | /** @constructor */ |
| 17 | Elements.ClassesPaneWidget.ClassNamePrompt = ElementsModule.ClassesPaneWidget.ClassNamePrompt; |
| 18 | |
| 19 | /** @constructor */ |
| 20 | Elements.ColorSwatchPopoverIcon = ElementsModule.ColorSwatchPopoverIcon.ColorSwatchPopoverIcon; |
| 21 | |
| 22 | /** @constructor */ |
| 23 | Elements.BezierPopoverIcon = ElementsModule.ColorSwatchPopoverIcon.BezierPopoverIcon; |
| 24 | |
| 25 | /** @constructor */ |
| 26 | Elements.ShadowSwatchPopoverHelper = ElementsModule.ColorSwatchPopoverIcon.ShadowSwatchPopoverHelper; |
| 27 | |
| 28 | /** @constructor */ |
| 29 | Elements.ComputedStyleModel = ElementsModule.ComputedStyleModel.ComputedStyleModel; |
| 30 | |
| 31 | /** @enum {symbol} */ |
| 32 | Elements.ComputedStyleModel.Events = ElementsModule.ComputedStyleModel.Events; |
| 33 | |
| 34 | /** @constructor */ |
| 35 | Elements.ComputedStyleModel.ComputedStyle = ElementsModule.ComputedStyleModel.ComputedStyle; |
| 36 | |
| 37 | /** @constructor */ |
| 38 | Elements.ComputedStyleWidget = ElementsModule.ComputedStyleWidget.ComputedStyleWidget; |
| 39 | |
| 40 | Elements.DOMLinkifier = {}; |
| 41 | |
| 42 | Elements.DOMLinkifier.decorateNodeLabel = ElementsModule.DOMLinkifier.decorateNodeLabel; |
| 43 | Elements.DOMLinkifier.linkifyNodeReference = ElementsModule.DOMLinkifier.linkifyNodeReference; |
| 44 | Elements.DOMLinkifier.linkifyDeferredNodeReference = ElementsModule.DOMLinkifier.linkifyDeferredNodeReference; |
| 45 | |
| 46 | /** @constructor */ |
| 47 | Elements.DOMLinkifier.Linkifier = ElementsModule.DOMLinkifier.Linkifier; |
| 48 | |
| 49 | Elements.DOMPath = {}; |
| 50 | |
| 51 | Elements.DOMPath.fullQualifiedSelector = ElementsModule.DOMPath.fullQualifiedSelector; |
| 52 | Elements.DOMPath.cssPath = ElementsModule.DOMPath.cssPath; |
| 53 | Elements.DOMPath.canGetJSPath = ElementsModule.DOMPath.canGetJSPath; |
| 54 | Elements.DOMPath.jsPath = ElementsModule.DOMPath.jsPath; |
| 55 | Elements.DOMPath.xPath = ElementsModule.DOMPath.xPath; |
| 56 | |
| 57 | /** @constructor */ |
| 58 | Elements.DOMPath.Step = ElementsModule.DOMPath.Step; |
| 59 | |
| 60 | /** @constructor */ |
| 61 | Elements.ElementStatePaneWidget = ElementsModule.ElementStatePaneWidget.ElementStatePaneWidget; |
| 62 | |
| 63 | /** @constructor */ |
| 64 | Elements.ElementStatePaneWidget.ButtonProvider = ElementsModule.ElementStatePaneWidget.ButtonProvider; |
| 65 | |
| 66 | /** @constructor */ |
| 67 | Elements.ElementsBreadcrumbs = ElementsModule.ElementsBreadcrumbs.ElementsBreadcrumbs; |
| 68 | |
| 69 | /** @enum {symbol} */ |
| 70 | Elements.ElementsBreadcrumbs.Events = ElementsModule.ElementsBreadcrumbs.Events; |
| 71 | |
| 72 | /** @constructor */ |
| 73 | Elements.ElementsPanel = ElementsModule.ElementsPanel.ElementsPanel; |
| 74 | |
| 75 | // Sniffed in tests. |
| 76 | Elements.ElementsPanel._firstInspectElementCompletedForTest = function() {}; |
| 77 | |
| 78 | /** @constructor */ |
| 79 | Elements.ElementsPanel.ContextMenuProvider = ElementsModule.ElementsPanel.ContextMenuProvider; |
| 80 | |
| 81 | /** @constructor */ |
| 82 | Elements.ElementsPanel.DOMNodeRevealer = ElementsModule.ElementsPanel.DOMNodeRevealer; |
| 83 | |
| 84 | /** @constructor */ |
| 85 | Elements.ElementsPanel.CSSPropertyRevealer = ElementsModule.ElementsPanel.CSSPropertyRevealer; |
| 86 | |
| 87 | /** @constructor */ |
| 88 | Elements.ElementsActionDelegate = ElementsModule.ElementsPanel.ElementsActionDelegate; |
| 89 | |
| 90 | /** @constructor */ |
| 91 | Elements.ElementsPanel.PseudoStateMarkerDecorator = ElementsModule.ElementsPanel.PseudoStateMarkerDecorator; |
| 92 | |
| 93 | /** @constructor */ |
| 94 | Elements.ElementsSidebarPane = ElementsModule.ElementsSidebarPane.ElementsSidebarPane; |
| 95 | |
| 96 | /** @constructor */ |
| 97 | Elements.ElementsTreeElement = ElementsModule.ElementsTreeElement.ElementsTreeElement; |
| 98 | |
| 99 | Elements.ElementsTreeElement.HrefSymbol = ElementsModule.ElementsTreeElement.HrefSymbol; |
| 100 | Elements.ElementsTreeElement.InitialChildrenLimit = ElementsModule.ElementsTreeElement.InitialChildrenLimit; |
| 101 | Elements.ElementsTreeElement.ForbiddenClosingTagElements = |
| 102 | ElementsModule.ElementsTreeElement.ForbiddenClosingTagElements; |
| 103 | Elements.ElementsTreeElement.EditTagBlacklist = ElementsModule.ElementsTreeElement.EditTagBlacklist; |
| 104 | |
| 105 | /** @constructor */ |
| 106 | Elements.ElementsTreeElementHighlighter = ElementsModule.ElementsTreeElementHighlighter.ElementsTreeElementHighlighter; |
| 107 | |
| 108 | /** @constructor */ |
| 109 | Elements.ElementsTreeOutline = ElementsModule.ElementsTreeOutline.ElementsTreeOutline; |
| 110 | |
| 111 | Elements.ElementsTreeOutline.MappedCharToEntity = ElementsModule.ElementsTreeOutline.MappedCharToEntity; |
| 112 | |
| 113 | /** @constructor */ |
| 114 | Elements.ElementsTreeOutline.UpdateRecord = ElementsModule.ElementsTreeOutline.UpdateRecord; |
| 115 | |
| 116 | /** @constructor */ |
| 117 | Elements.ElementsTreeOutline.Renderer = ElementsModule.ElementsTreeOutline.Renderer; |
| 118 | |
| 119 | /** @constructor */ |
| 120 | Elements.ElementsTreeOutline.ShortcutTreeElement = ElementsModule.ElementsTreeOutline.ShortcutTreeElement; |
| 121 | |
| 122 | /** @constructor */ |
| 123 | Elements.EventListenersWidget = ElementsModule.EventListenersWidget.EventListenersWidget; |
| 124 | |
| 125 | Elements.EventListenersWidget.DispatchFilterBy = ElementsModule.EventListenersWidget.DispatchFilterBy; |
| 126 | |
| 127 | /** @constructor */ |
| 128 | Elements.InspectElementModeController = ElementsModule.InspectElementModeController.InspectElementModeController; |
| 129 | |
| 130 | /** @constructor */ |
| 131 | Elements.InspectElementModeController.ToggleSearchActionDelegate = |
| 132 | ElementsModule.InspectElementModeController.ToggleSearchActionDelegate; |
| 133 | |
| 134 | Elements.inspectElementModeController = ElementsModule.InspectElementModeController.inspectElementModeController; |
| 135 | |
| 136 | /** @interface */ |
| 137 | Elements.MarkerDecorator = ElementsModule.MarkerDecorator.MarkerDecorator; |
| 138 | |
| 139 | Elements.GenericDecorator = ElementsModule.MarkerDecorator.GenericDecorator; |
| 140 | |
| 141 | /** @constructor */ |
| 142 | Elements.MetricsSidebarPane = ElementsModule.MetricsSidebarPane.MetricsSidebarPane; |
| 143 | |
| 144 | /** @constructor */ |
| 145 | Elements.NodeStackTraceWidget = ElementsModule.NodeStackTraceWidget.NodeStackTraceWidget; |
| 146 | |
| 147 | Elements.NodeStackTraceWidget.MaxLengthForLinks = ElementsModule.NodeStackTraceWidget.MaxLengthForLinks; |
| 148 | |
| 149 | /** @constructor */ |
| 150 | Elements.PlatformFontsWidget = ElementsModule.PlatformFontsWidget.PlatformFontsWidget; |
| 151 | |
| 152 | /** @constructor */ |
| 153 | Elements.PropertiesWidget = ElementsModule.PropertiesWidget.PropertiesWidget; |
| 154 | |
| 155 | /** @constructor */ |
| 156 | Elements.StylePropertyHighlighter = ElementsModule.StylePropertyHighlighter.StylePropertyHighlighter; |
| 157 | |
| 158 | /** @constructor */ |
| 159 | Elements.StylePropertyTreeElement = ElementsModule.StylePropertyTreeElement.StylePropertyTreeElement; |
| 160 | |
| 161 | Elements.StylePropertyTreeElement.ActiveSymbol = ElementsModule.StylePropertyTreeElement.ActiveSymbol; |
| 162 | |
| 163 | /** @constructor */ |
| 164 | Elements.StylesSidebarPane = ElementsModule.StylesSidebarPane.StylesSidebarPane; |
| 165 | |
| 166 | /** @constructor */ |
| 167 | Elements.StylesSidebarPane.CSSPropertyPrompt = ElementsModule.StylesSidebarPane.CSSPropertyPrompt; |
| 168 | |
| 169 | /** @constructor */ |
| 170 | Elements.StylesSidebarPane.ButtonProvider = ElementsModule.StylesSidebarPane.ButtonProvider; |
| 171 | |
| 172 | /** @constructor */ |
| 173 | Elements.SectionBlock = ElementsModule.StylesSidebarPane.SectionBlock; |
| 174 | |
| 175 | /** @constructor */ |
| 176 | Elements.StylePropertiesSection = ElementsModule.StylesSidebarPane.StylePropertiesSection; |
| 177 | |
| 178 | /** @constructor */ |
| 179 | Elements.BlankStylePropertiesSection = ElementsModule.StylesSidebarPane.BlankStylePropertiesSection; |
| 180 | |
| 181 | /** @constructor */ |
| 182 | Elements.KeyframePropertiesSection = ElementsModule.StylesSidebarPane.KeyframePropertiesSection; |
| 183 | |
| 184 | /** @constructor */ |
| 185 | Elements.StylesSidebarPropertyRenderer = ElementsModule.StylesSidebarPane.StylesSidebarPropertyRenderer; |
| 186 | |
| 187 | /** @typedef {{cancel: function(), commit: function(), resize: function(), editor:!UI.TextEditor}} */ |
| 188 | Elements.MultilineEditorController; |
| 189 | |
| 190 | /** @typedef {{node: !SDK.DOMNode, isCut: boolean}} */ |
| 191 | Elements.ElementsTreeOutline.ClipboardData; |
| 192 | |
| 193 | /** @typedef {{ |
| 194 | * expanded: boolean, |
| 195 | * hasChildren: boolean, |
| 196 | * isEditingName: boolean, |
| 197 | * originalProperty: (!SDK.CSSProperty|undefined), |
| 198 | * originalName: (string|undefined), |
| 199 | * originalValue: (string|undefined), |
| 200 | * previousContent: string |
| 201 | * }} |
| 202 | */ |
| 203 | Elements.StylePropertyTreeElement.Context; |