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.
- package/.eslintignore +5 -4
- package/AUTHORS +1 -0
- package/config/gni/devtools_grd_files.gni +1 -1
- package/docs/resource_management.md +119 -0
- package/front_end/core/common/ParsedURL.ts +12 -10
- package/front_end/core/host/UserMetrics.ts +2 -1
- package/front_end/core/i18n/locales/en-US.json +2 -2
- package/front_end/core/i18n/locales/en-XL.json +2 -2
- package/front_end/core/protocol_client/InspectorBackend.ts +7 -7
- package/front_end/core/root/Runtime.ts +2 -0
- package/front_end/core/sdk/CSSProperty.ts +22 -110
- package/front_end/core/sdk/DOMModel.ts +2 -2
- package/front_end/core/sdk/DebuggerModel.ts +1 -1
- package/front_end/entrypoints/main/MainImpl.ts +7 -2
- package/front_end/generated/InspectorBackendCommands.js +8 -4
- package/front_end/generated/protocol-mapping.d.ts +12 -1
- package/front_end/generated/protocol-proxy-api.d.ts +11 -1
- package/front_end/generated/protocol-tsconfig.json +2 -2
- package/front_end/generated/protocol.ts +16787 -0
- package/front_end/models/emulation/EmulatedDevices.ts +3 -3
- package/front_end/models/persistence/IsolatedFileSystem.ts +3 -2
- package/front_end/models/persistence/PersistenceActions.ts +2 -2
- package/front_end/models/text_utils/text_utils-legacy.ts +0 -5
- package/front_end/models/text_utils/text_utils.ts +0 -2
- package/front_end/panels/animation/AnimationUI.ts +2 -1
- package/front_end/panels/application/AppManifestView.ts +7 -1
- package/front_end/panels/application/components/BackForwardCacheStrings.ts +1 -1
- package/front_end/panels/application/components/FrameDetailsView.ts +1 -0
- package/front_end/panels/elements/StylePropertyTreeElement.ts +13 -0
- package/front_end/panels/elements/StylesSidebarPane.ts +73 -4
- package/front_end/panels/elements/stylesSectionTree.css +28 -0
- package/front_end/panels/media/PlayerListView.ts +2 -0
- package/front_end/panels/media/playerListView.css +3 -0
- package/front_end/panels/sensors/sensors-meta.ts +2 -2
- package/front_end/panels/sources/NavigatorView.ts +1 -1
- package/front_end/ui/components/diff_view/DiffView.ts +2 -2
- package/front_end/ui/components/docs/icon_button/basic.ts +1 -1
- package/front_end/ui/components/icon_button/IconButton.ts +1 -1
- package/front_end/ui/components/text_editor/TextEditor.ts +8 -1
- package/front_end/ui/components/text_editor/config.ts +3 -2
- package/front_end/ui/legacy/GlassPane.ts +2 -0
- package/front_end/ui/legacy/UIUtils.ts +1 -1
- package/front_end/ui/legacy/softDropDownButton.css +2 -0
- package/front_end/ui/legacy/themeColors.css +2 -0
- package/front_end/ui/legacy/toolbar.css +6 -0
- package/package.json +1 -1
- package/scripts/build/ninja/devtools_entrypoint.gni +25 -17
- package/scripts/devtools_paths.js +3 -2
- package/scripts/devtools_paths.py +4 -0
- package/scripts/protocol_typescript/protocol_dts_generator.ts +4 -9
- package/scripts/whitespaces.txt +1 -0
- package/front_end/generated/protocol.d.ts +0 -16771
- 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 = (
|
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.
|
447
|
-
const protocolModuleName = path.basename(destProtocolFilePath, '.
|
448
|
-
emitModule(
|
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');
|
package/scripts/whitespaces.txt
CHANGED