chrome-devtools-frontend 1.0.942095 → 1.0.942529

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/config/gni/all_devtools_files.gni +0 -44
  2. package/config/gni/devtools_grd_files.gni +42 -2
  3. package/config/gni/devtools_image_files.gni +1 -1
  4. package/front_end/.eslintrc.js +11 -1
  5. package/front_end/Images/src/{feedback_thin_16x16_icon.svg → survey_feedback_icon.svg} +1 -1
  6. package/front_end/core/sdk/DebuggerModel.ts +4 -14
  7. package/front_end/emulated_devices/module.json +1 -3
  8. package/front_end/entrypoints/devtools_app/devtools_app.json +0 -2
  9. package/front_end/entrypoints/shell/shell.json +0 -1
  10. package/front_end/legacy_test_runner/bindings_test_runner/IsolatedFilesystemTestRunner.js +2 -2
  11. package/front_end/legacy_test_runner/test_runner/TestRunner.js +3 -1
  12. package/front_end/panels/application/components/EndpointsGrid.ts +1 -1
  13. package/front_end/panels/application/components/ReportsGrid.ts +1 -1
  14. package/front_end/panels/elements/components/StylePropertyEditor.ts +2 -0
  15. package/front_end/panels/emulation/DeviceModeToolbar.ts +3 -1
  16. package/front_end/panels/emulation/DeviceModeView.ts +2 -1
  17. package/front_end/panels/emulation/InspectedPagePlaceholder.ts +3 -1
  18. package/front_end/panels/emulation/MediaQueryInspector.ts +3 -1
  19. package/front_end/panels/emulation/emulation-meta.ts +0 -2
  20. package/front_end/panels/lighthouse/LighthousePanel.ts +2 -4
  21. package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -4
  22. package/front_end/panels/lighthouse/module.json +1 -4
  23. package/front_end/panels/profiler/module.json +1 -3
  24. package/front_end/panels/screencast/module.json +1 -4
  25. package/front_end/panels/timeline/module.json +0 -1
  26. package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1128 -1158
  27. package/front_end/third_party/lighthouse/locales/ar-XB.json +211 -79
  28. package/front_end/third_party/lighthouse/locales/ar.json +213 -81
  29. package/front_end/third_party/lighthouse/locales/bg.json +211 -79
  30. package/front_end/third_party/lighthouse/locales/ca.json +212 -80
  31. package/front_end/third_party/lighthouse/locales/cs.json +211 -79
  32. package/front_end/third_party/lighthouse/locales/da.json +211 -79
  33. package/front_end/third_party/lighthouse/locales/de.json +211 -79
  34. package/front_end/third_party/lighthouse/locales/el.json +213 -81
  35. package/front_end/third_party/lighthouse/locales/en-GB.json +211 -79
  36. package/front_end/third_party/lighthouse/locales/en-US.json +186 -75
  37. package/front_end/third_party/lighthouse/locales/en-XA.json +211 -79
  38. package/front_end/third_party/lighthouse/locales/en-XL.json +186 -75
  39. package/front_end/third_party/lighthouse/locales/es-419.json +211 -79
  40. package/front_end/third_party/lighthouse/locales/es.json +212 -80
  41. package/front_end/third_party/lighthouse/locales/fi.json +211 -79
  42. package/front_end/third_party/lighthouse/locales/fil.json +211 -79
  43. package/front_end/third_party/lighthouse/locales/fr.json +211 -79
  44. package/front_end/third_party/lighthouse/locales/he.json +212 -80
  45. package/front_end/third_party/lighthouse/locales/hi.json +214 -82
  46. package/front_end/third_party/lighthouse/locales/hr.json +211 -79
  47. package/front_end/third_party/lighthouse/locales/hu.json +211 -79
  48. package/front_end/third_party/lighthouse/locales/id.json +211 -79
  49. package/front_end/third_party/lighthouse/locales/it.json +211 -79
  50. package/front_end/third_party/lighthouse/locales/ja.json +211 -79
  51. package/front_end/third_party/lighthouse/locales/ko.json +211 -79
  52. package/front_end/third_party/lighthouse/locales/lt.json +211 -79
  53. package/front_end/third_party/lighthouse/locales/lv.json +214 -82
  54. package/front_end/third_party/lighthouse/locales/nl.json +211 -79
  55. package/front_end/third_party/lighthouse/locales/no.json +211 -79
  56. package/front_end/third_party/lighthouse/locales/pl.json +211 -79
  57. package/front_end/third_party/lighthouse/locales/pt-PT.json +211 -79
  58. package/front_end/third_party/lighthouse/locales/pt.json +211 -79
  59. package/front_end/third_party/lighthouse/locales/ro.json +212 -80
  60. package/front_end/third_party/lighthouse/locales/ru.json +211 -79
  61. package/front_end/third_party/lighthouse/locales/sk.json +211 -79
  62. package/front_end/third_party/lighthouse/locales/sl.json +211 -79
  63. package/front_end/third_party/lighthouse/locales/sr-Latn.json +211 -79
  64. package/front_end/third_party/lighthouse/locales/sr.json +211 -79
  65. package/front_end/third_party/lighthouse/locales/sv.json +211 -79
  66. package/front_end/third_party/lighthouse/locales/ta.json +218 -86
  67. package/front_end/third_party/lighthouse/locales/te.json +251 -119
  68. package/front_end/third_party/lighthouse/locales/th.json +211 -79
  69. package/front_end/third_party/lighthouse/locales/tr.json +211 -79
  70. package/front_end/third_party/lighthouse/locales/uk.json +212 -80
  71. package/front_end/third_party/lighthouse/locales/vi.json +211 -79
  72. package/front_end/third_party/lighthouse/locales/zh-HK.json +211 -79
  73. package/front_end/third_party/lighthouse/locales/zh-TW.json +211 -79
  74. package/front_end/third_party/lighthouse/locales/zh.json +211 -79
  75. package/front_end/third_party/lighthouse/report/bundle.d.ts +72 -34
  76. package/front_end/third_party/lighthouse/report/bundle.js +698 -492
  77. package/front_end/third_party/lighthouse/report-assets/report-generator.js +1 -2
  78. package/front_end/third_party/lighthouse/report-assets/report.js +40 -35
  79. package/front_end/third_party/lighthouse/report-assets/standalone-template.html +2 -4
  80. package/front_end/ui/components/docs/icon_button/basic.ts +3 -3
  81. package/front_end/ui/components/helpers/get-stylesheet.ts +0 -14
  82. package/front_end/ui/components/markdown_view/MarkdownImagesMap.ts +1 -1
  83. package/front_end/ui/components/survey_link/SurveyLink.ts +1 -1
  84. package/front_end/ui/legacy/Dialog.ts +3 -1
  85. package/front_end/ui/legacy/DropTarget.ts +2 -1
  86. package/front_end/ui/legacy/EmptyWidget.ts +2 -1
  87. package/front_end/ui/legacy/FilterBar.ts +2 -1
  88. package/front_end/ui/legacy/GlassPane.ts +4 -2
  89. package/front_end/ui/legacy/Infobar.ts +3 -2
  90. package/front_end/ui/legacy/InspectorView.ts +6 -1
  91. package/front_end/ui/legacy/ListWidget.ts +2 -1
  92. package/front_end/ui/legacy/PopoverHelper.ts +2 -1
  93. package/front_end/ui/legacy/ProgressIndicator.ts +2 -1
  94. package/front_end/ui/legacy/RemoteDebuggingTerminatedScreen.ts +2 -1
  95. package/front_end/ui/legacy/ReportView.ts +2 -1
  96. package/front_end/ui/legacy/RootView.ts +2 -1
  97. package/front_end/ui/legacy/SearchableView.ts +2 -1
  98. package/front_end/ui/legacy/SoftContextMenu.ts +2 -1
  99. package/front_end/ui/legacy/SoftDropDown.ts +4 -2
  100. package/front_end/ui/legacy/SplitWidget.ts +2 -1
  101. package/front_end/ui/legacy/SuggestBox.ts +2 -1
  102. package/front_end/ui/legacy/TabbedPane.ts +2 -1
  103. package/front_end/ui/legacy/TargetCrashedScreen.ts +2 -1
  104. package/front_end/ui/legacy/TextPrompt.ts +2 -1
  105. package/front_end/ui/legacy/Toolbar.ts +3 -2
  106. package/front_end/ui/legacy/Treeoutline.ts +3 -2
  107. package/front_end/ui/legacy/UIUtils.ts +16 -13
  108. package/front_end/ui/legacy/ViewManager.ts +2 -1
  109. package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +2 -2
  110. package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -0
  111. package/front_end/ui/legacy/components/source_frame/ImageView.ts +1 -0
  112. package/front_end/ui/legacy/components/source_frame/JSONView.ts +1 -0
  113. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -0
  114. package/front_end/ui/legacy/components/source_frame/XMLView.ts +2 -0
  115. package/front_end/ui/legacy/components/source_frame/module.json +0 -3
  116. package/front_end/ui/legacy/components/text_editor/CodeMirrorTextEditor.ts +2 -0
  117. package/front_end/ui/legacy/components/text_editor/module.json +0 -3
  118. package/front_end/ui/legacy/components/utils/Linkifier.ts +7 -15
  119. package/front_end/ui/legacy/theme_support/theme_support_impl.ts +7 -9
  120. package/front_end/ui/legacy/utils/create-shadow-root-with-core-styles.ts +2 -2
  121. package/front_end/ui/legacy/utils/inject-core-styles.ts +7 -4
  122. package/package.json +1 -1
  123. package/front_end/panels/emulation/module.json +0 -11
  124. package/front_end/third_party/lighthouse/report-assets/report.css +0 -1774
  125. package/front_end/ui/legacy/module.json +0 -41
