chrome-devtools-frontend 1.0.923319 → 1.0.923788
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/front_end/core/common/EventTarget.ts +7 -13
- package/front_end/core/common/Object.ts +5 -9
- package/front_end/core/common/Settings.ts +12 -9
- package/front_end/core/sdk/RuntimeModel.ts +1 -1
- package/front_end/core/sdk/SourceMap.ts +74 -31
- package/front_end/core/sdk/TargetManager.ts +7 -7
- package/front_end/models/bindings/CompilerScriptMapping.ts +24 -6
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +30 -30
- package/front_end/models/extensions/ExtensionServer.ts +10 -13
- package/front_end/models/workspace/WorkspaceImpl.ts +1 -1
- package/front_end/models/workspace_diff/WorkspaceDiff.ts +24 -20
- package/front_end/panels/application/ApplicationPanelSidebar.ts +14 -19
- package/front_end/panels/application/DatabaseModel.ts +6 -1
- package/front_end/panels/application/IndexedDBModel.ts +9 -1
- package/front_end/panels/console/ConsolePinPane.ts +1 -2
- package/front_end/panels/coverage/CoverageModel.ts +9 -3
- package/front_end/panels/media/PlayerMessagesView.ts +2 -4
- package/front_end/panels/profiler/HeapProfileView.ts +12 -2
- package/front_end/panels/profiler/HeapSnapshotView.ts +52 -20
- package/front_end/panels/profiler/ProfileHeader.ts +11 -2
- package/front_end/panels/profiler/ProfilesPanel.ts +7 -6
- package/front_end/panels/timeline/TimelineUIUtils.ts +1 -2
- package/front_end/panels/web_audio/WebAudioModel.ts +19 -1
- package/front_end/panels/web_audio/WebAudioView.ts +25 -19
- package/front_end/third_party/puppeteer/README.chromium +1 -1
- package/front_end/third_party/puppeteer/package/CHANGELOG.md +66 -0
- package/front_end/third_party/puppeteer/package/README.md +34 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js +5 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +18 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js +8 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts +22 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js +14 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js +10 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.js +120 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DeviceDescriptors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EvalTypes.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EvalTypes.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +62 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +131 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts +40 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js +76 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +53 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +82 -13
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +14 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts +1053 -29
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +1114 -22
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js +17 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.js +6 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/assert.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.d.ts +21 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js +47 -28
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/global.d.ts +17 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/global.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/global.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/global.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js +9 -10
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +5 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts +10 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js +83 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.js +7 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js +17 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +5 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +18 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +8 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts +22 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js +14 -7
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js +10 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js +120 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +62 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +131 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +40 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js +76 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +53 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +82 -13
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +14 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts +1053 -29
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +1115 -23
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.js +17 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.js +4 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts +21 -5
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +32 -13
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/global.d.ts +17 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/global.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/global.js +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/global.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +9 -10
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +5 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +10 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +83 -6
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js +7 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js +17 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +1382 -19726
- package/front_end/third_party/puppeteer/package/package.json +9 -6
- package/front_end/third_party/wasmparser/README.chromium +2 -2
- package/front_end/third_party/wasmparser/package/CHANGELOG.md +13 -0
- package/front_end/third_party/wasmparser/package/dist/cjs/WasmDis.js +50 -10
- package/front_end/third_party/wasmparser/package/dist/cjs/WasmDis.js.map +1 -1
- package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.d.ts +21 -4
- package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.js +76 -8
- package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.js.map +1 -1
- package/front_end/third_party/wasmparser/package/dist/esm/WasmDis.js +50 -10
- package/front_end/third_party/wasmparser/package/dist/esm/WasmDis.js.map +1 -1
- package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.d.ts +21 -4
- package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js +76 -8
- package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js.map +1 -1
- package/front_end/third_party/wasmparser/package/package.json +1 -1
- package/front_end/third_party/wasmparser/package/src/WasmDis.ts +47 -10
- package/front_end/third_party/wasmparser/package/src/WasmParser.ts +75 -5
- package/front_end/ui/components/icon_button/iconButton.css +4 -0
- package/front_end/ui/legacy/GlassPane.ts +1 -3
- package/front_end/ui/legacy/UIUtils.ts +2 -3
- package/front_end/ui/legacy/components/perf_ui/OverviewGrid.ts +3 -3
- package/front_end/ui/legacy/reportView.css +1 -0
- package/package.json +1 -1
- package/scripts/build/rollup.config.js +0 -5
|
@@ -561,8 +561,7 @@ export class ApplicationPanelSidebar extends UI.Widget.VBox implements SDK.Targe
|
|
|
561
561
|
this.addCookieDocument(frame);
|
|
562
562
|
}
|
|
563
563
|
|
|
564
|
-
private databaseAdded(
|
|
565
|
-
const database = (event.data as DatabaseModelDatabase);
|
|
564
|
+
private databaseAdded({data: database}: Common.EventTarget.EventTargetEvent<DatabaseModelDatabase>): void {
|
|
566
565
|
const databaseTreeElement = new DatabaseTreeElement(this, database);
|
|
567
566
|
this.databaseTreeElements.set(database, databaseTreeElement);
|
|
568
567
|
this.databasesListTreeElement.appendChild(databaseTreeElement);
|
|
@@ -1113,9 +1112,9 @@ export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement
|
|
|
1113
1112
|
}
|
|
1114
1113
|
}
|
|
1115
1114
|
|
|
1116
|
-
private indexedDBAdded(
|
|
1117
|
-
|
|
1118
|
-
|
|
1115
|
+
private indexedDBAdded({
|
|
1116
|
+
data: {databaseId, model},
|
|
1117
|
+
}: Common.EventTarget.EventTargetEvent<{databaseId: DatabaseId, model: IndexedDBModel}>): void {
|
|
1119
1118
|
this.addIndexedDB(model, databaseId);
|
|
1120
1119
|
}
|
|
1121
1120
|
|
|
@@ -1126,10 +1125,9 @@ export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement
|
|
|
1126
1125
|
model.refreshDatabase(databaseId);
|
|
1127
1126
|
}
|
|
1128
1127
|
|
|
1129
|
-
private indexedDBRemoved(
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1128
|
+
private indexedDBRemoved({
|
|
1129
|
+
data: {databaseId, model},
|
|
1130
|
+
}: Common.EventTarget.EventTargetEvent<{databaseId: DatabaseId, model: IndexedDBModel}>): void {
|
|
1133
1131
|
const idbDatabaseTreeElement = this.idbDatabaseTreeElement(model, databaseId);
|
|
1134
1132
|
if (!idbDatabaseTreeElement) {
|
|
1135
1133
|
return;
|
|
@@ -1144,11 +1142,9 @@ export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement
|
|
|
1144
1142
|
this.setExpandable(this.childCount() > 0);
|
|
1145
1143
|
}
|
|
1146
1144
|
|
|
1147
|
-
private indexedDBLoaded(
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
const entriesUpdated = (event.data.entriesUpdated as boolean);
|
|
1151
|
-
|
|
1145
|
+
private indexedDBLoaded(
|
|
1146
|
+
{data: {database, model, entriesUpdated}}: Common.EventTarget
|
|
1147
|
+
.EventTargetEvent<{database: IndexedDBModelDatabase, model: IndexedDBModel, entriesUpdated: boolean}>): void {
|
|
1152
1148
|
const idbDatabaseTreeElement = this.idbDatabaseTreeElement(model, database.databaseId);
|
|
1153
1149
|
if (!idbDatabaseTreeElement) {
|
|
1154
1150
|
return;
|
|
@@ -1161,11 +1157,10 @@ export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement
|
|
|
1161
1157
|
// For sniffing in tests.
|
|
1162
1158
|
}
|
|
1163
1159
|
|
|
1164
|
-
private indexedDBContentUpdated(
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1160
|
+
private indexedDBContentUpdated({
|
|
1161
|
+
data: {databaseId, objectStoreName, model},
|
|
1162
|
+
}: Common.EventTarget.EventTargetEvent<{databaseId: DatabaseId, objectStoreName: string, model: IndexedDBModel}>):
|
|
1163
|
+
void {
|
|
1169
1164
|
const idbDatabaseTreeElement = this.idbDatabaseTreeElement(model, databaseId);
|
|
1170
1165
|
if (!idbDatabaseTreeElement) {
|
|
1171
1166
|
return;
|
|
@@ -125,7 +125,7 @@ export class Database {
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
export class DatabaseModel extends SDK.SDKModel.SDKModel {
|
|
128
|
+
export class DatabaseModel extends SDK.SDKModel.SDKModel<EventTypes> {
|
|
129
129
|
private databasesInternal: Database[];
|
|
130
130
|
readonly agent: ProtocolProxyApi.DatabaseApi;
|
|
131
131
|
private enabled?: boolean;
|
|
@@ -178,6 +178,11 @@ export enum Events {
|
|
|
178
178
|
DatabasesRemoved = 'DatabasesRemoved',
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
+
export type EventTypes = {
|
|
182
|
+
[Events.DatabaseAdded]: Database,
|
|
183
|
+
[Events.DatabasesRemoved]: void,
|
|
184
|
+
};
|
|
185
|
+
|
|
181
186
|
export class DatabaseDispatcher implements ProtocolProxyApi.DatabaseDispatcher {
|
|
182
187
|
private readonly model: DatabaseModel;
|
|
183
188
|
constructor(model: DatabaseModel) {
|
|
@@ -33,7 +33,7 @@ import * as SDK from '../../core/sdk/sdk.js';
|
|
|
33
33
|
import * as Protocol from '../../generated/protocol.js';
|
|
34
34
|
import type * as ProtocolProxyApi from '../../generated/protocol-proxy-api.js';
|
|
35
35
|
|
|
36
|
-
export class IndexedDBModel extends SDK.SDKModel.SDKModel implements ProtocolProxyApi.StorageDispatcher {
|
|
36
|
+
export class IndexedDBModel extends SDK.SDKModel.SDKModel<EventTypes> implements ProtocolProxyApi.StorageDispatcher {
|
|
37
37
|
private readonly securityOriginManager: SDK.SecurityOriginManager.SecurityOriginManager|null;
|
|
38
38
|
private readonly indexedDBAgent: ProtocolProxyApi.IndexedDBApi;
|
|
39
39
|
private readonly storageAgent: ProtocolProxyApi.StorageApi;
|
|
@@ -424,6 +424,14 @@ export enum Events {
|
|
|
424
424
|
IndexedDBContentUpdated = 'IndexedDBContentUpdated',
|
|
425
425
|
}
|
|
426
426
|
|
|
427
|
+
export type EventTypes = {
|
|
428
|
+
[Events.DatabaseAdded]: {model: IndexedDBModel, databaseId: DatabaseId},
|
|
429
|
+
[Events.DatabaseRemoved]: {model: IndexedDBModel, databaseId: DatabaseId},
|
|
430
|
+
[Events.DatabaseLoaded]: {model: IndexedDBModel, database: Database, entriesUpdated: boolean},
|
|
431
|
+
[Events.DatabaseNamesRefreshed]: void,
|
|
432
|
+
[Events.IndexedDBContentUpdated]: {model: IndexedDBModel, databaseId: DatabaseId, objectStoreName: string},
|
|
433
|
+
};
|
|
434
|
+
|
|
427
435
|
export class Entry {
|
|
428
436
|
key: SDK.RemoteObject.RemoteObject;
|
|
429
437
|
primaryKey: SDK.RemoteObject.RemoteObject;
|
|
@@ -168,7 +168,7 @@ export class ConsolePinPane extends UI.ThrottledWidget.ThrottledWidget {
|
|
|
168
168
|
|
|
169
169
|
let consolePinNumber = 0;
|
|
170
170
|
|
|
171
|
-
export class ConsolePin
|
|
171
|
+
export class ConsolePin {
|
|
172
172
|
private readonly pinElement: Element;
|
|
173
173
|
private readonly pinPreview: HTMLElement;
|
|
174
174
|
private lastResult: SDK.RuntimeModel.EvaluationResult|null;
|
|
@@ -181,7 +181,6 @@ export class ConsolePin extends Common.ObjectWrapper.ObjectWrapper {
|
|
|
181
181
|
private consolePinNumber: number;
|
|
182
182
|
|
|
183
183
|
constructor(expression: string, pinPane: ConsolePinPane) {
|
|
184
|
-
super();
|
|
185
184
|
this.consolePinNumber = ++consolePinNumber;
|
|
186
185
|
const deletePinIcon = (document.createElement('div', {is: 'dt-close-button'}) as UI.UIUtils.DevToolsCloseButton);
|
|
187
186
|
deletePinIcon.gray = true;
|
|
@@ -494,7 +494,7 @@ function locationCompare(a: string, b: string): number {
|
|
|
494
494
|
Number.parseInt(aPos, 10) - Number.parseInt(bPos, 10);
|
|
495
495
|
}
|
|
496
496
|
|
|
497
|
-
export class URLCoverageInfo extends Common.ObjectWrapper.ObjectWrapper {
|
|
497
|
+
export class URLCoverageInfo extends Common.ObjectWrapper.ObjectWrapper<URLCoverageInfo.EventTypes> {
|
|
498
498
|
private readonly urlInternal: string;
|
|
499
499
|
private coverageInfoByLocation: Map<string, CoverageInfo>;
|
|
500
500
|
private sizeInternal: number;
|
|
@@ -673,8 +673,14 @@ export class URLCoverageInfo extends Common.ObjectWrapper.ObjectWrapper {
|
|
|
673
673
|
}
|
|
674
674
|
|
|
675
675
|
export namespace URLCoverageInfo {
|
|
676
|
-
|
|
677
|
-
|
|
676
|
+
// TODO(crbug.com/1167717): Make this a const enum again
|
|
677
|
+
// eslint-disable-next-line rulesdir/const_enum
|
|
678
|
+
export enum Events {
|
|
679
|
+
SizesChanged = 'SizesChanged',
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
export type EventTypes = {
|
|
683
|
+
[Events.SizesChanged]: void,
|
|
678
684
|
};
|
|
679
685
|
}
|
|
680
686
|
|
|
@@ -2,7 +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 * as Common from '../../core/common/common.js';
|
|
5
|
+
import type * as Common from '../../core/common/common.js';
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
7
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
8
8
|
|
|
@@ -70,8 +70,7 @@ interface SelectableLevel {
|
|
|
70
70
|
overwrite?: boolean;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
class MessageLevelSelector
|
|
74
|
-
UI.SoftDropDown.Delegate<SelectableLevel> {
|
|
73
|
+
class MessageLevelSelector implements UI.SoftDropDown.Delegate<SelectableLevel> {
|
|
75
74
|
private readonly items: UI.ListModel.ListModel<SelectableLevel>;
|
|
76
75
|
private readonly view: PlayerMessagesView;
|
|
77
76
|
private readonly itemMap: Map<number, SelectableLevel>;
|
|
@@ -84,7 +83,6 @@ class MessageLevelSelector extends Common.ObjectWrapper.ObjectWrapper implements
|
|
|
84
83
|
elementsForItems: WeakMap<SelectableLevel, HTMLElement>;
|
|
85
84
|
|
|
86
85
|
constructor(items: UI.ListModel.ListModel<SelectableLevel>, view: PlayerMessagesView) {
|
|
87
|
-
super();
|
|
88
86
|
this.items = items;
|
|
89
87
|
this.view = view;
|
|
90
88
|
this.itemMap = new Map();
|
|
@@ -123,7 +123,7 @@ function convertToSamplingHeapProfile(profileHeader: SamplingHeapProfileHeader):
|
|
|
123
123
|
|
|
124
124
|
export class HeapProfileView extends ProfileView implements UI.SearchableView.Searchable {
|
|
125
125
|
profileHeader: SamplingHeapProfileHeader;
|
|
126
|
-
readonly profileType:
|
|
126
|
+
readonly profileType: SamplingHeapProfileTypeBase;
|
|
127
127
|
adjustedTotal: number;
|
|
128
128
|
readonly selectedSizeText: UI.Toolbar.ToolbarText;
|
|
129
129
|
timestamps: number[];
|
|
@@ -243,7 +243,8 @@ export class HeapProfileView extends ProfileView implements UI.SearchableView.Se
|
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
export class SamplingHeapProfileTypeBase extends
|
|
246
|
+
export class SamplingHeapProfileTypeBase extends
|
|
247
|
+
Common.ObjectWrapper.eventMixin<SamplingHeapProfileType.EventTypes, typeof ProfileType>(ProfileType) {
|
|
247
248
|
recording: boolean;
|
|
248
249
|
clearedDuringRecording: boolean;
|
|
249
250
|
|
|
@@ -445,6 +446,11 @@ export namespace SamplingHeapProfileType {
|
|
|
445
446
|
RecordingStopped = 'RecordingStopped',
|
|
446
447
|
StatsUpdate = 'StatsUpdate',
|
|
447
448
|
}
|
|
449
|
+
|
|
450
|
+
export type EventTypes = {
|
|
451
|
+
[Events.RecordingStopped]: void,
|
|
452
|
+
[Events.StatsUpdate]: Protocol.HeapProfiler.SamplingHeapProfile|null,
|
|
453
|
+
};
|
|
448
454
|
}
|
|
449
455
|
|
|
450
456
|
export class SamplingHeapProfileHeader extends WritableProfileHeader {
|
|
@@ -505,6 +511,10 @@ export class SamplingHeapProfileHeader extends WritableProfileHeader {
|
|
|
505
511
|
heapProfilerModel(): SDK.HeapProfilerModel.HeapProfilerModel|null {
|
|
506
512
|
return this.heapProfilerModelInternal;
|
|
507
513
|
}
|
|
514
|
+
|
|
515
|
+
override profileType(): SamplingHeapProfileTypeBase {
|
|
516
|
+
return super.profileType() as SamplingHeapProfileTypeBase;
|
|
517
|
+
}
|
|
508
518
|
}
|
|
509
519
|
|
|
510
520
|
export class SamplingHeapProfileNode extends SDK.ProfileTreeModel.ProfileNode {
|
|
@@ -306,7 +306,7 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
|
|
|
306
306
|
this.linkifier = new Components.Linkifier.Linkifier();
|
|
307
307
|
const profileType = profile.profileType();
|
|
308
308
|
|
|
309
|
-
profileType.addEventListener(
|
|
309
|
+
profileType.addEventListener(HeapSnapshotProfileTypeEvents.SnapshotReceived, this.onReceiveSnapshot, this);
|
|
310
310
|
profileType.addEventListener(ProfileTypeEvents.RemoveProfileHeader, this.onProfileHeaderRemoved, this);
|
|
311
311
|
|
|
312
312
|
const isHeapTimeline = profileType.id === TrackingHeapSnapshotProfileType.TypeId;
|
|
@@ -444,26 +444,27 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
|
|
|
444
444
|
this.trackingOverviewGrid = new HeapTimelineOverview();
|
|
445
445
|
this.trackingOverviewGrid.addEventListener(Events.IdsRangeChanged, this.onIdsRangeChanged.bind(this));
|
|
446
446
|
if (!this.profile.fromFile() && profileType.profileBeingRecorded() === this.profile) {
|
|
447
|
-
profileType
|
|
448
|
-
|
|
447
|
+
(profileType as TrackingHeapSnapshotProfileType)
|
|
448
|
+
.addEventListener(TrackingHeapSnapshotProfileTypeEvents.HeapStatsUpdate, this.onHeapStatsUpdate, this);
|
|
449
|
+
(profileType as TrackingHeapSnapshotProfileType)
|
|
450
|
+
.addEventListener(TrackingHeapSnapshotProfileTypeEvents.TrackingStopped, this.onStopTracking, this);
|
|
449
451
|
this.trackingOverviewGrid.start();
|
|
450
452
|
}
|
|
451
453
|
}
|
|
452
454
|
|
|
453
455
|
onStopTracking(): void {
|
|
454
|
-
this.profile.profileType()
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
456
|
+
const profileType = this.profile.profileType() as TrackingHeapSnapshotProfileType;
|
|
457
|
+
profileType.removeEventListener(
|
|
458
|
+
TrackingHeapSnapshotProfileTypeEvents.HeapStatsUpdate, this.onHeapStatsUpdate, this);
|
|
459
|
+
profileType.removeEventListener(TrackingHeapSnapshotProfileTypeEvents.TrackingStopped, this.onStopTracking, this);
|
|
458
460
|
if (this.trackingOverviewGrid) {
|
|
459
461
|
this.trackingOverviewGrid.stop();
|
|
460
462
|
}
|
|
461
463
|
}
|
|
462
464
|
|
|
463
|
-
onHeapStatsUpdate(
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
this.trackingOverviewGrid.setSamples(event.data);
|
|
465
|
+
onHeapStatsUpdate({data: samples}: Common.EventTarget.EventTargetEvent<Samples>): void {
|
|
466
|
+
if (this.trackingOverviewGrid) {
|
|
467
|
+
this.trackingOverviewGrid.setSamples(samples);
|
|
467
468
|
}
|
|
468
469
|
}
|
|
469
470
|
|
|
@@ -964,14 +965,14 @@ export class HeapSnapshotView extends UI.View.SimpleView implements DataDisplayD
|
|
|
964
965
|
profile.addEventListener(ProfileHeaderEvents.ProfileTitleChanged, this.updateControls, this);
|
|
965
966
|
}
|
|
966
967
|
|
|
967
|
-
onProfileHeaderRemoved(event: Common.EventTarget.EventTargetEvent): void {
|
|
968
|
+
onProfileHeaderRemoved(event: Common.EventTarget.EventTargetEvent<ProfileHeader>): void {
|
|
968
969
|
const profile = event.data;
|
|
969
970
|
profile.removeEventListener(ProfileHeaderEvents.ProfileTitleChanged, this.updateControls, this);
|
|
970
971
|
|
|
971
972
|
if (this.profile === profile) {
|
|
972
973
|
this.detach();
|
|
973
974
|
this.profile.profileType().removeEventListener(
|
|
974
|
-
|
|
975
|
+
HeapSnapshotProfileTypeEvents.SnapshotReceived, this.onReceiveSnapshot, this);
|
|
975
976
|
this.profile.profileType().removeEventListener(
|
|
976
977
|
ProfileTypeEvents.RemoveProfileHeader, this.onProfileHeaderRemoved, this);
|
|
977
978
|
this.dispose();
|
|
@@ -1165,8 +1166,9 @@ export class StatisticsPerspective extends Perspective {
|
|
|
1165
1166
|
}
|
|
1166
1167
|
}
|
|
1167
1168
|
|
|
1168
|
-
export class HeapSnapshotProfileType extends
|
|
1169
|
-
|
|
1169
|
+
export class HeapSnapshotProfileType extends
|
|
1170
|
+
Common.ObjectWrapper.eventMixin<HeapSnapshotProfileTypeEventTypes, typeof ProfileType>(ProfileType)
|
|
1171
|
+
implements SDK.TargetManager.SDKModelObserver<SDK.HeapProfilerModel.HeapProfilerModel> {
|
|
1170
1172
|
readonly treatGlobalObjectsAsRoots: Common.Settings.Setting<boolean>;
|
|
1171
1173
|
readonly captureNumericValue: Common.Settings.Setting<boolean>;
|
|
1172
1174
|
customContentInternal: HTMLElement|null;
|
|
@@ -1316,16 +1318,27 @@ export class HeapSnapshotProfileType extends ProfileType implements
|
|
|
1316
1318
|
if (this.profileBeingRecorded() === profile) {
|
|
1317
1319
|
this.setProfileBeingRecorded(null);
|
|
1318
1320
|
}
|
|
1319
|
-
this.dispatchEventToListeners(
|
|
1321
|
+
this.dispatchEventToListeners(HeapSnapshotProfileTypeEvents.SnapshotReceived, profile);
|
|
1320
1322
|
}
|
|
1321
1323
|
|
|
1322
1324
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1323
1325
|
static readonly TypeId: string = 'HEAP';
|
|
1326
|
+
// TODO(crbug.com/1228674): Remove event string once its no longer used in web tests.
|
|
1324
1327
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1325
1328
|
static readonly SnapshotReceived = 'SnapshotReceived';
|
|
1326
1329
|
}
|
|
1327
1330
|
|
|
1328
|
-
export
|
|
1331
|
+
export const enum HeapSnapshotProfileTypeEvents {
|
|
1332
|
+
SnapshotReceived = 'SnapshotReceived',
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
export type HeapSnapshotProfileTypeEventTypes = {
|
|
1336
|
+
[HeapSnapshotProfileTypeEvents.SnapshotReceived]: ProfileHeader,
|
|
1337
|
+
};
|
|
1338
|
+
|
|
1339
|
+
export class TrackingHeapSnapshotProfileType extends
|
|
1340
|
+
Common.ObjectWrapper.eventMixin<TrackingHeapSnapshotProfileTypeEventTypes, typeof HeapSnapshotProfileType>(
|
|
1341
|
+
HeapSnapshotProfileType) {
|
|
1329
1342
|
readonly recordAllocationStacksSettingInternal: Common.Settings.Setting<boolean>;
|
|
1330
1343
|
customContentInternal: UI.UIUtils.CheckboxLabel|null;
|
|
1331
1344
|
recording: boolean;
|
|
@@ -1383,7 +1396,9 @@ export class TrackingHeapSnapshotProfileType extends HeapSnapshotProfileType {
|
|
|
1383
1396
|
if (profileSamples.totalTime < timestamp - profileSamples.timestamps[0]) {
|
|
1384
1397
|
profileSamples.totalTime *= 2;
|
|
1385
1398
|
}
|
|
1386
|
-
|
|
1399
|
+
if (this.profileSamples) {
|
|
1400
|
+
this.dispatchEventToListeners(TrackingHeapSnapshotProfileTypeEvents.HeapStatsUpdate, this.profileSamples);
|
|
1401
|
+
}
|
|
1387
1402
|
const profile = this.profileBeingRecorded();
|
|
1388
1403
|
if (profile) {
|
|
1389
1404
|
profile.updateStatus(null, true);
|
|
@@ -1448,7 +1463,7 @@ export class TrackingHeapSnapshotProfileType extends HeapSnapshotProfileType {
|
|
|
1448
1463
|
this.recording = true;
|
|
1449
1464
|
this.addProfile((this.profileBeingRecorded() as ProfileHeader));
|
|
1450
1465
|
(this.profileBeingRecorded() as HeapProfileHeader).updateStatus(i18nString(UIStrings.recording));
|
|
1451
|
-
this.dispatchEventToListeners(
|
|
1466
|
+
this.dispatchEventToListeners(TrackingHeapSnapshotProfileTypeEvents.TrackingStarted);
|
|
1452
1467
|
return heapProfilerModel;
|
|
1453
1468
|
}
|
|
1454
1469
|
|
|
@@ -1458,7 +1473,7 @@ export class TrackingHeapSnapshotProfileType extends HeapSnapshotProfileType {
|
|
|
1458
1473
|
const stopPromise =
|
|
1459
1474
|
(profile.heapProfilerModel() as SDK.HeapProfilerModel.HeapProfilerModel).stopTrackingHeapObjects(true);
|
|
1460
1475
|
this.recording = false;
|
|
1461
|
-
this.dispatchEventToListeners(
|
|
1476
|
+
this.dispatchEventToListeners(TrackingHeapSnapshotProfileTypeEvents.TrackingStopped);
|
|
1462
1477
|
await stopPromise;
|
|
1463
1478
|
profile = (this.profileBeingRecorded() as HeapProfileHeader);
|
|
1464
1479
|
if (!profile) {
|
|
@@ -1509,6 +1524,7 @@ export class TrackingHeapSnapshotProfileType extends HeapSnapshotProfileType {
|
|
|
1509
1524
|
|
|
1510
1525
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1511
1526
|
static readonly TypeId = 'HEAP-RECORD';
|
|
1527
|
+
// TODO(crbug.com/1228674): Remove event strings once they are no longer used in web tests.
|
|
1512
1528
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1513
1529
|
static readonly HeapStatsUpdate = 'HeapStatsUpdate';
|
|
1514
1530
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -1517,6 +1533,18 @@ export class TrackingHeapSnapshotProfileType extends HeapSnapshotProfileType {
|
|
|
1517
1533
|
static readonly TrackingStopped = 'TrackingStopped';
|
|
1518
1534
|
}
|
|
1519
1535
|
|
|
1536
|
+
export const enum TrackingHeapSnapshotProfileTypeEvents {
|
|
1537
|
+
HeapStatsUpdate = 'HeapStatsUpdate',
|
|
1538
|
+
TrackingStarted = 'TrackingStarted',
|
|
1539
|
+
TrackingStopped = 'TrackingStopped',
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
export type TrackingHeapSnapshotProfileTypeEventTypes = {
|
|
1543
|
+
[TrackingHeapSnapshotProfileTypeEvents.HeapStatsUpdate]: Samples,
|
|
1544
|
+
[TrackingHeapSnapshotProfileTypeEvents.TrackingStarted]: void,
|
|
1545
|
+
[TrackingHeapSnapshotProfileTypeEvents.TrackingStopped]: void,
|
|
1546
|
+
};
|
|
1547
|
+
|
|
1520
1548
|
export class HeapProfileHeader extends ProfileHeader {
|
|
1521
1549
|
readonly heapProfilerModelInternal: SDK.HeapProfilerModel.HeapProfilerModel|null;
|
|
1522
1550
|
maxJSObjectId: number;
|
|
@@ -1739,6 +1767,10 @@ export class HeapProfileHeader extends ProfileHeader {
|
|
|
1739
1767
|
}
|
|
1740
1768
|
return success ? null : reader.error();
|
|
1741
1769
|
}
|
|
1770
|
+
|
|
1771
|
+
override profileType(): HeapSnapshotProfileType {
|
|
1772
|
+
return super.profileType() as HeapSnapshotProfileType;
|
|
1773
|
+
}
|
|
1742
1774
|
}
|
|
1743
1775
|
|
|
1744
1776
|
export class HeapSnapshotStatisticsView extends UI.Widget.VBox {
|
|
@@ -104,7 +104,7 @@ export type EventTypes = {
|
|
|
104
104
|
[Events.ProfileTitleChanged]: ProfileHeader,
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
export
|
|
107
|
+
export class ProfileType extends Common.ObjectWrapper.ObjectWrapper<ProfileEventTypes> {
|
|
108
108
|
readonly idInternal: string;
|
|
109
109
|
readonly nameInternal: string;
|
|
110
110
|
profiles: ProfileHeader[];
|
|
@@ -212,7 +212,9 @@ export abstract class ProfileType extends Common.ObjectWrapper.ObjectWrapper {
|
|
|
212
212
|
return profile.loadFromFile(file);
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
|
|
215
|
+
createProfileLoadedFromFile(_title: string): ProfileHeader {
|
|
216
|
+
throw new Error('Not implemented');
|
|
217
|
+
}
|
|
216
218
|
|
|
217
219
|
addProfile(profile: ProfileHeader): void {
|
|
218
220
|
this.profiles.push(profile);
|
|
@@ -272,6 +274,13 @@ export enum ProfileEvents {
|
|
|
272
274
|
ViewUpdated = 'view-updated',
|
|
273
275
|
}
|
|
274
276
|
|
|
277
|
+
export type ProfileEventTypes = {
|
|
278
|
+
[ProfileEvents.AddProfileHeader]: ProfileHeader,
|
|
279
|
+
[ProfileEvents.ProfileComplete]: ProfileHeader,
|
|
280
|
+
[ProfileEvents.RemoveProfileHeader]: ProfileHeader,
|
|
281
|
+
[ProfileEvents.ViewUpdated]: void,
|
|
282
|
+
};
|
|
283
|
+
|
|
275
284
|
export interface DataDisplayDelegate {
|
|
276
285
|
showProfile(profile: ProfileHeader|null): UI.Widget.Widget|null;
|
|
277
286
|
showObject(snapshotObjectId: string, perspectiveName: string): void;
|
|
@@ -327,16 +327,17 @@ export class ProfilesPanel extends UI.Panel.PanelWithSidebar implements DataDisp
|
|
|
327
327
|
profileTypeSection.childrenListElement.addEventListener(
|
|
328
328
|
'contextmenu', this.handleContextMenuEvent.bind(this), false);
|
|
329
329
|
|
|
330
|
-
function onAddProfileHeader(this: ProfilesPanel, event: Common.EventTarget.EventTargetEvent): void {
|
|
331
|
-
this.addProfileHeader(
|
|
330
|
+
function onAddProfileHeader(this: ProfilesPanel, event: Common.EventTarget.EventTargetEvent<ProfileHeader>): void {
|
|
331
|
+
this.addProfileHeader(event.data);
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
-
function onRemoveProfileHeader(
|
|
335
|
-
|
|
334
|
+
function onRemoveProfileHeader(
|
|
335
|
+
this: ProfilesPanel, event: Common.EventTarget.EventTargetEvent<ProfileHeader>): void {
|
|
336
|
+
this.removeProfileHeader(event.data);
|
|
336
337
|
}
|
|
337
338
|
|
|
338
|
-
function profileComplete(this: ProfilesPanel, event: Common.EventTarget.EventTargetEvent): void {
|
|
339
|
-
this.showProfile(
|
|
339
|
+
function profileComplete(this: ProfilesPanel, event: Common.EventTarget.EventTargetEvent<ProfileHeader>): void {
|
|
340
|
+
this.showProfile(event.data);
|
|
340
341
|
}
|
|
341
342
|
|
|
342
343
|
profileType.addEventListener(ProfileTypeEvents.ViewUpdated, this.updateProfileTypeSpecificUI, this);
|
|
@@ -3605,7 +3605,7 @@ export class EventDispatchTypeDescriptor {
|
|
|
3605
3605
|
}
|
|
3606
3606
|
}
|
|
3607
3607
|
|
|
3608
|
-
export class TimelineCategory
|
|
3608
|
+
export class TimelineCategory {
|
|
3609
3609
|
name: string;
|
|
3610
3610
|
title: string;
|
|
3611
3611
|
visible: boolean;
|
|
@@ -3614,7 +3614,6 @@ export class TimelineCategory extends Common.ObjectWrapper.ObjectWrapper {
|
|
|
3614
3614
|
private hiddenInternal?: boolean;
|
|
3615
3615
|
|
|
3616
3616
|
constructor(name: string, title: string, visible: boolean, childColor: string, color: string) {
|
|
3617
|
-
super();
|
|
3618
3617
|
this.name = name;
|
|
3619
3618
|
this.title = title;
|
|
3620
3619
|
this.visible = visible;
|
|
@@ -6,7 +6,7 @@ import * as SDK from '../../core/sdk/sdk.js';
|
|
|
6
6
|
import type * as ProtocolProxyApi from '../../generated/protocol-proxy-api.js';
|
|
7
7
|
import type * as Protocol from '../../generated/protocol.js';
|
|
8
8
|
|
|
9
|
-
export class WebAudioModel extends SDK.SDKModel.SDKModel implements ProtocolProxyApi.WebAudioDispatcher {
|
|
9
|
+
export class WebAudioModel extends SDK.SDKModel.SDKModel<EventTypes> implements ProtocolProxyApi.WebAudioDispatcher {
|
|
10
10
|
private enabled: boolean;
|
|
11
11
|
private readonly agent: ProtocolProxyApi.WebAudioApi;
|
|
12
12
|
constructor(target: SDK.Target.Target) {
|
|
@@ -138,3 +138,21 @@ export const enum Events {
|
|
|
138
138
|
NodeParamConnected = 'NodeParamConnected',
|
|
139
139
|
NodeParamDisconnected = 'NodeParamDisconnected',
|
|
140
140
|
}
|
|
141
|
+
|
|
142
|
+
export type EventTypes = {
|
|
143
|
+
[Events.ContextCreated]: Protocol.WebAudio.BaseAudioContext,
|
|
144
|
+
[Events.ContextDestroyed]: Protocol.WebAudio.GraphObjectId,
|
|
145
|
+
[Events.ContextChanged]: Protocol.WebAudio.BaseAudioContext,
|
|
146
|
+
[Events.ModelReset]: void,
|
|
147
|
+
[Events.ModelSuspend]: void,
|
|
148
|
+
[Events.AudioListenerCreated]: Protocol.WebAudio.AudioListener,
|
|
149
|
+
[Events.AudioListenerWillBeDestroyed]: Protocol.WebAudio.AudioListenerWillBeDestroyedEvent,
|
|
150
|
+
[Events.AudioNodeCreated]: Protocol.WebAudio.AudioNode,
|
|
151
|
+
[Events.AudioNodeWillBeDestroyed]: Protocol.WebAudio.AudioNodeWillBeDestroyedEvent,
|
|
152
|
+
[Events.AudioParamCreated]: Protocol.WebAudio.AudioParam,
|
|
153
|
+
[Events.AudioParamWillBeDestroyed]: Protocol.WebAudio.AudioParamWillBeDestroyedEvent,
|
|
154
|
+
[Events.NodesConnected]: Protocol.WebAudio.NodesConnectedEvent,
|
|
155
|
+
[Events.NodesDisconnected]: Protocol.WebAudio.NodesDisconnectedEvent,
|
|
156
|
+
[Events.NodeParamConnected]: Protocol.WebAudio.NodeParamConnectedEvent,
|
|
157
|
+
[Events.NodeParamDisconnected]: Protocol.WebAudio.NodeParamDisconnectedEvent,
|
|
158
|
+
};
|
|
@@ -154,20 +154,20 @@ export class WebAudioView extends UI.ThrottledWidget.ThrottledWidget implements
|
|
|
154
154
|
webAudioModel.removeEventListener(ModelEvents.NodeParamDisconnected, this.nodeParamDisconnected, this);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
private contextCreated(event: Common.EventTarget.EventTargetEvent): void {
|
|
158
|
-
const context =
|
|
157
|
+
private contextCreated(event: Common.EventTarget.EventTargetEvent<Protocol.WebAudio.BaseAudioContext>): void {
|
|
158
|
+
const context = event.data;
|
|
159
159
|
this.graphManager.createContext(context.contextId);
|
|
160
160
|
this.contextSelector.contextCreated(event);
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
private contextDestroyed(event: Common.EventTarget.EventTargetEvent): void {
|
|
164
|
-
const contextId =
|
|
163
|
+
private contextDestroyed(event: Common.EventTarget.EventTargetEvent<Protocol.WebAudio.GraphObjectId>): void {
|
|
164
|
+
const contextId = event.data;
|
|
165
165
|
this.graphManager.destroyContext(contextId);
|
|
166
166
|
this.contextSelector.contextDestroyed(event);
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
private contextChanged(event: Common.EventTarget.EventTargetEvent): void {
|
|
170
|
-
const context =
|
|
169
|
+
private contextChanged(event: Common.EventTarget.EventTargetEvent<Protocol.WebAudio.BaseAudioContext>): void {
|
|
170
|
+
const context = event.data;
|
|
171
171
|
if (!this.graphManager.hasContext(context.contextId)) {
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
@@ -189,8 +189,8 @@ export class WebAudioView extends UI.ThrottledWidget.ThrottledWidget implements
|
|
|
189
189
|
this.graphManager.clearGraphs();
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
private audioListenerCreated(event: Common.EventTarget.EventTargetEvent): void {
|
|
193
|
-
const listener =
|
|
192
|
+
private audioListenerCreated(event: Common.EventTarget.EventTargetEvent<Protocol.WebAudio.AudioListener>): void {
|
|
193
|
+
const listener = event.data;
|
|
194
194
|
const graph = this.graphManager.getGraph(listener.contextId);
|
|
195
195
|
if (!graph) {
|
|
196
196
|
return;
|
|
@@ -203,7 +203,8 @@ export class WebAudioView extends UI.ThrottledWidget.ThrottledWidget implements
|
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
private audioListenerWillBeDestroyed(
|
|
206
|
+
private audioListenerWillBeDestroyed(
|
|
207
|
+
event: Common.EventTarget.EventTargetEvent<Protocol.WebAudio.AudioListenerWillBeDestroyedEvent>): void {
|
|
207
208
|
const {contextId, listenerId} = event.data;
|
|
208
209
|
const graph = this.graphManager.getGraph(contextId);
|
|
209
210
|
if (!graph) {
|
|
@@ -212,8 +213,8 @@ export class WebAudioView extends UI.ThrottledWidget.ThrottledWidget implements
|
|
|
212
213
|
graph.removeNode(listenerId);
|
|
213
214
|
}
|
|
214
215
|
|
|
215
|
-
private audioNodeCreated(event: Common.EventTarget.EventTargetEvent): void {
|
|
216
|
-
const node =
|
|
216
|
+
private audioNodeCreated(event: Common.EventTarget.EventTargetEvent<Protocol.WebAudio.AudioNode>): void {
|
|
217
|
+
const node = event.data;
|
|
217
218
|
const graph = this.graphManager.getGraph(node.contextId);
|
|
218
219
|
if (!graph) {
|
|
219
220
|
return;
|
|
@@ -226,7 +227,8 @@ export class WebAudioView extends UI.ThrottledWidget.ThrottledWidget implements
|
|
|
226
227
|
});
|
|
227
228
|
}
|
|
228
229
|
|
|
229
|
-
private audioNodeWillBeDestroyed(
|
|
230
|
+
private audioNodeWillBeDestroyed(
|
|
231
|
+
event: Common.EventTarget.EventTargetEvent<Protocol.WebAudio.AudioNodeWillBeDestroyedEvent>): void {
|
|
230
232
|
const {contextId, nodeId} = event.data;
|
|
231
233
|
const graph = this.graphManager.getGraph(contextId);
|
|
232
234
|
if (!graph) {
|
|
@@ -235,8 +237,8 @@ export class WebAudioView extends UI.ThrottledWidget.ThrottledWidget implements
|
|
|
235
237
|
graph.removeNode(nodeId);
|
|
236
238
|
}
|
|
237
239
|
|
|
238
|
-
private audioParamCreated(event: Common.EventTarget.EventTargetEvent): void {
|
|
239
|
-
const param =
|
|
240
|
+
private audioParamCreated(event: Common.EventTarget.EventTargetEvent<Protocol.WebAudio.AudioParam>): void {
|
|
241
|
+
const param = event.data;
|
|
240
242
|
const graph = this.graphManager.getGraph(param.contextId);
|
|
241
243
|
if (!graph) {
|
|
242
244
|
return;
|
|
@@ -248,7 +250,8 @@ export class WebAudioView extends UI.ThrottledWidget.ThrottledWidget implements
|
|
|
248
250
|
});
|
|
249
251
|
}
|
|
250
252
|
|
|
251
|
-
private audioParamWillBeDestroyed(
|
|
253
|
+
private audioParamWillBeDestroyed(
|
|
254
|
+
event: Common.EventTarget.EventTargetEvent<Protocol.WebAudio.AudioParamWillBeDestroyedEvent>): void {
|
|
252
255
|
const {contextId, paramId} = event.data;
|
|
253
256
|
const graph = this.graphManager.getGraph(contextId);
|
|
254
257
|
if (!graph) {
|
|
@@ -257,7 +260,7 @@ export class WebAudioView extends UI.ThrottledWidget.ThrottledWidget implements
|
|
|
257
260
|
graph.removeParam(paramId);
|
|
258
261
|
}
|
|
259
262
|
|
|
260
|
-
private nodesConnected(event: Common.EventTarget.EventTargetEvent): void {
|
|
263
|
+
private nodesConnected(event: Common.EventTarget.EventTargetEvent<Protocol.WebAudio.NodesConnectedEvent>): void {
|
|
261
264
|
const {contextId, sourceId, destinationId, sourceOutputIndex, destinationInputIndex} = event.data;
|
|
262
265
|
const graph = this.graphManager.getGraph(contextId);
|
|
263
266
|
if (!graph) {
|
|
@@ -271,7 +274,8 @@ export class WebAudioView extends UI.ThrottledWidget.ThrottledWidget implements
|
|
|
271
274
|
});
|
|
272
275
|
}
|
|
273
276
|
|
|
274
|
-
private nodesDisconnected(event: Common.EventTarget.EventTargetEvent):
|
|
277
|
+
private nodesDisconnected(event: Common.EventTarget.EventTargetEvent<Protocol.WebAudio.NodesDisconnectedEvent>):
|
|
278
|
+
void {
|
|
275
279
|
const {contextId, sourceId, destinationId, sourceOutputIndex, destinationInputIndex} = event.data;
|
|
276
280
|
const graph = this.graphManager.getGraph(contextId);
|
|
277
281
|
if (!graph) {
|
|
@@ -285,7 +289,8 @@ export class WebAudioView extends UI.ThrottledWidget.ThrottledWidget implements
|
|
|
285
289
|
});
|
|
286
290
|
}
|
|
287
291
|
|
|
288
|
-
private nodeParamConnected(event: Common.EventTarget.EventTargetEvent):
|
|
292
|
+
private nodeParamConnected(event: Common.EventTarget.EventTargetEvent<Protocol.WebAudio.NodeParamConnectedEvent>):
|
|
293
|
+
void {
|
|
289
294
|
const {contextId, sourceId, destinationId, sourceOutputIndex} = event.data;
|
|
290
295
|
const graph = this.graphManager.getGraph(contextId);
|
|
291
296
|
if (!graph) {
|
|
@@ -305,7 +310,8 @@ export class WebAudioView extends UI.ThrottledWidget.ThrottledWidget implements
|
|
|
305
310
|
});
|
|
306
311
|
}
|
|
307
312
|
|
|
308
|
-
private nodeParamDisconnected(
|
|
313
|
+
private nodeParamDisconnected(
|
|
314
|
+
event: Common.EventTarget.EventTargetEvent<Protocol.WebAudio.NodeParamDisconnectedEvent>): void {
|
|
309
315
|
const {contextId, sourceId, destinationId, sourceOutputIndex} = event.data;
|
|
310
316
|
const graph = this.graphManager.getGraph(contextId);
|
|
311
317
|
if (!graph) {
|