chrome-devtools-frontend 1.0.961797 → 1.0.963960

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 (53) hide show
  1. package/.eslintignore +5 -4
  2. package/AUTHORS +1 -0
  3. package/config/gni/devtools_grd_files.gni +1 -1
  4. package/docs/resource_management.md +119 -0
  5. package/front_end/core/common/ParsedURL.ts +12 -10
  6. package/front_end/core/host/UserMetrics.ts +2 -1
  7. package/front_end/core/i18n/locales/en-US.json +2 -2
  8. package/front_end/core/i18n/locales/en-XL.json +2 -2
  9. package/front_end/core/protocol_client/InspectorBackend.ts +7 -7
  10. package/front_end/core/root/Runtime.ts +2 -0
  11. package/front_end/core/sdk/CSSProperty.ts +22 -110
  12. package/front_end/core/sdk/DOMModel.ts +2 -2
  13. package/front_end/core/sdk/DebuggerModel.ts +1 -1
  14. package/front_end/entrypoints/main/MainImpl.ts +7 -2
  15. package/front_end/generated/InspectorBackendCommands.js +8 -4
  16. package/front_end/generated/protocol-mapping.d.ts +12 -1
  17. package/front_end/generated/protocol-proxy-api.d.ts +11 -1
  18. package/front_end/generated/protocol-tsconfig.json +2 -2
  19. package/front_end/generated/protocol.ts +16787 -0
  20. package/front_end/models/emulation/EmulatedDevices.ts +3 -3
  21. package/front_end/models/persistence/IsolatedFileSystem.ts +3 -2
  22. package/front_end/models/persistence/PersistenceActions.ts +2 -2
  23. package/front_end/models/text_utils/text_utils-legacy.ts +0 -5
  24. package/front_end/models/text_utils/text_utils.ts +0 -2
  25. package/front_end/panels/animation/AnimationUI.ts +2 -1
  26. package/front_end/panels/application/AppManifestView.ts +7 -1
  27. package/front_end/panels/application/components/BackForwardCacheStrings.ts +1 -1
  28. package/front_end/panels/application/components/FrameDetailsView.ts +1 -0
  29. package/front_end/panels/elements/StylePropertyTreeElement.ts +13 -0
  30. package/front_end/panels/elements/StylesSidebarPane.ts +73 -4
  31. package/front_end/panels/elements/stylesSectionTree.css +28 -0
  32. package/front_end/panels/media/PlayerListView.ts +2 -0
  33. package/front_end/panels/media/playerListView.css +3 -0
  34. package/front_end/panels/sensors/sensors-meta.ts +2 -2
  35. package/front_end/panels/sources/NavigatorView.ts +1 -1
  36. package/front_end/ui/components/diff_view/DiffView.ts +2 -2
  37. package/front_end/ui/components/docs/icon_button/basic.ts +1 -1
  38. package/front_end/ui/components/icon_button/IconButton.ts +1 -1
  39. package/front_end/ui/components/text_editor/TextEditor.ts +8 -1
  40. package/front_end/ui/components/text_editor/config.ts +3 -2
  41. package/front_end/ui/legacy/GlassPane.ts +2 -0
  42. package/front_end/ui/legacy/UIUtils.ts +1 -1
  43. package/front_end/ui/legacy/softDropDownButton.css +2 -0
  44. package/front_end/ui/legacy/themeColors.css +2 -0
  45. package/front_end/ui/legacy/toolbar.css +6 -0
  46. package/package.json +1 -1
  47. package/scripts/build/ninja/devtools_entrypoint.gni +25 -17
  48. package/scripts/devtools_paths.js +3 -2
  49. package/scripts/devtools_paths.py +4 -0
  50. package/scripts/protocol_typescript/protocol_dts_generator.ts +4 -9
  51. package/scripts/whitespaces.txt +1 -0
  52. package/front_end/generated/protocol.d.ts +0 -16771
  53. package/front_end/models/text_utils/CodeMirrorUtils.ts +0 -77
@@ -62,15 +62,10 @@ const emitHeaderComments = () => {
62
62
  emitLine();
63
63
  };
64
64
 
65
- const emitModule = (moduleName: string, domains: Protocol.Domain[]) => {
66
- moduleName = toTitleCase(moduleName);
65
+ const emitModule = (domains: Protocol.Domain[]) => {
67
66
  emitHeaderComments();
68
- emitOpenBlock(`declare namespace ${moduleName}`);
69
67
  emitGlobalTypeDefs();
70
68
  domains.forEach(emitDomain);
71
- emitCloseBlock();
72
- emitLine();
73
- emitLine('export = Protocol;');
74
69
  };
75
70
 
76
71
  const emitGlobalTypeDefs = () => {
@@ -443,9 +438,9 @@ const flushEmitToFile = (path: string) => {
443
438
  const main = () => {
444
439
  const FRONTEND_GENERATED_DIR = path.resolve(__dirname, path.join('../../front_end/generated'));
445
440
 
446
- const destProtocolFilePath = path.join(FRONTEND_GENERATED_DIR, 'protocol.d.ts');
447
- const protocolModuleName = path.basename(destProtocolFilePath, '.d.ts');
448
- emitModule(protocolModuleName, protocolDomains);
441
+ const destProtocolFilePath = path.join(FRONTEND_GENERATED_DIR, 'protocol.ts');
442
+ const protocolModuleName = path.basename(destProtocolFilePath, '.ts');
443
+ emitModule(protocolDomains);
449
444
  flushEmitToFile(destProtocolFilePath);
450
445
 
451
446
  const destMappingFilePath = path.join(FRONTEND_GENERATED_DIR, 'protocol-mapping.d.ts');
@@ -8,3 +8,4 @@ Surma was here.
8
8
  .
9
9
  .
10
10
  Today's answer to life the universe and everything is 161!
11
+ No good text, but numbers ... 2!