@@ -21,13 +21,11 @@ limitations under the License.
21
21
  <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
22
22
  <link rel="icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAEhklEQVR4AWJxL/BhIAesev1U5tcflpncgNrKIsqNIwzC9feMpDUzs70kOczMzMzJJcxwCTMzncPMnOwtzBwzMzPb0vRfeZPp0VhPS5I39V5fdiXV1/VD+9QC7OVn9BsyH1XIoEI1PfmJvLFowVV564+34DFUHudbmfDh4kVXh//7XwE+WjS/YfXZe3yr4j2rqj1AIhSB7hZ8ZtPZu/zw8cK523U4wE1/rvPfWrz4zs0m9ZdC9yUJAlASdBAgocRegfF/f3/h/PuaFsxMdwjAR0vm1+06eMMfIrhLqTWqdH4EumU2SPfMhigJAlRQbZrgrRsl9U+Y2DYDFCz3ILC9kiAiqSrMwbWT0nceEnR+9Kggc2zjOJCASDENkg0a5HfZZgDP81CM3CrQs2Z1+o7DJ6ePr8sK0AOCHv5Jjdt3evyYSaZ351VIStIxPRAUtrBYbxC6w+BZ0ivVSBKkIhJhemSyZpfB00EiPO2VjzYkxhcqXQqCWCShGplvi3y0QxqbuBurMjyJeWnkHZuAEgIQGsUBqwrfjZ+IlBgKyRJzVVYF8O6qFWdh86YzQzMrZigYmxAyfvHgLZQ/LC1CbeniW2Hkqr/PH16SgvGuf2/uzNMBwJA/njxizGPtSyAf7EziJCMGRDRdhoAC4PL1A/SrKQMAAQkEfpJAcRQdrBJ7gNwjSpJsdwK+CANBkqa1LgQB4IicV9nYUct7gaxuDJUErQIiEAiMxLVOFlKzIktPpT0ggpdpC/8YAHnxbgkUY4tAAFSR7AAXNyAAWHJrA/kHGjzg5nleuwFO7Nd/IoDw4Pm58+4jNLmYG0wRA5bErc2Mr3Y+dXTDW1VvwqbJkzMCHQ4S1GTCBOIgUHJrGdEwqzR+jAp/o2qAZelUDoQnruEEdDclJI6576AlNVfc+22XN/+Y1vnJD0Yind6UpEEvn/Hqq15EYjCW7jZCJEpnNvDgkyelDjs106kuux2AAXCSobULOWP8mLhYlpoDMK4qAFXJGk+grtH8YXVz5KJblqaG1+VUdTc0I290bmUQAriGITRbdQnom0aoFj8kx1+wMD2ifncAXUQE4SkDqN1hE0jEophs1SUwZAOhUAiMCLwRtamtTZtbbmZErSAUHbSysaoEmnrsakiMiUAURi283gN6wans9oX8rOCrj7/JP35DFD+iQ7Au/K2KE1jzx6ujjUnXFH9KjEq6ZlhsTBICrNLJf47Pv/pkHzvup1w4dmUbEei0+bcXRqJuh5kVARQ8byyYxOwNGr7A87xh1tp8sGT+uMInrwi++Xj7TQz2d27NvwEkrOflAFQGIDA5khASBCGdO2/Z/MnLPwYfv5TFhjW7QhVKAB6afwe2LpFlFsCnlQEosgQgDsdOG1/LKeNqJS4JCSPJ/i+TakwEARor7gER1Iva5JmPOJK0RUqmoPnnlzFCtmIAhAAQEIQRgDaiYPIauNXcnDlRIrWNFY3hm7PG9YRqr7IV7HrCgAC17befjEvRq2nGhAHtBqDpOuI/I1diUUAMYIxEdyejBJqLnNoszGZtfiX/CztGv2mq+sdaAAAAAElFTkSuQmCC">
