chrome-devtools-frontend 1.0.941208 → 1.0.943182

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 (289) hide show
  1. package/WATCHLISTS +1 -1
  2. package/config/gni/all_devtools_files.gni +0 -64
  3. package/config/gni/devtools_grd_files.gni +54 -19
  4. package/config/gni/devtools_image_files.gni +1 -3
  5. package/front_end/.eslintrc.js +11 -1
  6. package/front_end/Images/src/{feedback_thin_16x16_icon.svg → survey_feedback_icon.svg} +1 -1
  7. package/front_end/Tests.js +1 -32
  8. package/front_end/core/common/Color.ts +5 -0
  9. package/front_end/core/i18n/locales/en-US.json +17 -29
  10. package/front_end/core/i18n/locales/en-XL.json +17 -29
  11. package/front_end/core/sdk/CPUProfilerModel.ts +7 -9
  12. package/front_end/core/sdk/ConsoleModel.ts +27 -33
  13. package/front_end/core/sdk/DebuggerModel.ts +4 -14
  14. package/front_end/core/sdk/sdk-meta.ts +17 -3
  15. package/front_end/entrypoints/device_mode_emulation_frame/device_mode_emulation_frame.ts +1 -1
  16. package/front_end/entrypoints/devtools_app/devtools_app.js +1 -1
  17. package/front_end/entrypoints/devtools_app/devtools_app.json +1 -12
  18. package/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.ts +1 -1
  19. package/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker-entrypoint.ts +1 -1
  20. package/front_end/entrypoints/inspector/inspector.js +1 -1
  21. package/front_end/entrypoints/inspector/inspector.json +1 -3
  22. package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +2 -3
  23. package/front_end/entrypoints/js_app/js_app.js +1 -1
  24. package/front_end/entrypoints/js_app/js_app.json +1 -3
  25. package/front_end/entrypoints/main/MainImpl.ts +26 -0
  26. package/front_end/entrypoints/main/main-meta.ts +1 -2
  27. package/front_end/entrypoints/ndb_app/ndb_app.js +1 -1
  28. package/front_end/entrypoints/node_app/node_app-meta.ts +0 -2
  29. package/front_end/entrypoints/node_app/node_app.js +1 -1
  30. package/front_end/entrypoints/node_app/node_app.json +1 -3
  31. package/front_end/entrypoints/node_main/node_main-meta.ts +0 -1
  32. package/front_end/entrypoints/shell/shell.js +0 -11
  33. package/front_end/entrypoints/shell/shell.json +1 -5
  34. package/front_end/entrypoints/wasmparser_worker/wasmparser_worker-entrypoint.ts +1 -1
  35. package/front_end/entrypoints/worker_app/worker_app.js +1 -1
  36. package/front_end/entrypoints/worker_app/worker_app.json +1 -7
  37. package/front_end/generated/InspectorBackendCommands.js +19 -0
  38. package/front_end/generated/protocol-mapping.d.ts +31 -1
  39. package/front_end/generated/protocol-proxy-api.d.ts +34 -2
  40. package/front_end/generated/protocol.d.ts +81 -6
  41. package/front_end/legacy_test_runner/bindings_test_runner/IsolatedFilesystemTestRunner.js +2 -2
  42. package/front_end/legacy_test_runner/console_test_runner/console_test_runner.js +5 -1
  43. package/front_end/legacy_test_runner/legacy_test_runner.ts +10 -1
  44. package/front_end/legacy_test_runner/test_runner/TestRunner.js +3 -1
  45. package/front_end/models/formatter/SourceFormatter.ts +0 -10
  46. package/front_end/models/persistence/persistence-meta.ts +0 -1
  47. package/front_end/models/workspace/UISourceCode.ts +9 -42
  48. package/front_end/panels/accessibility/accessibility-meta.ts +0 -1
  49. package/front_end/panels/animation/AnimationTimeline.ts +3 -3
  50. package/front_end/panels/animation/animation-meta.ts +0 -1
  51. package/front_end/panels/application/ApplicationPanelSidebar.ts +3 -3
  52. package/front_end/panels/application/BackForwardCacheStrings.ts +3 -1
  53. package/front_end/panels/application/application-meta.ts +0 -4
  54. package/front_end/panels/application/components/EndpointsGrid.ts +1 -1
  55. package/front_end/panels/application/components/ReportsGrid.ts +1 -1
  56. package/front_end/panels/application/components/stackTraceRow.css +8 -0
  57. package/front_end/panels/browser_debugger/browser_debugger-meta.ts +1 -2
  58. package/front_end/panels/changes/changes-meta.ts +0 -1
  59. package/front_end/panels/console/ConsolePinPane.ts +23 -32
  60. package/front_end/panels/console/ConsoleViewMessage.ts +8 -1
  61. package/front_end/panels/console/console-meta.ts +0 -1
  62. package/front_end/panels/console_counters/console_counters-meta.ts +0 -1
  63. package/front_end/panels/coverage/CoverageDecorationManager.ts +4 -5
  64. package/front_end/panels/coverage/CoverageView.ts +2 -105
  65. package/front_end/panels/coverage/coverage-meta.ts +0 -1
  66. package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +11 -56
  67. package/front_end/panels/css_overview/components/cssOverviewStartView.css +1 -8
  68. package/front_end/panels/css_overview/css_overview-meta.ts +0 -1
  69. package/front_end/panels/developer_resources/developer_resources-meta.ts +0 -1
  70. package/front_end/panels/elements/ElementsTreeElement.ts +4 -9
  71. package/front_end/panels/elements/components/StylePropertyEditor.ts +2 -0
  72. package/front_end/panels/elements/components/adornerSettingsPane.css +0 -4
  73. package/front_end/panels/elements/elements-meta.ts +0 -1
  74. package/front_end/panels/emulation/DeviceModeToolbar.ts +3 -1
  75. package/front_end/panels/emulation/DeviceModeView.ts +2 -1
  76. package/front_end/panels/emulation/InspectedPagePlaceholder.ts +3 -1
  77. package/front_end/panels/emulation/MediaQueryInspector.ts +3 -1
  78. package/front_end/panels/emulation/emulation-meta.ts +2 -5
  79. package/front_end/panels/help/help-meta.ts +0 -1
  80. package/front_end/panels/input/input-meta.ts +0 -1
  81. package/front_end/panels/issues/issues-meta.ts +0 -3
  82. package/front_end/panels/js_profiler/js_profiler-meta.ts +0 -4
  83. package/front_end/panels/layers/layers-meta.ts +0 -4
  84. package/front_end/panels/lighthouse/LighthousePanel.ts +2 -4
  85. package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -4
  86. package/front_end/panels/lighthouse/lighthouse-meta.ts +0 -1
  87. package/front_end/panels/lighthouse/lighthouseStartView.css +4 -0
  88. package/front_end/panels/lighthouse/module.json +0 -6
  89. package/front_end/panels/media/media-meta.ts +0 -4
  90. package/front_end/panels/mobile_throttling/mobile_throttling-meta.ts +0 -1
  91. package/front_end/panels/network/ResourceWebSocketFrameView.ts +2 -1
  92. package/front_end/panels/network/network-meta.ts +1 -5
  93. package/front_end/panels/performance_monitor/performance_monitor-meta.ts +0 -1
  94. package/front_end/panels/profiler/CPUProfileView.ts +10 -3
  95. package/front_end/panels/profiler/profiler-meta.ts +0 -3
  96. package/front_end/panels/protocol_monitor/protocol_monitor-meta.ts +0 -1
  97. package/front_end/panels/screencast/screencast-meta.ts +0 -4
  98. package/front_end/panels/security/security-meta.ts +0 -4
  99. package/front_end/panels/sensors/sensors-meta.ts +0 -1
  100. package/front_end/panels/settings/emulation/emulation-meta.ts +0 -1
  101. package/front_end/panels/settings/settings-meta.ts +0 -1
  102. package/front_end/panels/sources/BreakpointEditDialog.ts +16 -30
  103. package/front_end/panels/sources/CSSPlugin.ts +310 -331
  104. package/front_end/panels/sources/CallStackSidebarPane.ts +28 -34
  105. package/front_end/panels/sources/CoveragePlugin.ts +121 -6
  106. package/front_end/panels/sources/DebuggerPlugin.ts +1166 -1243
  107. package/front_end/panels/sources/EditingLocationHistoryManager.ts +71 -101
  108. package/front_end/panels/sources/GoToLineQuickOpen.ts +4 -3
  109. package/front_end/panels/sources/InplaceFormatterEditorAction.ts +3 -3
  110. package/front_end/panels/sources/JavaScriptCompilerPlugin.ts +26 -23
  111. package/front_end/panels/sources/Plugin.ts +20 -4
  112. package/front_end/panels/sources/ProfilePlugin.ts +185 -0
  113. package/front_end/panels/sources/ScriptFormatterEditorAction.ts +3 -3
  114. package/front_end/panels/sources/ScriptOriginPlugin.ts +0 -10
  115. package/front_end/panels/sources/SnippetsPlugin.ts +1 -10
  116. package/front_end/panels/sources/SourcesPanel.ts +6 -5
  117. package/front_end/panels/sources/SourcesView.ts +10 -8
  118. package/front_end/panels/sources/TabbedEditorContainer.ts +31 -27
  119. package/front_end/panels/sources/UISourceCodeFrame.ts +335 -470
  120. package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +3 -2
  121. package/front_end/panels/sources/sources-legacy.ts +0 -6
  122. package/front_end/panels/sources/sources-meta.ts +2 -6
  123. package/front_end/panels/sources/sources.ts +0 -2
  124. package/front_end/panels/timeline/timeline-meta.ts +2 -9
  125. package/front_end/panels/web_audio/web_audio-meta.ts +0 -1
  126. package/front_end/panels/webauthn/webauthn-meta.ts +0 -1
  127. package/front_end/third_party/codemirror.next/bundle.ts +9 -13
  128. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  129. package/front_end/third_party/codemirror.next/chunk/javascript.js +2 -2
  130. package/front_end/third_party/codemirror.next/chunk/markdown.js +2 -6
  131. package/front_end/third_party/codemirror.next/chunk/php.js +2 -6
  132. package/front_end/third_party/codemirror.next/chunk/python.js +1 -1
  133. package/front_end/third_party/codemirror.next/chunk/wast.js +1 -1
  134. package/front_end/third_party/codemirror.next/chunk/xml.js +2 -2
  135. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +279 -198
  136. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
  137. package/front_end/third_party/codemirror.next/package.json +13 -11
  138. package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1128 -1158
  139. package/front_end/third_party/lighthouse/locales/ar-XB.json +211 -79
  140. package/front_end/third_party/lighthouse/locales/ar.json +213 -81
  141. package/front_end/third_party/lighthouse/locales/bg.json +211 -79
  142. package/front_end/third_party/lighthouse/locales/ca.json +212 -80
  143. package/front_end/third_party/lighthouse/locales/cs.json +211 -79
  144. package/front_end/third_party/lighthouse/locales/da.json +211 -79
  145. package/front_end/third_party/lighthouse/locales/de.json +211 -79
  146. package/front_end/third_party/lighthouse/locales/el.json +213 -81
  147. package/front_end/third_party/lighthouse/locales/en-GB.json +211 -79
  148. package/front_end/third_party/lighthouse/locales/en-US.json +186 -75
  149. package/front_end/third_party/lighthouse/locales/en-XA.json +211 -79
  150. package/front_end/third_party/lighthouse/locales/en-XL.json +186 -75
  151. package/front_end/third_party/lighthouse/locales/es-419.json +211 -79
  152. package/front_end/third_party/lighthouse/locales/es.json +212 -80
  153. package/front_end/third_party/lighthouse/locales/fi.json +211 -79
  154. package/front_end/third_party/lighthouse/locales/fil.json +211 -79
  155. package/front_end/third_party/lighthouse/locales/fr.json +211 -79
  156. package/front_end/third_party/lighthouse/locales/he.json +212 -80
  157. package/front_end/third_party/lighthouse/locales/hi.json +214 -82
  158. package/front_end/third_party/lighthouse/locales/hr.json +211 -79
  159. package/front_end/third_party/lighthouse/locales/hu.json +211 -79
  160. package/front_end/third_party/lighthouse/locales/id.json +211 -79
  161. package/front_end/third_party/lighthouse/locales/it.json +211 -79
  162. package/front_end/third_party/lighthouse/locales/ja.json +211 -79
  163. package/front_end/third_party/lighthouse/locales/ko.json +211 -79
  164. package/front_end/third_party/lighthouse/locales/lt.json +211 -79
  165. package/front_end/third_party/lighthouse/locales/lv.json +214 -82
  166. package/front_end/third_party/lighthouse/locales/nl.json +211 -79
  167. package/front_end/third_party/lighthouse/locales/no.json +211 -79
  168. package/front_end/third_party/lighthouse/locales/pl.json +211 -79
  169. package/front_end/third_party/lighthouse/locales/pt-PT.json +211 -79
  170. package/front_end/third_party/lighthouse/locales/pt.json +211 -79
  171. package/front_end/third_party/lighthouse/locales/ro.json +212 -80
  172. package/front_end/third_party/lighthouse/locales/ru.json +211 -79
  173. package/front_end/third_party/lighthouse/locales/sk.json +211 -79
  174. package/front_end/third_party/lighthouse/locales/sl.json +211 -79
  175. package/front_end/third_party/lighthouse/locales/sr-Latn.json +211 -79
  176. package/front_end/third_party/lighthouse/locales/sr.json +211 -79
  177. package/front_end/third_party/lighthouse/locales/sv.json +211 -79
  178. package/front_end/third_party/lighthouse/locales/ta.json +218 -86
  179. package/front_end/third_party/lighthouse/locales/te.json +251 -119
  180. package/front_end/third_party/lighthouse/locales/th.json +211 -79
  181. package/front_end/third_party/lighthouse/locales/tr.json +211 -79
  182. package/front_end/third_party/lighthouse/locales/uk.json +212 -80
  183. package/front_end/third_party/lighthouse/locales/vi.json +211 -79
  184. package/front_end/third_party/lighthouse/locales/zh-HK.json +211 -79
  185. package/front_end/third_party/lighthouse/locales/zh-TW.json +211 -79
  186. package/front_end/third_party/lighthouse/locales/zh.json +211 -79
  187. package/front_end/third_party/lighthouse/report/bundle.d.ts +72 -34
  188. package/front_end/third_party/lighthouse/report/bundle.js +698 -492
  189. package/front_end/third_party/lighthouse/report-assets/report-generator.js +1 -2
  190. package/front_end/third_party/lighthouse/report-assets/report.js +40 -35
  191. package/front_end/third_party/lighthouse/report-assets/standalone-template.html +2 -4
  192. package/front_end/ui/components/code_highlighter/CodeHighlighter.ts +60 -68
  193. package/front_end/ui/components/data_grid/dataGrid.css +12 -10
  194. package/front_end/ui/components/docs/component_docs.ts +14 -0
  195. package/front_end/ui/components/docs/create_breadcrumbs.ts +1 -1
  196. package/front_end/ui/components/docs/css_overview/start_view.html +25 -0
  197. package/front_end/ui/components/docs/css_overview/start_view.ts +14 -0
  198. package/front_end/ui/components/docs/icon_button/basic.ts +3 -3
  199. package/front_end/ui/components/docs/toggle_dark_mode.ts +1 -0
  200. package/front_end/ui/components/docs/toggle_fonts.ts +2 -0
  201. package/front_end/ui/components/helpers/get-stylesheet.ts +0 -15
  202. package/front_end/ui/components/linear_memory_inspector/linear_memory_inspector-meta.ts +1 -2
  203. package/front_end/ui/components/markdown_view/MarkdownImagesMap.ts +1 -1
  204. package/front_end/ui/components/survey_link/SurveyLink.ts +1 -1
  205. package/front_end/ui/components/text_editor/TextEditor.ts +79 -36
  206. package/front_end/ui/components/text_editor/config.ts +42 -26
  207. package/front_end/ui/components/text_editor/javascript.ts +2 -3
  208. package/front_end/ui/components/text_editor/position.ts +17 -0
  209. package/front_end/ui/components/text_editor/text_editor.ts +1 -0
  210. package/front_end/ui/components/text_editor/theme.ts +5 -1
  211. package/front_end/ui/components/tree_outline/TreeOutline.ts +63 -8
  212. package/front_end/ui/components/tree_outline/TreeOutlineUtils.ts +8 -6
  213. package/front_end/ui/legacy/Dialog.ts +3 -1
  214. package/front_end/ui/legacy/DropTarget.ts +2 -1
  215. package/front_end/ui/legacy/EmptyWidget.ts +2 -1
  216. package/front_end/ui/legacy/FilterBar.ts +2 -1
  217. package/front_end/ui/legacy/GlassPane.ts +4 -2
  218. package/front_end/ui/legacy/Infobar.ts +5 -8
  219. package/front_end/ui/legacy/InspectorView.ts +6 -1
  220. package/front_end/ui/legacy/ListWidget.ts +2 -1
  221. package/front_end/ui/legacy/PopoverHelper.ts +2 -1
  222. package/front_end/ui/legacy/ProgressIndicator.ts +2 -1
  223. package/front_end/ui/legacy/RemoteDebuggingTerminatedScreen.ts +2 -1
  224. package/front_end/ui/legacy/ReportView.ts +2 -1
  225. package/front_end/ui/legacy/RootView.ts +2 -1
  226. package/front_end/ui/legacy/SearchableView.ts +2 -1
  227. package/front_end/ui/legacy/ShortcutRegistry.ts +11 -7
  228. package/front_end/ui/legacy/SoftContextMenu.ts +3 -2
  229. package/front_end/ui/legacy/SoftDropDown.ts +4 -2
  230. package/front_end/ui/legacy/SplitWidget.ts +2 -1
  231. package/front_end/ui/legacy/SuggestBox.ts +2 -1
  232. package/front_end/ui/legacy/TabbedPane.ts +2 -1
  233. package/front_end/ui/legacy/TargetCrashedScreen.ts +2 -1
  234. package/front_end/ui/legacy/TextPrompt.ts +2 -1
  235. package/front_end/ui/legacy/Toolbar.ts +3 -2
  236. package/front_end/ui/legacy/Treeoutline.ts +4 -3
  237. package/front_end/ui/legacy/UIUtils.ts +17 -14
  238. package/front_end/ui/legacy/ViewManager.ts +2 -1
  239. package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +1 -2
  240. package/front_end/ui/legacy/components/inline_editor/cssAngle.css +4 -0
  241. package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +2 -2
  242. package/front_end/ui/legacy/components/object_ui/object_ui-meta.ts +0 -4
  243. package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +35 -131
  244. package/front_end/ui/legacy/components/perf_ui/perf_ui-meta.ts +0 -3
  245. package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +2 -2
  246. package/front_end/ui/legacy/components/quick_open/quick_open-meta.ts +2 -3
  247. package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.ts +3 -6
  248. package/front_end/ui/legacy/components/source_frame/FontView.ts +4 -1
  249. package/front_end/ui/legacy/components/source_frame/ImageView.ts +4 -1
  250. package/front_end/ui/legacy/components/source_frame/JSONView.ts +4 -1
  251. package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +21 -15
  252. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +501 -252
  253. package/front_end/ui/legacy/components/source_frame/XMLView.ts +7 -2
  254. package/front_end/ui/legacy/components/source_frame/source_frame-legacy.ts +0 -11
  255. package/front_end/ui/legacy/components/source_frame/source_frame.ts +0 -2
  256. package/front_end/ui/legacy/components/text_editor/CodeMirrorTextEditor.ts +2 -0
  257. package/front_end/ui/legacy/components/text_editor/cmdevtools.css +3 -1
  258. package/front_end/ui/legacy/components/text_editor/module.json +0 -3
  259. package/front_end/ui/legacy/components/utils/Linkifier.ts +7 -15
  260. package/front_end/ui/legacy/radioButton.css +1 -13
  261. package/front_end/ui/legacy/textButton.css +5 -4
  262. package/front_end/ui/legacy/themeColors.css +36 -0
  263. package/front_end/ui/legacy/theme_support/theme_support_impl.ts +7 -9
  264. package/front_end/ui/legacy/utils/create-shadow-root-with-core-styles.ts +2 -2
  265. package/front_end/ui/legacy/utils/inject-core-styles.ts +7 -4
  266. package/package.json +1 -1
  267. package/scripts/check_gn.js +0 -35
  268. package/scripts/eslint_rules/lib/es_modules_import.js +15 -8
  269. package/scripts/eslint_rules/tests/es_modules_import_test.js +8 -0
  270. package/front_end/Images/radioDot-dark-theme.png +0 -0
  271. package/front_end/Images/radioDot.png +0 -0
  272. package/front_end/emulated_devices/module.json +0 -6
  273. package/front_end/panels/application/module.json +0 -6
  274. package/front_end/panels/emulation/module.json +0 -11
  275. package/front_end/panels/issues/module.json +0 -6
  276. package/front_end/panels/js_profiler/module.json +0 -5
  277. package/front_end/panels/layer_viewer/module.json +0 -5
  278. package/front_end/panels/layers/module.json +0 -5
  279. package/front_end/panels/media/module.json +0 -5
  280. package/front_end/panels/network/module.json +0 -5
  281. package/front_end/panels/profiler/module.json +0 -5
  282. package/front_end/panels/screencast/module.json +0 -6
  283. package/front_end/panels/security/module.json +0 -5
  284. package/front_end/panels/timeline/module.json +0 -7
  285. package/front_end/third_party/lighthouse/report-assets/report.css +0 -1774
  286. package/front_end/ui/legacy/components/source_frame/SourcesTextEditor.ts +0 -1030
  287. package/front_end/ui/legacy/components/source_frame/messagesPopover.css +0 -32
  288. package/front_end/ui/legacy/components/source_frame/module.json +0 -14
  289. package/front_end/ui/legacy/module.json +0 -41
