| # Copyright 2020 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. |
| |
| import("../../../scripts/build/ninja/devtools_entrypoint.gni") |
| import("../../../scripts/build/ninja/devtools_module.gni") |
| import("./visibility.gni") |
| |
| devtools_module("ui") { |
| sources = [ |
| "ARIAUtils.ts", |
| "ActionRegistration.ts", |
| "ActionRegistry.ts", |
| "Context.ts", |
| "ContextFlavorListener.ts", |
| "ContextMenu.ts", |
| "Dialog.ts", |
| "DockController.ts", |
| "DropTarget.ts", |
| "EmptyWidget.ts", |
| "FilterBar.ts", |
| "FilterSuggestionBuilder.ts", |
| "ForwardedInputEventHandler.ts", |
| "Fragment.ts", |
| "Geometry.ts", |
| "GlassPane.ts", |
| "HistoryInput.ts", |
| "Icon.ts", |
| "Infobar.ts", |
| "InplaceEditor.ts", |
| "InspectorView.ts", |
| "KeyboardShortcut.ts", |
| "ListControl.ts", |
| "ListModel.ts", |
| "ListWidget.ts", |
| "Panel.ts", |
| "PopoverHelper.ts", |
| "ProgressIndicator.ts", |
| "RemoteDebuggingTerminatedScreen.ts", |
| "ReportView.ts", |
| "ResizerWidget.ts", |
| "RootView.ts", |
| "SearchableView.ts", |
| "SettingsUI.ts", |
| "ShortcutRegistry.ts", |
| "SoftContextMenu.ts", |
| "SoftDropDown.ts", |
| "SplitWidget.ts", |
| "SuggestBox.ts", |
| "TabbedPane.ts", |
| "TargetCrashedScreen.ts", |
| "TextEditor.ts", |
| "TextPrompt.ts", |
| "ThrottledWidget.ts", |
| "Toolbar.ts", |
| "Tooltip.ts", |
| "Treeoutline.ts", |
| "UIUtils.ts", |
| "View.ts", |
| "ViewManager.ts", |
| "ViewRegistration.ts", |
| "Widget.ts", |
| "XElement.ts", |
| "XLink.ts", |
| "XWidget.ts", |
| "ZoomManager.ts", |
| ] |
| |
| deps = [ |
| "../../core/common:bundle", |
| "../../core/dom_extension:bundle", |
| "../../core/host:bundle", |
| "../../core/i18n:bundle", |
| "../../core/platform:bundle", |
| "../../core/root:bundle", |
| "../../core/sdk:bundle", |
| "../../models/text_utils:bundle", |
| "../../ui/legacy/theme_support:bundle", |
| "../components/helpers:bundle", |
| "utils:bundle", |
| ] |
| } |
| |
| copy_to_gen("legacy_css") { |
| sources = [ |
| "checkboxTextLabel.css", |
| "closeButton.css", |
| "confirmDialog.css", |
| "dialog.css", |
| "dropTarget.css", |
| "emptyWidget.css", |
| "filter.css", |
| "glassPane.css", |
| "infobar.css", |
| "inlineButton.css", |
| "inspectorCommon.css", |
| "inspectorScrollbars.css", |
| "inspectorSyntaxHighlight.css", |
| "inspectorSyntaxHighlightDark.css", |
| "inspectorViewTabbedPane.css", |
| "listWidget.css", |
| "popover.css", |
| "progressIndicator.css", |
| "radioButton.css", |
| "remoteDebuggingTerminatedScreen.css", |
| "reportView.css", |
| "rootView.css", |
| "searchableView.css", |
| "slider.css", |
| "smallBubble.css", |
| "softContextMenu.css", |
| "softDropDown.css", |
| "softDropDownButton.css", |
| "splitWidget.css", |
| "suggestBox.css", |
| "tabbedPane.css", |
| "targetCrashedScreen.css", |
| "textButton.css", |
| "textPrompt.css", |
| "themeColors.css", |
| "toolbar.css", |
| "tooltip.css", |
| "treeoutline.css", |
| "viewContainers.css", |
| ] |
| } |
| |
| devtools_entrypoint("bundle") { |
| entrypoint = "legacy.ts" |
| |
| deps = [ ":ui" ] |
| |
| visibility = [ |
| "../../../test/unittests/front_end/*", |
| "../../entrypoints/*", |
| "../../legacy_test_runner/*", |
| "../../panels/*", |
| "./*", |
| |
| # TODO(crbug.com/1202788): Remove invalid dependents |
| "../../models/extensions:*", |
| "../../models/persistence:*", |
| "../../models/recorder:*", |
| "../components/data_grid:*", |
| "../components/linear_memory_inspector:*", |
| "../components/markdown_view:*", |
| ] |
| |
| visibility += devtools_ui_legacy_visibility |
| } |
| |
| devtools_entrypoint("legacy") { |
| entrypoint = "legacy-legacy.ts" |
| |
| deps = [ ":bundle" ] |
| |
| visibility = [ |
| "../..:legacy_entrypoints", |
| "../../entrypoints/shell/*", |
| ] |
| } |