23
23
  <title>Lighthouse Report</title>
24
- <style>/*%%LIGHTHOUSE_CSS%%*/</style>
24
+ <style>body {margin: 0}</style>
25
25
  </head>
26
- <body class="lh-root lh-vars">
26
+ <body>
27
27
  <noscript>Lighthouse report requires JavaScript. Please enable.</noscript>
28
28
 
29
- <main><!-- report populated here --></main>
30
-
31
29
  <div id="lh-log"></div>
32
30
 
33
31
  <script>window.__LIGHTHOUSE_JSON__ = %%LIGHTHOUSE_JSON%%;</script>
@@ -12,18 +12,18 @@ function appendComponent(data: IconButton.IconButton.IconButtonData) {
12
12
 
13
13
  appendComponent({
14
14
  clickHandler: (): void => {},
15
- groups: [{iconName: 'feedback_thin_16x16_icon', iconColor: 'black', text: '1 item'}],
15
+ groups: [{iconName: 'survey_feedback_icon', iconColor: 'black', text: '1 item'}],
16
16
  });
17
17
 
18
18
  appendComponent({
19
19
  clickHandler: (): void => {},
20
- groups: [{iconName: 'feedback_thin_16x16_icon', iconColor: 'black', text: '1 item'}],
20
+ groups: [{iconName: 'survey_feedback_icon', iconColor: 'black', text: '1 item'}],
21
21
  });
22
22
 
23
23
  appendComponent({
24
24
  clickHandler: (): void => {},
25
25
  groups: [
26
- {iconName: 'feedback_thin_16x16_icon', iconColor: 'blue', text: 'Test'},
26
+ {iconName: 'survey_feedback_icon', iconColor: 'blue', text: 'Test'},
27
27
  {iconName: 'warning_icon', iconColor: '', text: '1'},
28
28
  ],
29
29
  });
@@ -41,20 +41,6 @@ export function legacyGetStyleSheets(path: string): CSSStyleSheet[] {
41
41
  * them through to the right place, respecting Karma's ROOT_DIRECTORY setting.
42
42
  */
43
43
  export const CSS_RESOURCES_TO_LOAD_INTO_RUNTIME = [
44
- 'ui/legacy/inspectorCommon.css',
45
- 'ui/legacy/textButton.css',
46
- 'ui/legacy/themeColors.css',
47
- 'ui/legacy/inspectorSyntaxHighlight.css',
48
- 'ui/legacy/progressIndicator.css',
49
44
  'panels/application/serviceWorkerUpdateCycleView.css',
50
- 'ui/legacy/tabbedPane.css',
51
- 'ui/legacy/glassPane.css',
52
- 'ui/legacy/suggestBox.css',
53
- 'ui/legacy/treeoutline.css',
54
- 'ui/legacy/softContextMenu.css',
55
- 'ui/legacy/splitWidget.css',
56
45
  'ui/legacy/components/source_frame/jsonView.css',
57
- 'ui/legacy/searchableView.css',
58
- 'ui/legacy/toolbar.css',
59
- 'ui/legacy/inspectorViewTabbedPane.css',
60
46
  ];
@@ -22,7 +22,7 @@ export interface ImageData {
22
22
  * [
23
23
  * 'feedbackIcon',
24
24
  * {
25
- * src: 'Images/feedback_thin_16x16_icon.svg',
25
+ * src: 'Images/survey_feedback_icon.svg',
26
26
  * isIcon: true,
27
27
  * width: '20px',
28
28
  * height: '20px',
@@ -124,7 +124,7 @@ export class SurveyLink extends HTMLElement {
124
124
  // eslint-disable-next-line rulesdir/ban_style_tags_in_lit_html
125
125
  const output = LitHtml.html`
126
126
  <button class="link ${linkState}" tabindex=${ariaDisabled ? '-1' : '0'} .disabled=${ariaDisabled} aria-disabled=${ariaDisabled} @click=${this.sendSurvey}>
127
- <${IconButton.Icon.Icon.litTagName} class="link-icon" .data=${{iconName: 'feedback_thin_16x16_icon', color: 'var(--color-link)', width: 'var(--issue-link-icon-size, 16px)', height: 'var(--issue-link-icon-size, 16px)'} as IconButton.Icon.IconData}></${IconButton.Icon.Icon.litTagName}><!--
127
+ <${IconButton.Icon.Icon.litTagName} class="link-icon" .data=${{iconName: 'feedback_button_icon', color: 'var(--color-link)', width: 'var(--issue-link-icon-size, 16px)', height: 'var(--issue-link-icon-size, 16px)'} as IconButton.Icon.IconData}></${IconButton.Icon.Icon.litTagName}><!--
128
128
  -->${linkText}
129
129
  </button>
130
130
  `;
@@ -39,6 +39,8 @@ import type {DevToolsCloseButton} from './UIUtils.js';
39
39
  import type {WidgetElement} from './Widget.js';
40
40
  import {WidgetFocusRestorer} from './Widget.js';
41
41
 
42
+ import dialogStyles from './dialog.css.legacy.js';
43
+
42
44
  export class Dialog extends Common.ObjectWrapper.eventMixin<EventTypes, typeof GlassPane>(GlassPane) {
43
45
  private tabIndexBehavior: OutsideTabIndexBehavior;
44
46
  private tabIndexMap: Map<HTMLElement, number>;
@@ -50,7 +52,7 @@ export class Dialog extends Common.ObjectWrapper.eventMixin<EventTypes, typeof G
50
52
 
51
53
  constructor() {
52
54
  super();
53
- this.registerRequiredCSS('ui/legacy/dialog.css');
55
+ this.registerRequiredCSS(dialogStyles);
54
56
  this.contentElement.tabIndex = 0;
55
57
  this.contentElement.addEventListener('focus', () => this.widget().focus(), false);
56
58
  this.widget().setDefaultFocusedElement(this.contentElement);
@@ -2,6 +2,7 @@
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
+ import dropTargetStyles from './dropTarget.css.legacy.js';
5
6
  import * as Utils from './utils/utils.js';
6
7
 
7
8
  export class DropTarget {
@@ -71,7 +72,7 @@ export class DropTarget {
71
72
  }
72
73
  this.dragMaskElement = this.element.createChild('div', '');
73
74
  const shadowRoot = Utils.createShadowRootWithCoreStyles(
74
- this.dragMaskElement, {cssFile: 'ui/legacy/dropTarget.css', delegatesFocus: undefined});
75
+ this.dragMaskElement, {cssFile: dropTargetStyles, delegatesFocus: undefined});
75
76
  shadowRoot.createChild('div', 'drop-target-message').textContent = this.messageText;
76
77
  this.dragMaskElement.addEventListener('drop', this.onDrop.bind(this), true);
77
78
  this.dragMaskElement.addEventListener('dragleave', this.onDragLeave.bind(this), true);
@@ -30,6 +30,7 @@
30
30
 
31
31
  import * as i18n from '../../core/i18n/i18n.js';
32
32
 
33
+ import emptyWidgetStyles from './emptyWidget.css.legacy.js';
33
34
  import {VBox} from './Widget.js';
34
35
  import {XLink} from './XLink.js';
35
36
 
@@ -47,7 +48,7 @@ export class EmptyWidget extends VBox {
47
48
 
48
49
  constructor(text: string) {
49
50
  super();
50
- this.registerRequiredCSS('ui/legacy/emptyWidget.css');
51
+ this.registerRequiredCSS(emptyWidgetStyles);
51
52
  this.element.classList.add('empty-view-scroller');
52
53
  this.contentElement = this.element.createChild('div', 'empty-view') as HTMLDivElement;
53
54
  this.textElement = this.contentElement.createChild('div', 'empty-bold-text');
@@ -43,6 +43,7 @@ import {ToolbarSettingToggle} from './Toolbar.js';
43
43
  import {Tooltip} from './Tooltip.js';
44
44
  import {CheckboxLabel, createTextChild} from './UIUtils.js';
45
45
  import {HBox} from './Widget.js';
46
+ import filterStyles from './filter.css.legacy.js';
46
47
 
47
48
  const UIStrings = {
48
49
  /**
@@ -79,7 +80,7 @@ export class FilterBar extends Common.ObjectWrapper.eventMixin<FilterBarEventTyp
79
80
 
80
81
  constructor(name: string, visibleByDefault?: boolean) {
81
82
  super();
82
- this.registerRequiredCSS('ui/legacy/filter.css');
83
+ this.registerRequiredCSS(filterStyles);
83
84
  this.enabled = true;
84
85
  this.element.classList.add('filter-bar');
85
86
 
@@ -10,6 +10,7 @@ import {Icon} from './Icon.js';
10
10
  import {deepElementFromEvent} from './UIUtils.js';
11
11
  import type {WidgetElement} from './Widget.js';
12
12
  import {Widget} from './Widget.js';
13
+ import glassPaneStyles from './glassPane.css.legacy.js';
13
14
 
14
15
  export class GlassPane {
15
16
  private readonly widgetInternal: Widget;
@@ -36,7 +37,7 @@ export class GlassPane {
36
37
  this.element.shadowRoot.appendChild(this.arrowElement);
37
38
  }
38
39
 
39
- this.registerRequiredCSS('ui/legacy/glassPane.css');
40
+ this.registerRequiredCSS(glassPaneStyles);
40
41
  this.setPointerEventsBehavior(PointerEventsBehavior.PierceGlassPane);
41
42
 
42
43
  this.onMouseDownBound = this.onMouseDown.bind(this);
@@ -54,7 +55,8 @@ export class GlassPane {
54
55
  return this.widgetInternal.isShowing();
55
56
  }
56
57
 
57
- registerRequiredCSS(cssFile: string): void {
58
+ registerRequiredCSS(cssFile: string|{cssContent: string}): void {
59
+ // eslint-disable-next-line no-restricted-syntax -- Should import styles https://crbug.com/1106746
58
60
  this.widgetInternal.registerRequiredCSS(cssFile);
59
61
  }
60
62
 
@@ -10,6 +10,7 @@ import * as ARIAUtils from './ARIAUtils.js';
10
10
  import {Keys} from './KeyboardShortcut.js';
11
11
  import {createTextButton} from './UIUtils.js';
12
12
  import type {Widget} from './Widget.js';
13
+ import infobarStyles from './infobar.css.legacy.js';
13
14
 
14
15
  const UIStrings = {
15
16
  /**
@@ -54,8 +55,8 @@ export class Infobar {
54
55
  constructor(type: Type, text: string, actions?: InfobarAction[], disableSetting?: Common.Settings.Setting<any>) {
55
56
  this.element = document.createElement('div');
56
57
  this.element.classList.add('flex-none');
57
- this.shadowRoot = Utils.createShadowRootWithCoreStyles(
58
- this.element, {cssFile: 'ui/legacy/infobar.css', delegatesFocus: undefined});
58
+ this.shadowRoot =
59
+ Utils.createShadowRootWithCoreStyles(this.element, {cssFile: infobarStyles, delegatesFocus: undefined});
59
60
 
60
61
  this.contentElement = this.shadowRoot.createChild('div', 'infobar infobar-' + type) as HTMLDivElement;
61
62
 
@@ -52,6 +52,7 @@ import {ViewManager} from './ViewManager.js';
52
52
  import type {Widget} from './Widget.js';
53
53
  import {VBox, WidgetFocusRestorer} from './Widget.js';
54
54
  import * as ARIAUtils from './ARIAUtils.js';
55
+ import inspectorViewTabbedPaneStyles from './inspectorViewTabbedPane.css.legacy.js';
55
56
 
56
57
  const UIStrings = {
57
58
  /**
@@ -167,7 +168,7 @@ export class InspectorView extends VBox implements ViewLocationResolver {
167
168
 
168
169
  this.tabbedPane = this.tabbedLocation.tabbedPane();
169
170
  this.tabbedPane.element.classList.add('main-tabbed-pane');
170
- this.tabbedPane.registerRequiredCSS('ui/legacy/inspectorViewTabbedPane.css');
171
+ this.tabbedPane.registerRequiredCSS(inspectorViewTabbedPaneStyles);
171
172
  this.tabbedPane.addEventListener(TabbedPaneEvents.TabSelected, this.tabSelected, this);
172
173
  this.tabbedPane.setAccessibleName(i18nString(UIStrings.panels));
173
174
  this.tabbedPane.setTabDelegate(this.tabDelegate);
@@ -210,6 +211,10 @@ export class InspectorView extends VBox implements ViewLocationResolver {
210
211
  return inspectorViewInstance;
211
212
  }
212
213
 
214
+ static maybeGetInspectorViewInstance(): InspectorView|undefined {
215
+ return inspectorViewInstance;
216
+ }
217
+
213
218
  wasShown(): void {
214
219
  this.element.ownerDocument.addEventListener('keydown', this.keyDownBound, false);
215
220
  }
@@ -5,6 +5,7 @@
5
5
  import * as i18n from '../../core/i18n/i18n.js';
6
6
 
7
7
  import * as ARIAUtils from './ARIAUtils.js';
8
+ import listWidgetStyles from './listWidget.css.legacy.js';
8
9
  import {Toolbar, ToolbarButton} from './Toolbar.js';
9
10
  import {Tooltip} from './Tooltip.js';
10
11
  import {createInput, createTextButton, ElementFocusRestorer} from './UIUtils.js';
@@ -49,7 +50,7 @@ export class ListWidget<T> extends VBox {
49
50
  private emptyPlaceholder: Element|null;
50
51
  constructor(delegate: Delegate<T>, delegatesFocus: boolean|undefined = true) {
51
52
  super(true, delegatesFocus);
52
- this.registerRequiredCSS('ui/legacy/listWidget.css');
53
+ this.registerRequiredCSS(listWidgetStyles);
53
54
  this.delegate = delegate;
54
55
 
55
56
  this.list = this.contentElement.createChild('div', 'list');
@@ -29,6 +29,7 @@
29
29
  */
30
30
 
31
31
  import {GlassPane, MarginBehavior, SizeBehavior} from './GlassPane.js';
32
+ import popoverStyles from './popover.css.legacy.js';
32
33
 
33
34
  export class PopoverHelper {
34
35
  private disableOnClick: boolean;
@@ -189,7 +190,7 @@ export class PopoverHelper {
189
190
 
190
191
  private showPopover(document: Document): void {
191
192
  const popover = new GlassPane();
192
- popover.registerRequiredCSS('ui/legacy/popover.css');
193
+ popover.registerRequiredCSS(popoverStyles);
193
194
  popover.setSizeBehavior(SizeBehavior.MeasureContent);
194
195
  popover.setMarginBehavior(MarginBehavior.Arrow);
195
196
  const request = this.scheduledRequest;
@@ -30,6 +30,7 @@
30
30
 
31
31
  import type * as Common from '../../core/common/common.js';
32
32
  import * as Utils from './utils/utils.js';
33
+ import progressIndicatorStyles from './progressIndicator.css.legacy.js';
33
34
 
34
35
  export class ProgressIndicator implements Common.Progress.Progress {
35
36
  element: HTMLDivElement;
@@ -46,7 +47,7 @@ export class ProgressIndicator implements Common.Progress.Progress {
46
47
  this.element = document.createElement('div');
47
48
  this.element.classList.add('progress-indicator');
48
49
  this.shadowRoot = Utils.createShadowRootWithCoreStyles(
49
- this.element, {cssFile: 'ui/legacy/progressIndicator.css', delegatesFocus: undefined});
50
+ this.element, {cssFile: progressIndicatorStyles, delegatesFocus: undefined});
50
51
  this.contentElement = this.shadowRoot.createChild('div', 'progress-indicator-shadow-container');
51
52
 
52
53
  this.labelElement = this.contentElement.createChild('div', 'title');
@@ -6,6 +6,7 @@ import * as i18n from '../../core/i18n/i18n.js';
6
6
 
7
7
  import {Dialog} from './Dialog.js';
8
8
  import {SizeBehavior} from './GlassPane.js';
9
+ import remoteDebuggingTerminatedScreenStyles from './remoteDebuggingTerminatedScreen.css.legacy.js';
9
10
  import {createTextButton, formatLocalized} from './UIUtils.js';
10
11
  import {VBox} from './Widget.js';
11
12
 
@@ -30,7 +31,7 @@ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
30
31
  export class RemoteDebuggingTerminatedScreen extends VBox {
31
32
  constructor(reason: string) {
32
33
  super(true);
33
- this.registerRequiredCSS('ui/legacy/remoteDebuggingTerminatedScreen.css');
34
+ this.registerRequiredCSS(remoteDebuggingTerminatedScreenStyles);
34
35
  const message = this.contentElement.createChild('div', 'message');
35
36
  const reasonElement = message.createChild('span', 'reason');
36
37
  reasonElement.textContent = reason;
@@ -3,6 +3,7 @@
3
3
  // found in the LICENSE file.
4
4
 
5
5
  import * as ARIAUtils from './ARIAUtils.js';
6
+ import reportViewStyles from './reportView.css.legacy.js';
6
7
  import {Toolbar} from './Toolbar.js';
7
8
  import {Tooltip} from './Tooltip.js';
8
9
  import {VBox} from './Widget.js';
@@ -20,7 +21,7 @@ export class ReportView extends VBox {
20
21
  private urlElement?: HTMLElement;
21
22
  constructor(title?: string) {
22
23
  super(true);
23
- this.registerRequiredCSS('ui/legacy/reportView.css');
24
+ this.registerRequiredCSS(reportViewStyles);
24
25
 
25
26
  this.contentBox = this.contentElement.createChild('div', 'report-content-box');
26
27
  this.headerElement = this.contentBox.createChild('div', 'report-header vbox');
@@ -2,6 +2,7 @@
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
+ import rootViewStyles from './rootView.css.legacy.js';
5
6
  import {VBox} from './Widget.js';
6
7
  import {ZoomManager} from './ZoomManager.js';
7
8
 
@@ -11,7 +12,7 @@ export class RootView extends VBox {
11
12
  super();
12
13
  this.markAsRoot();
13
14
  this.element.classList.add('root-view');
14
- this.registerRequiredCSS('ui/legacy/rootView.css');
15
+ this.registerRequiredCSS(rootViewStyles);
15
16
  this.element.setAttribute('spellcheck', 'false');
16
17
  }
17
18
 
@@ -39,6 +39,7 @@ import * as i18n from '../../core/i18n/i18n.js';
39
39
  import * as ARIAUtils from './ARIAUtils.js';
40
40
  import {HistoryInput} from './HistoryInput.js';
41
41
  import {InspectorView} from './InspectorView.js';
42
+ import searchableViewStyles from './searchableView.css.legacy.js';
42
43
  import {Toolbar, ToolbarButton, ToolbarToggle} from './Toolbar.js';
43
44
  import {Tooltip} from './Tooltip.js';
44
45
  import {createTextButton} from './UIUtils.js';
@@ -123,7 +124,7 @@ export class SearchableView extends VBox {
123
124
 
124
125
  constructor(searchable: Searchable, replaceable: Replaceable|null, settingName?: string) {
125
126
  super(true);
126
- this.registerRequiredCSS('ui/legacy/searchableView.css');
127
+ this.registerRequiredCSS(searchableViewStyles);
127
128
  searchableViewsByElement.set(this.element, this);
128
129
 
129
130
  this.searchProvider = searchable;
@@ -37,6 +37,7 @@ import {AnchorBehavior, GlassPane, MarginBehavior, PointerEventsBehavior, SizeBe
37
37
  import {Icon} from './Icon.js';
38
38
  import * as ThemeSupport from './theme_support/theme_support.js'; // eslint-disable-line rulesdir/es_modules_import
39
39
  import {createTextChild, ElementFocusRestorer} from './UIUtils.js';
40
+ import softContextMenuStyles from './softContextMenu.css.legacy.js';
40
41
 
41
42
  const UIStrings = {
42
43
  /**
@@ -101,7 +102,7 @@ export class SoftContextMenu {
101
102
  this.glassPane = new GlassPane();
102
103
  this.glassPane.setPointerEventsBehavior(
103
104
  this.parentMenu ? PointerEventsBehavior.PierceGlassPane : PointerEventsBehavior.BlockedByGlassPane);
104
- this.glassPane.registerRequiredCSS('ui/legacy/softContextMenu.css');
105
+ this.glassPane.registerRequiredCSS(softContextMenuStyles);
105
106
  this.glassPane.setContentAnchorBox(anchorBox);
106
107
  this.glassPane.setSizeBehavior(SizeBehavior.MeasureContent);
107
108
  this.glassPane.setMarginBehavior(MarginBehavior.NoMargin);
@@ -14,6 +14,8 @@ import type {ListDelegate} from './ListControl.js';
14
14
  import {ListControl, ListMode} from './ListControl.js';
15
15
  import type {ItemsReplacedEvent, ListModel} from './ListModel.js';
16
16
  import {Events as ListModelEvents} from './ListModel.js';
17
+ import softDropDownStyles from './softDropDown.css.legacy.js';
18
+ import softDropDownButtonStyles from './softDropDownButton.css.legacy.js';
17
19
 
18
20
  const UIStrings = {
19
21
  /**
@@ -46,7 +48,7 @@ export class SoftDropDown<T> implements ListDelegate<T> {
46
48
 
47
49
  this.element = document.createElement('button');
48
50
  this.element.classList.add('soft-dropdown');
49
- Utils.appendStyle(this.element, 'ui/legacy/softDropDownButton.css');
51
+ Utils.appendStyle(this.element, softDropDownButtonStyles);
50
52
  this.titleElement = this.element.createChild('span', 'title');
51
53
  const dropdownArrowIcon = Icon.create('smallicon-triangle-down');
52
54
  this.element.appendChild(dropdownArrowIcon);
@@ -63,7 +65,7 @@ export class SoftDropDown<T> implements ListDelegate<T> {
63
65
  this.width = 315;
64
66
  Utils
65
67
  .createShadowRootWithCoreStyles(this.glassPane.contentElement, {
66
- cssFile: 'ui/legacy/softDropDown.css',
68
+ cssFile: softDropDownStyles,
67
69
  delegatesFocus: undefined,
68
70
  })
69
71
  .appendChild(this.list.element);
@@ -37,6 +37,7 @@ import {Events as ResizerWidgetEvents, SimpleResizerWidget} from './ResizerWidge
37
37
  import {ToolbarButton} from './Toolbar.js';
38
38
  import {Widget} from './Widget.js';
39
39
  import {Events as ZoomManagerEvents, ZoomManager} from './ZoomManager.js';
40
+ import splitWidgetStyles from './splitWidget.css.legacy.js';
40
41
 
41
42
  export class SplitWidget extends Common.ObjectWrapper.eventMixin<EventTypes, typeof Widget>(Widget) {
42
43
  private sidebarElementInternal: HTMLElement;
@@ -77,7 +78,7 @@ export class SplitWidget extends Common.ObjectWrapper.eventMixin<EventTypes, typ
77
78
  defaultSidebarHeight?: number, constraintsInDip?: boolean) {
78
79
  super(true);
79
80
  this.element.classList.add('split-widget');
80
- this.registerRequiredCSS('ui/legacy/splitWidget.css');
81
+ this.registerRequiredCSS(splitWidgetStyles);
81
82
 
82
83
  this.contentElement.classList.add('shadow-split-widget');
83
84
  this.sidebarElementInternal =
@@ -41,6 +41,7 @@ import type {ListDelegate} from './ListControl.js';
41
41
  import {ListControl, ListMode} from './ListControl.js';
42
42
  import {ListModel} from './ListModel.js';
43
43
  import {measurePreferredSize} from './UIUtils.js';
44
+ import suggestBoxStyles from './suggestBox.css.legacy.js';
44
45
 
45
46
  const UIStrings = {
46
47
  /**
@@ -107,7 +108,7 @@ export class SuggestBox implements ListDelegate<Suggestion> {
107
108
  this.glassPane.setAnchorBehavior(AnchorBehavior.PreferBottom);
108
109
  this.glassPane.setOutsideClickCallback(this.hide.bind(this));
109
110
  const shadowRoot = Utils.createShadowRootWithCoreStyles(
110
- this.glassPane.contentElement, {cssFile: 'ui/legacy/suggestBox.css', delegatesFocus: undefined});
111
+ this.glassPane.contentElement, {cssFile: suggestBoxStyles, delegatesFocus: undefined});
111
112
  shadowRoot.appendChild(this.element);
112
113
  }
113
114
 
@@ -43,6 +43,7 @@ import {installDragHandle, invokeOnceAfterBatchUpdate} from './UIUtils.js';
43
43
  import type {Widget} from './Widget.js';
44
44
  import {VBox} from './Widget.js';
45
45
  import {Events as ZoomManagerEvents, ZoomManager} from './ZoomManager.js';
46
+ import tabbedPaneStyles from './tabbedPane.css.legacy.js';
46
47
 
47
48
  const UIStrings = {
48
49
  /**
@@ -110,7 +111,7 @@ export class TabbedPane extends Common.ObjectWrapper.eventMixin<EventTypes, type
110
111
 
111
112
  constructor() {
112
113
  super(true);
113
- this.registerRequiredCSS('ui/legacy/tabbedPane.css');
114
+ this.registerRequiredCSS(tabbedPaneStyles);
114
115
  this.element.classList.add('tabbed-pane');
115
116
  this.contentElement.classList.add('tabbed-pane-shadow');
116
117
  this.contentElement.tabIndex = -1;
@@ -4,6 +4,7 @@
4
4
 
5
5
  import * as i18n from '../../core/i18n/i18n.js';
6
6
 
7
+ import targetCrashedScreenStyles from './targetCrashedScreen.css.legacy.js';
7
8
  import {VBox} from './Widget.js';
8
9
 
9
10
  const UIStrings = {
@@ -22,7 +23,7 @@ export class TargetCrashedScreen extends VBox {
22
23
  private readonly hideCallback: () => void;
23
24
  constructor(hideCallback: () => void) {
24
25
  super(true);
25
- this.registerRequiredCSS('ui/legacy/targetCrashedScreen.css');
26
+ this.registerRequiredCSS(targetCrashedScreenStyles);
26
27
  this.contentElement.createChild('div', 'message').textContent =
27
28
  i18nString(UIStrings.devtoolsWasDisconnectedFromThe);
28
29
  this.contentElement.createChild('div', 'message').textContent =
@@ -43,6 +43,7 @@ import type {SuggestBoxDelegate, Suggestion} from './SuggestBox.js';
43
43
  import {SuggestBox} from './SuggestBox.js';
44
44
  import {Tooltip} from './Tooltip.js';
45
45
  import {ElementFocusRestorer} from './UIUtils.js';
46
+ import textPromptStyles from './textPrompt.css.legacy.js';
46
47
 
47
48
  export class TextPrompt extends Common.ObjectWrapper.ObjectWrapper<EventTypes> implements SuggestBoxDelegate {
48
49
  private proxyElement!: HTMLElement|undefined;
@@ -135,7 +136,7 @@ export class TextPrompt extends Common.ObjectWrapper.ObjectWrapper<EventTypes> i
135
136
  this.boundOnMouseWheel = this.onMouseWheel.bind(this);
136
137
  this.boundClearAutocomplete = this.clearAutocomplete.bind(this);
137
138
  this.proxyElement = element.ownerDocument.createElement('span');
138
- Utils.appendStyle(this.proxyElement, 'ui/legacy/textPrompt.css');
139
+ Utils.appendStyle(this.proxyElement, textPromptStyles);
139
140
  this.contentElement = this.proxyElement.createChild('div', 'text-prompt-root');
140
141
  this.proxyElement.style.display = this.proxyElementDisplay;
141
142
  if (element.parentElement) {
@@ -46,6 +46,7 @@ import type {Suggestion} from './SuggestBox.js';
46
46
  import {Events as TextPromptEvents, TextPrompt} from './TextPrompt.js';
47
47
  import {Tooltip} from './Tooltip.js';
48
48
  import {CheckboxLabel, LongClickController} from './UIUtils.js';
49
+ import toolbarStyles from './toolbar.css.legacy.js';
49
50
 
50
51
  const UIStrings = {
51
52
  /**
@@ -75,8 +76,8 @@ export class Toolbar {
75
76
  this.element.className = className;
76
77
  this.element.classList.add('toolbar');
77
78
  this.enabled = true;
78
- this.shadowRoot = Utils.createShadowRootWithCoreStyles(
79
- this.element, {cssFile: 'ui/legacy/toolbar.css', delegatesFocus: undefined});
79
+ this.shadowRoot =
80
+ Utils.createShadowRootWithCoreStyles(this.element, {cssFile: toolbarStyles, delegatesFocus: undefined});
80
81
  this.contentElement = this.shadowRoot.createChild('div', 'toolbar-shadow');
81
82
  this.insertionPoint = this.contentElement.createChild('slot');
82
83
  }
@@ -45,6 +45,7 @@ import {InplaceEditor} from './InplaceEditor.js';
45
45
  import {Keys} from './KeyboardShortcut.js';
46
46
  import {Tooltip} from './Tooltip.js';
47
47
  import {deepElementFromPoint, enclosingNodeOrSelfWithNodeNameInArray, isEditing} from './UIUtils.js';
48
+ import treeoutlineStyles from './treeoutline.css.legacy.js';
48
49
 
49
50
  const nodeToParentTreeElementMap = new WeakMap<Node, TreeElement>();
50
51
 
@@ -391,8 +392,8 @@ export class TreeOutlineInShadow extends TreeOutline {
391
392
  super();
392
393
  this.contentElement.classList.add('tree-outline');
393
394
  this.element = document.createElement('div');
394
- this.shadowRoot = Utils.createShadowRootWithCoreStyles(
395
- this.element, {cssFile: 'ui/legacy/treeoutline.css', delegatesFocus: undefined});
395
+ this.shadowRoot =
396
+ Utils.createShadowRootWithCoreStyles(this.element, {cssFile: treeoutlineStyles, delegatesFocus: undefined});
396
397
  this.disclosureElement = this.shadowRoot.createChild('div', 'tree-outline-disclosure');
397
398
  this.disclosureElement.appendChild(this.contentElement);
398
399
  this.renderSelection = true;
@@ -53,6 +53,13 @@ import type {ToolbarButton} from './Toolbar.js';
53
53
  import {Toolbar} from './Toolbar.js';
54
54
  import {Tooltip} from './Tooltip.js';
55
55
  import type {TreeOutline} from './Treeoutline.js';
56
+ import checkboxTextLabelStyles from './checkboxTextLabel.css.legacy.js';
57
+ import closeButtonStyles from './closeButton.css.legacy.js';
58
+ import confirmDialogStyles from './confirmDialog.css.legacy.js';
59
+ import inlineButtonStyles from './inlineButton.css.legacy.js';
60
+ import radioButtonStyles from './radioButton.css.legacy.js';
61
+ import sliderStyles from './slider.css.legacy.js';
62
+ import smallBubbleStyles from './smallBubble.css.legacy.js';
56
63
 
57
64
  const UIStrings = {
58
65
  /**
@@ -1186,8 +1193,8 @@ export class CheckboxLabel extends HTMLSpanElement {
1186
1193
  super();
1187
1194
  CheckboxLabel.lastId = CheckboxLabel.lastId + 1;
1188
1195
  const id = 'ui-checkbox-label' + CheckboxLabel.lastId;
1189
- this.shadowRootInternal = Utils.createShadowRootWithCoreStyles(
1190
- this, {cssFile: 'ui/legacy/checkboxTextLabel.css', delegatesFocus: undefined});
1196
+ this.shadowRootInternal =
1197
+ Utils.createShadowRootWithCoreStyles(this, {cssFile: checkboxTextLabelStyles, delegatesFocus: undefined});
1191
1198
  this.checkboxElement = (this.shadowRootInternal.createChild('input') as HTMLInputElement);
1192
1199
  this.checkboxElement.type = 'checkbox';
1193
1200
  this.checkboxElement.setAttribute('id', id);
@@ -1268,8 +1275,7 @@ export class DevToolsRadioButton extends HTMLSpanElement {
1268
1275
  this.radioElement.id = id;
1269
1276
  this.radioElement.type = 'radio';
1270
1277
  this.labelElement.htmlFor = id;
1271
- const root =
1272
- Utils.createShadowRootWithCoreStyles(this, {cssFile: 'ui/legacy/radioButton.css', delegatesFocus: undefined});
1278
+ const root = Utils.createShadowRootWithCoreStyles(this, {cssFile: radioButtonStyles, delegatesFocus: undefined});
1273
1279
  root.createChild('slot');
1274
1280
  this.addEventListener('click', this.radioClickHandler.bind(this), false);
1275
1281
  }
@@ -1291,8 +1297,7 @@ export class DevToolsSlider extends HTMLSpanElement {
1291
1297
 
1292
1298
  constructor() {
1293
1299
  super();
1294
- const root =
1295
- Utils.createShadowRootWithCoreStyles(this, {cssFile: 'ui/legacy/slider.css', delegatesFocus: undefined});
1300
+ const root = Utils.createShadowRootWithCoreStyles(this, {cssFile: sliderStyles, delegatesFocus: undefined});
1296
1301
  this.sliderElement = document.createElement('input');
1297
1302
  this.sliderElement.classList.add('dt-range-input');
1298
1303
  this.sliderElement.type = 'range';
@@ -1315,8 +1320,7 @@ export class DevToolsSmallBubble extends HTMLSpanElement {
1315
1320
 
1316
1321
  constructor() {
1317
1322
  super();
1318
- const root =
1319
- Utils.createShadowRootWithCoreStyles(this, {cssFile: 'ui/legacy/smallBubble.css', delegatesFocus: undefined});
1323
+ const root = Utils.createShadowRootWithCoreStyles(this, {cssFile: smallBubbleStyles, delegatesFocus: undefined});
1320
1324
  this.textElement = root.createChild('div');
1321
1325
  this.textElement.className = 'info';
1322
1326
  this.textElement.createChild('slot');
@@ -1336,8 +1340,7 @@ export class DevToolsCloseButton extends HTMLDivElement {
1336
1340
 
1337
1341
  constructor() {
1338
1342
  super();
1339
- const root =
1340
- Utils.createShadowRootWithCoreStyles(this, {cssFile: 'ui/legacy/closeButton.css', delegatesFocus: undefined});
1343
+ const root = Utils.createShadowRootWithCoreStyles(this, {cssFile: closeButtonStyles, delegatesFocus: undefined});
1341
1344
  this.buttonElement = (root.createChild('div', 'close-button') as HTMLElement);
1342
1345
  Tooltip.install(this.buttonElement, i18nString(UIStrings.close));
1343
1346
  ARIAUtils.setAccessibleName(this.buttonElement, i18nString(UIStrings.close));
@@ -1566,7 +1569,7 @@ export class MessageDialog {
1566
1569
  dialog.setSizeBehavior(SizeBehavior.MeasureContent);
1567
1570
  dialog.setDimmed(true);
1568
1571
  const shadowRoot = Utils.createShadowRootWithCoreStyles(
1569
- dialog.contentElement, {cssFile: 'ui/legacy/confirmDialog.css', delegatesFocus: undefined});
1572
+ dialog.contentElement, {cssFile: confirmDialogStyles, delegatesFocus: undefined});
1570
1573
  const content = shadowRoot.createChild('div', 'widget');
1571
1574
  await new Promise(resolve => {
1572
1575
  const okButton = createTextButton(i18nString(UIStrings.ok), resolve, '', true);
@@ -1590,7 +1593,7 @@ export class ConfirmDialog {
1590
1593
  dialog.setDimmed(true);
1591
1594
  ARIAUtils.setAccessibleName(dialog.contentElement, message);
1592
1595
  const shadowRoot = Utils.createShadowRootWithCoreStyles(
1593
- dialog.contentElement, {cssFile: 'ui/legacy/confirmDialog.css', delegatesFocus: undefined});
1596
+ dialog.contentElement, {cssFile: confirmDialogStyles, delegatesFocus: undefined});
1594
1597
  const content = shadowRoot.createChild('div', 'widget');
1595
1598
  content.createChild('div', 'message').createChild('span').textContent = message;
1596
1599
  const buttonsBar = content.createChild('div', 'button');
@@ -1615,7 +1618,7 @@ export class ConfirmDialog {
1615
1618
  export function createInlineButton(toolbarButton: ToolbarButton): Element {
1616
1619
  const element = document.createElement('span');
1617
1620
  const shadowRoot =
1618
- Utils.createShadowRootWithCoreStyles(element, {cssFile: 'ui/legacy/inlineButton.css', delegatesFocus: undefined});
1621
+ Utils.createShadowRootWithCoreStyles(element, {cssFile: inlineButtonStyles, delegatesFocus: undefined});
1619
1622
  element.classList.add('inline-button');
1620
1623
  const toolbar = new Toolbar('');
1621
1624
  toolbar.appendToolbarItem(toolbarButton);
@@ -18,6 +18,7 @@ import type {TabbedViewLocation, View, ViewLocation, ViewLocationResolver} from
18
18
  import {getRegisteredLocationResolvers, getRegisteredViewExtensions, maybeRemoveViewExtension, registerLocationResolver, registerViewExtension, ViewLocationCategoryValues, ViewLocationValues, ViewPersistence, ViewRegistration} from './ViewRegistration.js';
19
19
  import type {Widget, WidgetElement} from './Widget.js';
20
20
  import {VBox} from './Widget.js';
21
+ import viewContainersStyles from './viewContainers.css.legacy.js';
21
22
 
22
23
  const UIStrings = {
23
24
  /**
@@ -418,7 +419,7 @@ export class _ExpandableContainerWidget extends VBox {
418
419
  constructor(view: View) {
419
420
  super(true);
420
421
  this.element.classList.add('flex-none');
421
- this.registerRequiredCSS('ui/legacy/viewContainers.css');
422
+ this.registerRequiredCSS(viewContainersStyles);
422
423
 
423
424
  this.titleElement = document.createElement('div');
424
425
  this.titleElement.classList.add('expandable-view-title');