@@ -7,6 +7,9 @@ import * as Platform from '../../../../core/platform/platform.js';
7
7
  import * as TextUtils from '../../../../models/text_utils/text_utils.js';
8
8
  import * as UI from '../../legacy.js';
9
9
 
10
+ import xmlTreeStyles from './xmlTree.css.legacy.js';
11
+ import xmlViewStyles from './xmlView.css.legacy.js';
12
+
10
13
  const UIStrings = {
11
14
  /**
12
15
  *@description Text to find an item
@@ -25,10 +28,12 @@ export class XMLView extends UI.Widget.Widget implements UI.SearchableView.Searc
25
28
 
26
29
  constructor(parsedXML: Document) {
27
30
  super(true);
28
- this.registerRequiredCSS('ui/legacy/components/source_frame/xmlView.css');
31
+ // eslint-disable-next-line no-restricted-syntax -- Should import styles https://crbug.com/1106746
32
+ this.registerRequiredCSS(xmlViewStyles);
29
33
  this.contentElement.classList.add('shadow-xml-view', 'source-code');
30
34
  this.treeOutline = new UI.TreeOutline.TreeOutlineInShadow();
31
- this.treeOutline.registerRequiredCSS('ui/legacy/components/source_frame/xmlTree.css');
35
+ // eslint-disable-next-line no-restricted-syntax -- Should import styles https://crbug.com/1106746
36
+ this.treeOutline.registerRequiredCSS(xmlTreeStyles);
32
37
  this.contentElement.appendChild(this.treeOutline.element);
33
38
  this.currentSearchFocusIndex = 0;
34
39
  this.currentSearchTreeElements = [];
@@ -39,17 +39,6 @@ SourceFrame.SourceFrame = SourceFrameModule.SourceFrame.SourceFrameImpl;
39
39
  /** @interface */
40
40
  SourceFrame.LineDecorator = SourceFrameModule.SourceFrame.LineDecorator;
41
41
 
42
- /** @constructor */
43
- SourceFrame.SourcesTextEditor = SourceFrameModule.SourcesTextEditor.SourcesTextEditor;
44
-
45
- SourceFrame.SourcesTextEditor.Events = SourceFrameModule.SourcesTextEditor.Events;
46
- SourceFrame.SourcesTextEditor.lineNumbersGutterType = SourceFrameModule.SourcesTextEditor.lineNumbersGutterType;
47
-
48
- /** @interface */
49
- SourceFrame.SourcesTextEditorDelegate = SourceFrameModule.SourcesTextEditor.SourcesTextEditorDelegate;
50
-
51
- SourceFrame.SourcesTextEditor.TokenHighlighter = SourceFrameModule.SourcesTextEditor.TokenHighlighter;
52
-
53
42
  /** @constructor */
54
43
  SourceFrame.XMLView = SourceFrameModule.XMLView.XMLView;
55
44
 
@@ -9,7 +9,6 @@ import * as JSONView from './JSONView.js';
9
9
  import * as PreviewFactory from './PreviewFactory.js';
10
10
  import * as ResourceSourceFrame from './ResourceSourceFrame.js';
11
11
  import * as SourceFrame from './SourceFrame.js';
12
- import * as SourcesTextEditor from './SourcesTextEditor.js';
13
12
  import * as XMLView from './XMLView.js';
14
13
 
15
14
  export {
@@ -20,6 +19,5 @@ export {
20
19
  PreviewFactory,
21
20
  ResourceSourceFrame,
22
21
  SourceFrame,
23
- SourcesTextEditor,
24
22
  XMLView,
25
23
  };
@@ -93,7 +93,9 @@ export class CodeMirrorTextEditor extends
93
93
  super();
94
94
  this.options = options;
95
95
 
96
+ // eslint-disable-next-line no-restricted-syntax -- Should import styles https://crbug.com/1106746
96
97
  this.registerRequiredCSS('third_party/codemirror/codemirror.css');
98
+ // eslint-disable-next-line no-restricted-syntax -- Should import styles https://crbug.com/1106746
97
99
  this.registerRequiredCSS('ui/legacy/components/text_editor/cmdevtools.css');
98
100
 
99
101
  const {indentWithTabs, indentUnit} = CodeMirrorTextEditor.getIndentation(
@@ -152,7 +152,9 @@
152
152
  }
153
153
 
154
154
  .CodeMirror-cursor {
155
- border-left: 1px solid var(--color-background-inverted);
155
+ border-left:
156
+ 1px solid
157
+ var(--color-background-inverted);
156
158
  border-right: none;
157
159
  width: 0;
158
160
  }
@@ -1,7 +1,4 @@
1
1
  {
2
- "dependencies": [
3
- "ui/legacy"
4
- ],
5
2
  "resources": [
6
3
  "../../../../third_party/codemirror/codemirror.css",
7
4
  "autocompleteTooltip.css",
@@ -227,21 +227,13 @@ export class Linkifier implements SDK.TargetManager.Observer {
227
227
  return fallbackAnchor;
228
228
  }
229
229
 
230
- let rawLocation;
231
- if (scriptId) {
232
- rawLocation = debuggerModel.createRawLocationByScriptId(
233
- scriptId, lineNumber || 0, columnNumber, linkifyURLOptions.inlineFrameIndex);
234
- }
235
- // The function createRawLocationByScriptId will always return a raw location. Normally
236
- // we rely on the live location that is created from it to update missing information
237
- // to create the link. If we, however, already have a similar script with the same source url,
238
- // use that one.
239
- if (!rawLocation?.script()) {
240
- rawLocation = debuggerModel.createRawLocationByURL(
241
- sourceURL, lineNumber || 0, columnNumber, linkifyURLOptions.inlineFrameIndex) ||
242
- rawLocation;
243
- }
244
-
230
+ // Prefer createRawLocationByScriptId() here, since it will always produce a correct
231
+ // link, since the script ID is unique. Only fall back to createRawLocationByURL()
232
+ // when all we have is an URL, which is not guaranteed to be unique.
233
+ const rawLocation = scriptId ? debuggerModel.createRawLocationByScriptId(
234
+ scriptId, lineNumber || 0, columnNumber, linkifyURLOptions.inlineFrameIndex) :
235
+ debuggerModel.createRawLocationByURL(
236
+ sourceURL, lineNumber || 0, columnNumber, linkifyURLOptions.inlineFrameIndex);
245
237
  if (!rawLocation) {
246
238
  return fallbackAnchor;
247
239
  }
@@ -5,31 +5,19 @@
5
5
  */
6
6
 
7
7
  ::slotted(input.dt-radio-button) {
8
- --override-radio-dot: var(--image-file-radioDot);
9
-
10
8
  height: 17px;
11
9
  width: 17px;
12
10
  min-width: 17px;
13
- border: 1px solid var(--color-details-hairline);
14
- background-image: linear-gradient(to bottom, var(--color-background-elevation-0), var(--color-background-elevation-1));
15
11
  border-radius: 8px;
16
- appearance: none;
17
12
  vertical-align: middle;
18
13
  margin: 0 5px 5px 0;
19
- }
20
-
21
- ::slotted(input.dt-radio-button:checked) {
22
- background: var(--override-radio-dot) center no-repeat, linear-gradient(to bottom, var(--color-background-elevation-0), var(--color-background-elevation-1));
14
+ accent-color: var(--color-checkbox-accent-color);
23
15
  }
24
16
 
25
17
  ::slotted(input.dt-radio-button:focus) {
26
18
  box-shadow: var(--legacy-focus-ring-active-shadow);
27
19
  }
28
20
 
29
- :host-context(.-theme-with-dark-background) ::slotted(input.dt-radio-button) {
30
- --override-radio-dot: var(--image-file-radioDot-dark-theme);
31
- }
32
-
33
21
  @media (forced-colors: active) {
34
22
  ::slotted(input.dt-radio-button) {
35
23
  --gradient-start: ButtonFace;
@@ -108,8 +108,9 @@
108
108
  .text-button:not(:disabled):focus {
109
109
  forced-color-adjust: none;
110
110
  background-color: ButtonFace;
111
- color: ButtonText;
111
+ color: Highlight !important; /* stylelint-disable-line declaration-no-important */
112
112
  border-color: Highlight;
113
+ outline: 2px solid ButtonText;
113
114
  box-shadow: var(--legacy-focus-ring-active-shadow);
114
115
  }
115
116
 
@@ -117,7 +118,7 @@
117
118
  .text-button:not(:disabled):active {
118
119
  forced-color-adjust: none;
119
120
  background-color: Highlight;
120
- color: HighlightText;
121
+ color: HighlightText !important; /* stylelint-disable-line declaration-no-important */
121
122
  box-shadow: var(--legacy-accent-color);
122
123
  }
123
124
 
@@ -130,14 +131,14 @@
130
131
 
131
132
  .text-button.primary-button:not(:disabled):focus {
132
133
  background-color: Highlight;
133
- color: HighlightText;
134
+ color: HighlightText !important; /* stylelint-disable-line declaration-no-important */
134
135
  border-color: ButtonText;
135
136
  }
136
137
 
137
138
  .text-button.primary-button:not(:disabled):hover,
138
139
  .text-button.primary-button:not(:disabled):active {
139
140
  background-color: HighlightText;
140
- color: Highlight;
141
+ color: Highlight !important; /* stylelint-disable-line declaration-no-important */
141
142
  border-color: Highlight;
142
143
  }
143
144
  }
@@ -163,9 +163,27 @@
163
163
  --color-nonmatching-bracket-background: rgb(255 0 0 / 7%);
164
164
  --color-editor-selection: #cfe8fc;
165
165
  --color-editor-selection-blurred: #e0e0e0;
166
+ --color-trailing-whitespace: rgb(255 0 0 / 5%);
166
167
  --color-selected-option: #fff;
167
168
  --color-selected-option-background: #1a73e8;
168
169
  --color-highlighted-line: rgb(255 255 0 / 50%);
170
+ --color-search-match-border: rgb(128 128 128);
171
+ --color-selected-search-match: var(--color-text-primary);
172
+ --color-selected-search-match-background: rgb(241 234 0);
173
+ --color-coverage-used: #63acbe;
174
+ --color-execution-line-background: rgb(0 59 255 / 10%);
175
+ --color-execution-line-outline: rgb(64 115 244);
176
+ --color-execution-token-background: rgb(15 72 252 / 35%);
177
+ --color-continue-to-location: rgb(5 65 255 / 10%);
178
+ --color-continue-to-location-hover: rgb(15 72 252 / 35%);
179
+ --color-continue-to-location-hover-border: rgb(121 141 254);
180
+ --color-continue-to-location-async: rgb(58 162 8 / 30%);
181
+ --color-continue-to-location-async-hover: rgb(75 179 6 / 55%);
182
+ --color-continue-to-location-async-hover-border: rgb(100 154 100);
183
+ --color-evaluated-expression: rgb(255 255 11 / 25%);
184
+ --color-evaluated-expression-border: rgb(163 41 34);
185
+ --color-variable-values: #ffe3c7;
186
+ --color-non-breakable-line: rgb(128 128 128 / 40%);
169
187
  }
170
188
 
171
189
  .-theme-with-dark-background {
@@ -285,7 +303,25 @@
285
303
  --color-nonmatching-bracket-background: initial;
286
304
  --color-editor-selection: hsl(207deg 88% 22%);
287
305
  --color-editor-selection-blurred: #454545;
306
+ --color-trailing-whitespace: rgb(255 0 0 / 5%);
288
307
  --color-selected-option: #fff;
289
308
  --color-selected-option-background: #0e639c;
290
309
  --color-highlighted-line: hsl(133deg 100% 30% / 50%);
310
+ --color-search-match-border: rgb(128 128 128);
311
+ --color-selected-search-match: #eee;
312
+ --color-selected-search-match-background: hsl(133deg 100% 30%);
313
+ --color-coverage-used: rgb(65 138 156);
314
+ --color-execution-line-background: rgb(0 154 17 / 30%);
315
+ --color-execution-line-outline: #33cc6b;
316
+ --color-execution-token-background: rgb(132 237 78 / 20%);
317
+ --color-continue-to-location: rgb(0 173 56 / 35%);
318
+ --color-continue-to-location-hover: rgb(0 173 56 / 35%);
319
+ --color-continue-to-location-hover-border: #33cc6b;
320
+ --color-continue-to-location-async: rgb(87 238 0 / 20%);
321
+ --color-continue-to-location-async-hover: rgb(128 241 48 / 50%);
322
+ --color-continue-to-location-async-hover-border: rgb(101 155 101);
323
+ --color-evaluated-expression: rgb(71 70 0 / 75%);
324
+ --color-evaluated-expression-border: rgb(221 99 92);
325
+ --color-variable-values: rgb(56 28 0);
326
+ --color-non-breakable-line: rgb(127 127 127 / 40%);
291
327
  }
@@ -35,7 +35,9 @@
35
35
 
36
36
  import * as Common from '../../../core/common/common.js';
37
37
  import * as Platform from '../../../core/platform/platform.js';
38
- import * as Root from '../../../core/root/root.js';
38
+
39
+ import inspectorSyntaxHighlightStyles from '../inspectorSyntaxHighlight.css.legacy.js';
40
+ import inspectorSyntaxHighlightDarkStyles from '../inspectorSyntaxHighlightDark.css.legacy.js';
39
41
 
40
42
  let themeSupportInstance: ThemeSupport;
41
43
 
@@ -112,9 +114,9 @@ export class ThemeSupport {
112
114
 
113
115
  injectHighlightStyleSheets(element: Element|ShadowRoot): void {
114
116
  this.injectingStyleSheet = true;
115
- this.appendStyle(element, 'ui/legacy/inspectorSyntaxHighlight.css');
117
+ this.appendStyle(element, inspectorSyntaxHighlightStyles);
116
118
  if (this.themeNameInternal === 'dark') {
117
- this.appendStyle(element, 'ui/legacy/inspectorSyntaxHighlightDark.css');
119
+ this.appendStyle(element, inspectorSyntaxHighlightDarkStyles);
118
120
  }
119
121
  this.injectingStyleSheet = false;
120
122
  }
@@ -123,13 +125,9 @@ export class ThemeSupport {
123
125
  * Note: this is a duplicate of the function in ui/utils. It exists here
124
126
  * so there is no circular dependency between ui/utils and theme_support.
125
127
  */
126
- private appendStyle(node: Node, cssFile: string): void {
127
- const content = Root.Runtime.cachedResources.get(cssFile) || '';
128
- if (!content) {
129
- console.error(cssFile + ' not preloaded. Check module.json');
130
- }
128
+ private appendStyle(node: Node, {cssContent}: {cssContent: string}): void {
131
129
  const styleElement = document.createElement('style');
132
- styleElement.textContent = content;
130
+ styleElement.textContent = cssContent;
133
131
  node.appendChild(styleElement);
134
132
  }
135
133
 
@@ -7,7 +7,7 @@ import {focusChanged} from './focus-changed.js';
7
7
  import {injectCoreStyles} from './inject-core-styles.js';
8
8
 
9
9
  interface Options {
10
- cssFile?: string|CSSStyleSheet[];
10
+ cssFile?: string|CSSStyleSheet[]|{cssContent: string};
11
11
  delegatesFocus?: boolean;
12
12
  }
13
13
 
@@ -22,7 +22,7 @@ export function createShadowRootWithCoreStyles(element: Element, options: Option
22
22
 
23
23
  const shadowRoot = element.attachShadow({mode: 'open', delegatesFocus});
24
24
  injectCoreStyles(shadowRoot);
25
- if (typeof cssFile === 'string') {
25
+ if (typeof cssFile === 'string' || (cssFile !== undefined && 'cssContent' in cssFile)) {
26
26
  appendStyle(shadowRoot, cssFile);
27
27
  } else if (cssFile) {
28
28
  shadowRoot.adoptedStyleSheets = cssFile;
@@ -2,14 +2,17 @@
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 inspectorCommonStyles from '../inspectorCommon.css.legacy.js';
6
+ import textButtonStyles from '../textButton.css.legacy.js';
5
7
  import * as ThemeSupport from '../theme_support/theme_support.js';
8
+ import themeColorsStyles from '../themeColors.css.legacy.js';
9
+
6
10
  import {appendStyle} from './append-style.js';
7
11
 
8
12
  export function injectCoreStyles(root: Element|ShadowRoot): void {
9
- // TODO: Migrate inspectorCommpon.css last https://crbug.com/1222666
10
- appendStyle(root, 'ui/legacy/inspectorCommon.css');
11
- appendStyle(root, 'ui/legacy/textButton.css');
12
- appendStyle(root, 'ui/legacy/themeColors.css');
13
+ appendStyle(root, inspectorCommonStyles);
14
+ appendStyle(root, textButtonStyles);
15
+ appendStyle(root, themeColorsStyles);
13
16
 
14
17
  ThemeSupport.ThemeSupport.instance().injectHighlightStyleSheets(root);
15
18
  ThemeSupport.ThemeSupport.instance().injectCustomStyleSheets(root);
package/package.json CHANGED
@@ -55,5 +55,5 @@
55
55
  "unittest": "scripts/test/run_unittests.py --no-text-coverage",
56
56
  "watch": "third_party/node/node.py --output scripts/watch_build.js"
57
57
  },
58
- "version": "1.0.941208"
58
+ "version": "1.0.943182"
59
59
  }
@@ -17,40 +17,6 @@ const gnPath = path.resolve(__dirname, '..', 'BUILD.gn');
17
17
  const gnFile = fs.readFileSync(gnPath, 'utf-8');
18
18
  const gnLines = gnFile.split('\n');
19
19
 
20
- /**
21
- * Ensures that generated module files are in the right list in BUILD.gn.
22
- * This is primarily to avoid remote modules from accidentally getting
23
- * bundled with the main Chrome binary.
24
- */
25
- function checkNonAutostartNonRemoteModules() {
26
- const errors = [];
27
- const gnVariable = 'non_autostart_non_remote_modules';
28
- const lines = selectGNLines(`${gnVariable} = [`, ']');
29
- if (!lines.length) {
30
- return [
31
- 'Could not identify non-autostart non-remote modules in gn file',
32
- 'Please look at: ' + __filename,
33
- ];
34
- }
35
- const text = lines.join('\n');
36
- const modules = manifestModules.filter(m => m.type !== 'autostart').map(m => m.name);
37
-
38
- const missingModules = modules.filter(m => !text.includes(`${m}/${path.basename(m)}_module.js`));
39
- if (missingModules.length) {
40
- errors.push(`Check that you've included [${missingModules.join(', ')}] modules in: ` + gnVariable);
41
- }
42
-
43
- // e.g. "lighthouse/lighthouse_module.js" => "lighthouse"
44
- const mapLineToModuleName = line => path.dirname(line.substring(1));
45
-
46
- const extraneousModules = lines.map(mapLineToModuleName).filter(module => !modules.includes(module));
47
- if (extraneousModules.length) {
48
- errors.push(`Found extraneous modules [${extraneousModules.join(', ')}] in: ` + gnVariable);
49
- }
50
-
51
- return errors;
52
- }
53
-
54
20
  /**
55
21
  * Ensures that all source files (according to the various module.json files) are
56
22
  * listed in BUILD.gn.
@@ -139,7 +105,6 @@ function selectGNLines(startLine, endLine, linesToCheck = gnLines) {
139
105
 
140
106
  function main() {
141
107
  const errors = [
142
- ...checkNonAutostartNonRemoteModules(),
143
108
  ...checkAllDevToolsFiles(),
144
109
  ];
145
110
  if (errors.length) {
@@ -90,14 +90,21 @@ function checkStarImport(context, node, importPath, importPathForErrorMessage, i
90
90
  const invalidCrossFolderUsage = !isSameFolder && !isModuleEntrypoint(exportingFileName);
91
91
 
92
92
  if (invalidSameFolderUsage) {
93
- context.report({
94
- node,
95
- message:
96
- 'Incorrect same-namespace import: "{{importPathForErrorMessage}}". Use "import { Symbol } from \'./relative-file.js\';" instead.',
97
- data: {
98
- importPathForErrorMessage,
99
- },
100
- });
93
+ // Meta files import their entrypoints and are considered separate entrypoints.
94
+ // Additionally, any file ending with `-entrypoint.ts` is considered an entrypoint as well.
95
+ // Therefore, they are allowed to import using a same-namespace star-import.
96
+ const importingFileIsEntrypoint =
97
+ importingFileName.endsWith('-entrypoint.ts') || importingFileName.endsWith('-meta.ts');
98
+ if (!importingFileIsEntrypoint) {
99
+ context.report({
100
+ node,
101
+ message:
102
+ 'Incorrect same-namespace import: "{{importPathForErrorMessage}}". Use "import { Symbol } from \'./relative-file.js\';" instead.',
103
+ data: {
104
+ importPathForErrorMessage,
105
+ },
106
+ });
107
+ }
101
108
  }
102
109
 
103
110
  if (invalidCrossFolderUsage) {
@@ -106,6 +106,14 @@ ruleTester.run('es_modules_import', rule, {
106
106
  code: 'import * as ConsoleCounters from \'../console_counters/console_counters.js\';',
107
107
  filename: 'front_end/panels/console/ConsoleView.ts',
108
108
  },
109
+ {
110
+ code: 'import * as Elements from \'./elements.js\';',
111
+ filename: 'front_end/panels/elements/elements-meta.ts',
112
+ },
113
+ {
114
+ code: 'import * as Elements from \'./elements.js\';',
115
+ filename: 'front_end/panels/elements/elements-entrypoint.ts',
116
+ },
109
117
  // Tests are allowed to import from front_end
110
118
  {
111
119
  code: 'import * as UI from \'../../../front_end/ui/ui.js\';',
Binary file
@@ -1,6 +0,0 @@
1
- {
2
- "dependencies": [
3
- "panels/emulation"
4
- ],
5
- "resources": []
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy",
4
- "panels/network"
5
- ]
6
- }
@@ -1,11 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy"
4
- ],
5
- "resources": [
6
- "deviceModeToolbar.css",
7
- "deviceModeView.css",
8
- "inspectedPagePlaceholder.css",
9
- "mediaQueryInspector.css"
10
- ]
11
- }
@@ -1,6 +0,0 @@
1
- {
2
- "dependencies": [
3
- "panels/network",
4
- "ui/legacy"
5
- ]
6
- }
@@ -1,5 +0,0 @@
1
- {
2
- "dependencies": [
3
- "panels/profiler"
4
- ]
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy"
4
- ]
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "dependencies": [
3
- "panels/layer_viewer"
4
- ]
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy"
4
- ]
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy"
4
- ]
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy"
4
- ]
5
- }
@@ -1,6 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy",
4
- "panels/emulation"
5
- ]
6
- }
@@ -1,5 +0,0 @@
1
- {
2
- "dependencies": [
3
- "panels/network"
4
- ]
5
- }
@@ -1,7 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy",
4
- "panels/layer_viewer",
5
- "panels/profiler"
6
- ]
7
- }