chromium-bidi 16.0.1 → 17.0.1
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/.browser +1 -1
- package/README.md +33 -16
- package/package.json +41 -171
- package/lib/THIRD_PARTY_NOTICES +0 -56
- package/lib/bidiMapper/BidiMapper.d.ts +0 -29
- package/lib/bidiMapper/BidiMapper.js +0 -25
- package/lib/bidiMapper/BidiMapper.js.map +0 -1
- package/lib/bidiMapper/BidiNoOpParser.d.ts +0 -94
- package/lib/bidiMapper/BidiNoOpParser.js +0 -276
- package/lib/bidiMapper/BidiNoOpParser.js.map +0 -1
- package/lib/bidiMapper/BidiParser.d.ts +0 -93
- package/lib/bidiMapper/BidiParser.js +0 -18
- package/lib/bidiMapper/BidiParser.js.map +0 -1
- package/lib/bidiMapper/BidiServer.d.ts +0 -42
- package/lib/bidiMapper/BidiServer.js +0 -165
- package/lib/bidiMapper/BidiServer.js.map +0 -1
- package/lib/bidiMapper/BidiTransport.d.ts +0 -22
- package/lib/bidiMapper/BidiTransport.js +0 -18
- package/lib/bidiMapper/BidiTransport.js.map +0 -1
- package/lib/bidiMapper/CommandProcessor.d.ts +0 -48
- package/lib/bidiMapper/CommandProcessor.js +0 -327
- package/lib/bidiMapper/CommandProcessor.js.map +0 -1
- package/lib/bidiMapper/MapperOptions.d.ts +0 -7
- package/lib/bidiMapper/MapperOptions.js +0 -19
- package/lib/bidiMapper/MapperOptions.js.map +0 -1
- package/lib/bidiMapper/OutgoingMessage.d.ts +0 -27
- package/lib/bidiMapper/OutgoingMessage.js +0 -48
- package/lib/bidiMapper/OutgoingMessage.js.map +0 -1
- package/lib/bidiMapper/modules/bluetooth/BluetoothProcessor.d.ts +0 -37
- package/lib/bidiMapper/modules/bluetooth/BluetoothProcessor.js +0 -407
- package/lib/bidiMapper/modules/bluetooth/BluetoothProcessor.js.map +0 -1
- package/lib/bidiMapper/modules/browser/BrowserProcessor.d.ts +0 -37
- package/lib/bidiMapper/modules/browser/BrowserProcessor.js +0 -289
- package/lib/bidiMapper/modules/browser/BrowserProcessor.js.map +0 -1
- package/lib/bidiMapper/modules/browser/ContextConfig.d.ts +0 -51
- package/lib/bidiMapper/modules/browser/ContextConfig.js +0 -71
- package/lib/bidiMapper/modules/browser/ContextConfig.js.map +0 -1
- package/lib/bidiMapper/modules/browser/ContextConfigStorage.d.ts +0 -42
- package/lib/bidiMapper/modules/browser/ContextConfigStorage.js +0 -92
- package/lib/bidiMapper/modules/browser/ContextConfigStorage.js.map +0 -1
- package/lib/bidiMapper/modules/browser/UserContextStorage.d.ts +0 -27
- package/lib/bidiMapper/modules/browser/UserContextStorage.js +0 -52
- package/lib/bidiMapper/modules/browser/UserContextStorage.js.map +0 -1
- package/lib/bidiMapper/modules/cdp/CdpProcessor.d.ts +0 -27
- package/lib/bidiMapper/modules/cdp/CdpProcessor.js +0 -56
- package/lib/bidiMapper/modules/cdp/CdpProcessor.js.map +0 -1
- package/lib/bidiMapper/modules/cdp/CdpTarget.d.ts +0 -57
- package/lib/bidiMapper/modules/cdp/CdpTarget.js +0 -693
- package/lib/bidiMapper/modules/cdp/CdpTarget.js.map +0 -1
- package/lib/bidiMapper/modules/cdp/CdpTargetManager.d.ts +0 -16
- package/lib/bidiMapper/modules/cdp/CdpTargetManager.js +0 -248
- package/lib/bidiMapper/modules/cdp/CdpTargetManager.js.map +0 -1
- package/lib/bidiMapper/modules/context/BrowsingContextImpl.d.ts +0 -92
- package/lib/bidiMapper/modules/context/BrowsingContextImpl.js +0 -1447
- package/lib/bidiMapper/modules/context/BrowsingContextImpl.js.map +0 -1
- package/lib/bidiMapper/modules/context/BrowsingContextProcessor.d.ts +0 -22
- package/lib/bidiMapper/modules/context/BrowsingContextProcessor.js +0 -263
- package/lib/bidiMapper/modules/context/BrowsingContextProcessor.js.map +0 -1
- package/lib/bidiMapper/modules/context/BrowsingContextStorage.d.ts +0 -47
- package/lib/bidiMapper/modules/context/BrowsingContextStorage.js +0 -130
- package/lib/bidiMapper/modules/context/BrowsingContextStorage.js.map +0 -1
- package/lib/bidiMapper/modules/context/NavigationTracker.d.ts +0 -87
- package/lib/bidiMapper/modules/context/NavigationTracker.js +0 -325
- package/lib/bidiMapper/modules/context/NavigationTracker.js.map +0 -1
- package/lib/bidiMapper/modules/emulation/EmulationProcessor.d.ts +0 -38
- package/lib/bidiMapper/modules/emulation/EmulationProcessor.js +0 -397
- package/lib/bidiMapper/modules/emulation/EmulationProcessor.js.map +0 -1
- package/lib/bidiMapper/modules/input/ActionDispatcher.d.ts +0 -27
- package/lib/bidiMapper/modules/input/ActionDispatcher.js +0 -740
- package/lib/bidiMapper/modules/input/ActionDispatcher.js.map +0 -1
- package/lib/bidiMapper/modules/input/ActionOption.d.ts +0 -22
- package/lib/bidiMapper/modules/input/ActionOption.js +0 -18
- package/lib/bidiMapper/modules/input/ActionOption.js.map +0 -1
- package/lib/bidiMapper/modules/input/InputProcessor.d.ts +0 -9
- package/lib/bidiMapper/modules/input/InputProcessor.js +0 -190
- package/lib/bidiMapper/modules/input/InputProcessor.js.map +0 -1
- package/lib/bidiMapper/modules/input/InputSource.d.ts +0 -78
- package/lib/bidiMapper/modules/input/InputSource.js +0 -154
- package/lib/bidiMapper/modules/input/InputSource.js.map +0 -1
- package/lib/bidiMapper/modules/input/InputState.d.ts +0 -29
- package/lib/bidiMapper/modules/input/InputState.js +0 -89
- package/lib/bidiMapper/modules/input/InputState.js.map +0 -1
- package/lib/bidiMapper/modules/input/InputStateManager.d.ts +0 -21
- package/lib/bidiMapper/modules/input/InputStateManager.js +0 -30
- package/lib/bidiMapper/modules/input/InputStateManager.js.map +0 -1
- package/lib/bidiMapper/modules/input/USKeyboardLayout.d.ts +0 -17
- package/lib/bidiMapper/modules/input/USKeyboardLayout.js +0 -271
- package/lib/bidiMapper/modules/input/USKeyboardLayout.js.map +0 -1
- package/lib/bidiMapper/modules/input/keyUtils.d.ts +0 -31
- package/lib/bidiMapper/modules/input/keyUtils.js +0 -492
- package/lib/bidiMapper/modules/input/keyUtils.js.map +0 -1
- package/lib/bidiMapper/modules/log/LogManager.d.ts +0 -9
- package/lib/bidiMapper/modules/log/LogManager.js +0 -183
- package/lib/bidiMapper/modules/log/LogManager.js.map +0 -1
- package/lib/bidiMapper/modules/log/logHelper.d.ts +0 -23
- package/lib/bidiMapper/modules/log/logHelper.js +0 -168
- package/lib/bidiMapper/modules/log/logHelper.js.map +0 -1
- package/lib/bidiMapper/modules/network/CollectorsStorage.d.ts +0 -13
- package/lib/bidiMapper/modules/network/CollectorsStorage.js +0 -149
- package/lib/bidiMapper/modules/network/CollectorsStorage.js.map +0 -1
- package/lib/bidiMapper/modules/network/NetworkProcessor.d.ts +0 -54
- package/lib/bidiMapper/modules/network/NetworkProcessor.js +0 -541
- package/lib/bidiMapper/modules/network/NetworkProcessor.js.map +0 -1
- package/lib/bidiMapper/modules/network/NetworkRequest.d.ts +0 -55
- package/lib/bidiMapper/modules/network/NetworkRequest.js +0 -890
- package/lib/bidiMapper/modules/network/NetworkRequest.js.map +0 -1
- package/lib/bidiMapper/modules/network/NetworkStorage.d.ts +0 -57
- package/lib/bidiMapper/modules/network/NetworkStorage.js +0 -349
- package/lib/bidiMapper/modules/network/NetworkStorage.js.map +0 -1
- package/lib/bidiMapper/modules/network/NetworkUtils.d.ts +0 -59
- package/lib/bidiMapper/modules/network/NetworkUtils.js +0 -303
- package/lib/bidiMapper/modules/network/NetworkUtils.js.map +0 -1
- package/lib/bidiMapper/modules/permissions/PermissionsProcessor.d.ts +0 -23
- package/lib/bidiMapper/modules/permissions/PermissionsProcessor.js +0 -51
- package/lib/bidiMapper/modules/permissions/PermissionsProcessor.js.map +0 -1
- package/lib/bidiMapper/modules/script/ChannelProxy.d.ts +0 -30
- package/lib/bidiMapper/modules/script/ChannelProxy.js +0 -231
- package/lib/bidiMapper/modules/script/ChannelProxy.js.map +0 -1
- package/lib/bidiMapper/modules/script/PreloadScript.d.ts +0 -43
- package/lib/bidiMapper/modules/script/PreloadScript.js +0 -129
- package/lib/bidiMapper/modules/script/PreloadScript.js.map +0 -1
- package/lib/bidiMapper/modules/script/PreloadScriptStorage.d.ts +0 -23
- package/lib/bidiMapper/modules/script/PreloadScriptStorage.js +0 -75
- package/lib/bidiMapper/modules/script/PreloadScriptStorage.js.map +0 -1
- package/lib/bidiMapper/modules/script/Realm.d.ts +0 -67
- package/lib/bidiMapper/modules/script/Realm.js +0 -481
- package/lib/bidiMapper/modules/script/Realm.js.map +0 -1
- package/lib/bidiMapper/modules/script/RealmStorage.d.ts +0 -45
- package/lib/bidiMapper/modules/script/RealmStorage.js +0 -78
- package/lib/bidiMapper/modules/script/RealmStorage.js.map +0 -1
- package/lib/bidiMapper/modules/script/ScriptProcessor.d.ts +0 -33
- package/lib/bidiMapper/modules/script/ScriptProcessor.js +0 -132
- package/lib/bidiMapper/modules/script/ScriptProcessor.js.map +0 -1
- package/lib/bidiMapper/modules/script/SharedId.d.ts +0 -6
- package/lib/bidiMapper/modules/script/SharedId.js +0 -70
- package/lib/bidiMapper/modules/script/SharedId.js.map +0 -1
- package/lib/bidiMapper/modules/script/WindowRealm.d.ts +0 -43
- package/lib/bidiMapper/modules/script/WindowRealm.js +0 -142
- package/lib/bidiMapper/modules/script/WindowRealm.js.map +0 -1
- package/lib/bidiMapper/modules/script/WorkerRealm.d.ts +0 -33
- package/lib/bidiMapper/modules/script/WorkerRealm.js +0 -66
- package/lib/bidiMapper/modules/script/WorkerRealm.js.map +0 -1
- package/lib/bidiMapper/modules/session/EventManager.d.ts +0 -56
- package/lib/bidiMapper/modules/session/EventManager.js +0 -265
- package/lib/bidiMapper/modules/session/EventManager.js.map +0 -1
- package/lib/bidiMapper/modules/session/SessionProcessor.d.ts +0 -29
- package/lib/bidiMapper/modules/session/SessionProcessor.js +0 -127
- package/lib/bidiMapper/modules/session/SessionProcessor.js.map +0 -1
- package/lib/bidiMapper/modules/session/SubscriptionManager.d.ts +0 -64
- package/lib/bidiMapper/modules/session/SubscriptionManager.js +0 -266
- package/lib/bidiMapper/modules/session/SubscriptionManager.js.map +0 -1
- package/lib/bidiMapper/modules/session/events.d.ts +0 -26
- package/lib/bidiMapper/modules/session/events.js +0 -33
- package/lib/bidiMapper/modules/session/events.js.map +0 -1
- package/lib/bidiMapper/modules/speculation/SpeculationProcessor.d.ts +0 -24
- package/lib/bidiMapper/modules/speculation/SpeculationProcessor.js +0 -58
- package/lib/bidiMapper/modules/speculation/SpeculationProcessor.js.map +0 -1
- package/lib/bidiMapper/modules/storage/StorageProcessor.d.ts +0 -14
- package/lib/bidiMapper/modules/storage/StorageProcessor.js +0 -191
- package/lib/bidiMapper/modules/storage/StorageProcessor.js.map +0 -1
- package/lib/bidiMapper/modules/webExtension/WebExtensionProcessor.d.ts +0 -27
- package/lib/bidiMapper/modules/webExtension/WebExtensionProcessor.js +0 -65
- package/lib/bidiMapper/modules/webExtension/WebExtensionProcessor.js.map +0 -1
- package/lib/bidiServer/BrowserInstance.d.ts +0 -23
- package/lib/bidiServer/BrowserInstance.js +0 -107
- package/lib/bidiServer/BrowserInstance.js.map +0 -1
- package/lib/bidiServer/MapperCdpConnection.d.ts +0 -25
- package/lib/bidiServer/MapperCdpConnection.js +0 -138
- package/lib/bidiServer/MapperCdpConnection.js.map +0 -1
- package/lib/bidiServer/PipeTransport.d.ts +0 -8
- package/lib/bidiServer/PipeTransport.js +0 -77
- package/lib/bidiServer/PipeTransport.js.map +0 -1
- package/lib/bidiServer/SimpleTransport.d.ts +0 -13
- package/lib/bidiServer/SimpleTransport.js +0 -35
- package/lib/bidiServer/SimpleTransport.js.map +0 -1
- package/lib/bidiServer/WebSocketServer.d.ts +0 -6
- package/lib/bidiServer/WebSocketServer.js +0 -374
- package/lib/bidiServer/WebSocketServer.js.map +0 -1
- package/lib/bidiServer/index.d.ts +0 -23
- package/lib/bidiServer/index.js +0 -49
- package/lib/bidiServer/index.js.map +0 -1
- package/lib/bidiServer/reader.d.ts +0 -17
- package/lib/bidiServer/reader.js +0 -22
- package/lib/bidiServer/reader.js.map +0 -1
- package/lib/bidiTab/BidiParser.d.ts +0 -94
- package/lib/bidiTab/BidiParser.js +0 -263
- package/lib/bidiTab/BidiParser.js.map +0 -1
- package/lib/bidiTab/Transport.d.ts +0 -37
- package/lib/bidiTab/Transport.js +0 -145
- package/lib/bidiTab/Transport.js.map +0 -1
- package/lib/bidiTab/bidiTab.d.ts +0 -32
- package/lib/bidiTab/bidiTab.js +0 -56
- package/lib/bidiTab/bidiTab.js.map +0 -1
- package/lib/bidiTab/mapperTabPage.d.ts +0 -19
- package/lib/bidiTab/mapperTabPage.js +0 -59
- package/lib/bidiTab/mapperTabPage.js.map +0 -1
- package/lib/cdp/CdpClient.d.ts +0 -54
- package/lib/cdp/CdpClient.js +0 -40
- package/lib/cdp/CdpClient.js.map +0 -1
- package/lib/cdp/CdpConnection.d.ts +0 -45
- package/lib/cdp/CdpConnection.js +0 -130
- package/lib/cdp/CdpConnection.js.map +0 -1
- package/lib/cdp/cdp.d.ts +0 -19
- package/lib/cdp/cdp.js +0 -20
- package/lib/cdp/cdp.js.map +0 -1
- package/lib/cdp/cdpMessage.d.ts +0 -30
- package/lib/cdp/cdpMessage.js +0 -2
- package/lib/cdp/cdpMessage.js.map +0 -1
- package/lib/iife/mapperTab.js +0 -19967
- package/lib/iife/mapperTab.js.map +0 -1
- package/lib/index.d.ts +0 -18
- package/lib/index.js +0 -19
- package/lib/index.js.map +0 -1
- package/lib/protocol/ErrorResponse.d.ts +0 -112
- package/lib/protocol/ErrorResponse.js +0 -166
- package/lib/protocol/ErrorResponse.js.map +0 -1
- package/lib/protocol/cdp.d.ts +0 -77
- package/lib/protocol/cdp.js +0 -2
- package/lib/protocol/cdp.js.map +0 -1
- package/lib/protocol/chromium-bidi.d.ts +0 -112
- package/lib/protocol/chromium-bidi.js +0 -124
- package/lib/protocol/chromium-bidi.js.map +0 -1
- package/lib/protocol/generated/webdriver-bidi-bluetooth.d.ts +0 -309
- package/lib/protocol/generated/webdriver-bidi-bluetooth.js +0 -18
- package/lib/protocol/generated/webdriver-bidi-bluetooth.js.map +0 -1
- package/lib/protocol/generated/webdriver-bidi-nav-speculation.d.ts +0 -43
- package/lib/protocol/generated/webdriver-bidi-nav-speculation.js +0 -18
- package/lib/protocol/generated/webdriver-bidi-nav-speculation.js.map +0 -1
- package/lib/protocol/generated/webdriver-bidi-permissions.d.ts +0 -49
- package/lib/protocol/generated/webdriver-bidi-permissions.js +0 -18
- package/lib/protocol/generated/webdriver-bidi-permissions.js.map +0 -1
- package/lib/protocol/generated/webdriver-bidi-ua-client-hints.d.ts +0 -55
- package/lib/protocol/generated/webdriver-bidi-ua-client-hints.js +0 -18
- package/lib/protocol/generated/webdriver-bidi-ua-client-hints.js.map +0 -1
- package/lib/protocol/generated/webdriver-bidi.d.ts +0 -2767
- package/lib/protocol/generated/webdriver-bidi.js +0 -18
- package/lib/protocol/generated/webdriver-bidi.js.map +0 -1
- package/lib/protocol/protocol.d.ts +0 -24
- package/lib/protocol/protocol.js +0 -26
- package/lib/protocol/protocol.js.map +0 -1
- package/lib/protocol-parser/generated/webdriver-bidi-bluetooth.d.ts +0 -2216
- package/lib/protocol-parser/generated/webdriver-bidi-bluetooth.js +0 -348
- package/lib/protocol-parser/generated/webdriver-bidi-bluetooth.js.map +0 -1
- package/lib/protocol-parser/generated/webdriver-bidi-nav-speculation.d.ts +0 -102
- package/lib/protocol-parser/generated/webdriver-bidi-nav-speculation.js +0 -43
- package/lib/protocol-parser/generated/webdriver-bidi-nav-speculation.js.map +0 -1
- package/lib/protocol-parser/generated/webdriver-bidi-permissions.d.ts +0 -175
- package/lib/protocol-parser/generated/webdriver-bidi-permissions.js +0 -50
- package/lib/protocol-parser/generated/webdriver-bidi-permissions.js.map +0 -1
- package/lib/protocol-parser/generated/webdriver-bidi-ua-client-hints.d.ts +0 -427
- package/lib/protocol-parser/generated/webdriver-bidi-ua-client-hints.js +0 -65
- package/lib/protocol-parser/generated/webdriver-bidi-ua-client-hints.js.map +0 -1
- package/lib/protocol-parser/generated/webdriver-bidi.d.ts +0 -65923
- package/lib/protocol-parser/generated/webdriver-bidi.js +0 -2993
- package/lib/protocol-parser/generated/webdriver-bidi.js.map +0 -1
- package/lib/protocol-parser/protocol-parser.d.ts +0 -177
- package/lib/protocol-parser/protocol-parser.js +0 -465
- package/lib/protocol-parser/protocol-parser.js.map +0 -1
- package/lib/utils/Buffer.d.ts +0 -27
- package/lib/utils/Buffer.js +0 -43
- package/lib/utils/Buffer.js.map +0 -1
- package/lib/utils/DefaultMap.d.ts +0 -26
- package/lib/utils/DefaultMap.js +0 -36
- package/lib/utils/DefaultMap.js.map +0 -1
- package/lib/utils/Deferred.d.ts +0 -28
- package/lib/utils/Deferred.js +0 -67
- package/lib/utils/Deferred.js.map +0 -1
- package/lib/utils/EventEmitter.d.ts +0 -58
- package/lib/utils/EventEmitter.js +0 -67
- package/lib/utils/EventEmitter.js.map +0 -1
- package/lib/utils/IdWrapper.d.ts +0 -24
- package/lib/utils/IdWrapper.js +0 -30
- package/lib/utils/IdWrapper.js.map +0 -1
- package/lib/utils/Mutex.d.ts +0 -29
- package/lib/utils/Mutex.js +0 -64
- package/lib/utils/Mutex.js.map +0 -1
- package/lib/utils/ProcessingQueue.d.ts +0 -24
- package/lib/utils/ProcessingQueue.js +0 -63
- package/lib/utils/ProcessingQueue.js.map +0 -1
- package/lib/utils/assert.d.ts +0 -17
- package/lib/utils/assert.js +0 -22
- package/lib/utils/assert.js.map +0 -1
- package/lib/utils/base64.d.ts +0 -24
- package/lib/utils/base64.js +0 -32
- package/lib/utils/base64.js.map +0 -1
- package/lib/utils/cdpErrorConstants.d.ts +0 -22
- package/lib/utils/cdpErrorConstants.js +0 -18
- package/lib/utils/cdpErrorConstants.js.map +0 -1
- package/lib/utils/graphemeTools.d.ts +0 -9
- package/lib/utils/graphemeTools.js +0 -34
- package/lib/utils/graphemeTools.js.map +0 -1
- package/lib/utils/log.d.ts +0 -26
- package/lib/utils/log.js +0 -28
- package/lib/utils/log.js.map +0 -1
- package/lib/utils/result.d.ts +0 -23
- package/lib/utils/result.js +0 -18
- package/lib/utils/result.js.map +0 -1
- package/lib/utils/time.d.ts +0 -17
- package/lib/utils/time.js +0 -24
- package/lib/utils/time.js.map +0 -1
- package/lib/utils/transport.d.ts +0 -25
- package/lib/utils/transport.js +0 -18
- package/lib/utils/transport.js.map +0 -1
- package/lib/utils/unitConversions.d.ts +0 -18
- package/lib/utils/unitConversions.js +0 -21
- package/lib/utils/unitConversions.js.map +0 -1
- package/lib/utils/urlHelpers.d.ts +0 -8
- package/lib/utils/urlHelpers.js +0 -49
- package/lib/utils/urlHelpers.js.map +0 -1
- package/lib/utils/uuid.d.ts +0 -25
- package/lib/utils/uuid.js +0 -61
- package/lib/utils/uuid.js.map +0 -1
package/.browser
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
chrome@
|
|
1
|
+
chrome@152.0.7927.0
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|

|
|
7
7
|

|
|
8
8
|
|
|
9
|
-

|
|
10
10
|
|
|
11
11
|
This is an implementation of the
|
|
12
12
|
[WebDriver BiDi](https://w3c.github.io/webdriver-bidi/) protocol with some
|
|
@@ -166,6 +166,23 @@ This is a Node.js project, so install dependencies as usual:
|
|
|
166
166
|
npm install
|
|
167
167
|
```
|
|
168
168
|
|
|
169
|
+
### Build Setup
|
|
170
|
+
|
|
171
|
+
The project uses Chromium build toolchains (`gn` and `ninja`) for compiling TypeScript and bundling.
|
|
172
|
+
|
|
173
|
+
1. Fetch the toolchains using `gclient` (requires `depot_tools` installed and in your PATH):
|
|
174
|
+
```sh
|
|
175
|
+
gclient sync
|
|
176
|
+
```
|
|
177
|
+
2. Generate the Ninja build configuration:
|
|
178
|
+
```sh
|
|
179
|
+
npm run gn:gen
|
|
180
|
+
```
|
|
181
|
+
3. Build the project:
|
|
182
|
+
```sh
|
|
183
|
+
npm run build
|
|
184
|
+
```
|
|
185
|
+
|
|
169
186
|
### `cargo`
|
|
170
187
|
|
|
171
188
|
<!-- TODO(jrandolf): Remove after binaries get published -->
|
|
@@ -175,19 +192,27 @@ We use [cddlconv](https://github.com/google/cddlconv) to generate our WebDriverB
|
|
|
175
192
|
1. Install [Rust](https://rustup.rs/).
|
|
176
193
|
2. Run `cargo install --git https://github.com/google/cddlconv.git cddlconv`
|
|
177
194
|
|
|
178
|
-
###
|
|
195
|
+
### Code Formatting & Linting
|
|
179
196
|
|
|
180
|
-
|
|
197
|
+
We use a suite of tools to format and lint the codebase:
|
|
198
|
+
|
|
199
|
+
- [keep-sorted](https://github.com/google/keep-sorted) to automatically sort lists, imports, and keys.
|
|
200
|
+
- [ESLint](https://eslint.org/) to lint JavaScript and TypeScript files.
|
|
201
|
+
- [Prettier](https://prettier.io/) to format JavaScript, TypeScript, JSON, and Markdown files.
|
|
202
|
+
- [Ruff](https://docs.astral.sh/ruff/) to lint and format Python files.
|
|
203
|
+
|
|
204
|
+
To check and auto-format the entire codebase, run:
|
|
181
205
|
|
|
182
206
|
```sh
|
|
183
|
-
|
|
207
|
+
npm run format
|
|
184
208
|
```
|
|
185
209
|
|
|
186
|
-
|
|
210
|
+
This command sequentially executes the following steps:
|
|
187
211
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
212
|
+
1. `keep-sorted --mode=fix`
|
|
213
|
+
2. `eslint --cache --fix`
|
|
214
|
+
3. `prettier --cache --write`
|
|
215
|
+
4. `ruff check --fix` and `ruff format`
|
|
191
216
|
|
|
192
217
|
### Starting WebDriver BiDi Server
|
|
193
218
|
|
|
@@ -428,18 +453,10 @@ https://www.google.com/chrome/dev/
|
|
|
428
453
|
|
|
429
454
|
#### 2. Build Chromedriver BiDi
|
|
430
455
|
|
|
431
|
-
Oneshot:
|
|
432
|
-
|
|
433
456
|
```sh
|
|
434
457
|
npm run build
|
|
435
458
|
```
|
|
436
459
|
|
|
437
|
-
Continuously:
|
|
438
|
-
|
|
439
|
-
```sh
|
|
440
|
-
npm run build --watch
|
|
441
|
-
```
|
|
442
|
-
|
|
443
460
|
#### 3. Run
|
|
444
461
|
|
|
445
462
|
```sh
|
package/package.json
CHANGED
|
@@ -1,139 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chromium-bidi",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.1",
|
|
4
4
|
"description": "An implementation of the WebDriver BiDi protocol for Chromium implemented as a JavaScript layer translating between BiDi and CDP, running inside a Chrome tab.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20.19.0 <22.0.0 || >=22.12.0"
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
|
-
"build": "
|
|
10
|
-
"clean": "
|
|
9
|
+
"build": "third_party/ninja/ninja -C out/Default",
|
|
10
|
+
"clean": "third_party/ninja/ninja -C out/Default -t clean",
|
|
11
|
+
"gn:gen": "gn gen out/Default",
|
|
11
12
|
"e2e:headful": "HEADLESS=false npm run e2e --",
|
|
12
13
|
"e2e:headless": "npm run e2e:new-headless --",
|
|
13
14
|
"e2e:new-headless": "HEADLESS=new npm run e2e --",
|
|
14
15
|
"e2e:old-headless": "HEADLESS=old npm run e2e --",
|
|
15
|
-
"e2e": "
|
|
16
|
+
"e2e": "npm run build && ./tools/node.py tools/run-e2e.mjs",
|
|
16
17
|
"flake8": "flake8 examples/ tests/",
|
|
17
|
-
"format": "npm run
|
|
18
|
+
"format": "npm run format:eslint && npm run format:prettier && npm run format:py && npm run format:keep-sorted",
|
|
18
19
|
"format:eslint": "eslint --cache --fix .",
|
|
20
|
+
"format:keep-sorted": "keep-sorted --mode=fix $(git ls-files | grep -v '^wpt$')",
|
|
19
21
|
"format:prettier": "prettier --cache --write .",
|
|
20
|
-
"
|
|
21
|
-
"prepare": "
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"unit": "
|
|
27
|
-
"wpt": "
|
|
28
|
-
"wpt:all": "
|
|
22
|
+
"format:py": "(command -v ruff >/dev/null && ruff check --fix . && ruff format .) || (pipenv run ruff check --fix . && pipenv run ruff format .)",
|
|
23
|
+
"prepare": "npm run build",
|
|
24
|
+
"rdb-e2e": "rdb stream -new -realm chromium:public -- npm run e2e",
|
|
25
|
+
"rdb-unit": "rdb stream -new -realm chromium:public -- npm run unit",
|
|
26
|
+
"server": "npm run build && ./tools/node.py tools/run-bidi-server.mjs",
|
|
27
|
+
"test": "npm run unit && npm run e2e && npm run wpt",
|
|
28
|
+
"unit": "npm run build && ./tools/node.py --test --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/unit-resultsink-reporter.mjs --test-reporter-destination=stdout 'out/Default/gen/src/**/*.test.js'",
|
|
29
|
+
"wpt": "npm run build && ./tools/node.py tools/run-wpt.mjs",
|
|
30
|
+
"wpt:all": "npm run build && ./tools/node.py tools/run-wpt-all.mjs",
|
|
29
31
|
"yapf": "yapf -i --parallel --recursive --exclude=wpt examples/ tests/"
|
|
30
32
|
},
|
|
31
33
|
"type": "module",
|
|
32
|
-
"main": "./
|
|
33
|
-
"wireit": {
|
|
34
|
-
"build": {
|
|
35
|
-
"dependencies": [
|
|
36
|
-
"rollup",
|
|
37
|
-
"tsc"
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
"e2e": {
|
|
41
|
-
"command": "tools/run-e2e.mjs",
|
|
42
|
-
"files": [
|
|
43
|
-
"tools/run-e2e.mjs ",
|
|
44
|
-
"pytest.ini",
|
|
45
|
-
"tests/**/*.py"
|
|
46
|
-
],
|
|
47
|
-
"dependencies": [
|
|
48
|
-
"build"
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
"prepare": {
|
|
52
|
-
"dependencies": [
|
|
53
|
-
"build"
|
|
54
|
-
]
|
|
55
|
-
},
|
|
56
|
-
"rollup": {
|
|
57
|
-
"command": "rollup -c",
|
|
58
|
-
"dependencies": [
|
|
59
|
-
"tsc"
|
|
60
|
-
],
|
|
61
|
-
"files": [
|
|
62
|
-
"lib/bidiMapper/",
|
|
63
|
-
"rollup.config.mjs"
|
|
64
|
-
],
|
|
65
|
-
"output": [
|
|
66
|
-
"lib/iife/mapperTab.js"
|
|
67
|
-
]
|
|
68
|
-
},
|
|
69
|
-
"server": {
|
|
70
|
-
"command": "tools/run-bidi-server.mjs",
|
|
71
|
-
"files": [
|
|
72
|
-
"tools/run-bidi-server.mjs"
|
|
73
|
-
],
|
|
74
|
-
"service": {
|
|
75
|
-
"readyWhen": {
|
|
76
|
-
"lineMatches": "(BiDi server|ChromeDriver) was started successfully"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
"dependencies": [
|
|
80
|
-
"rollup"
|
|
81
|
-
]
|
|
82
|
-
},
|
|
83
|
-
"test": {
|
|
84
|
-
"dependencies": [
|
|
85
|
-
"unit",
|
|
86
|
-
"e2e",
|
|
87
|
-
"wpt"
|
|
88
|
-
]
|
|
89
|
-
},
|
|
90
|
-
"tsc": {
|
|
91
|
-
"command": "tsc --build src/tsconfig.json --pretty",
|
|
92
|
-
"clean": "if-file-deleted",
|
|
93
|
-
"files": [
|
|
94
|
-
"tsconfig.base.json",
|
|
95
|
-
"src/**/tsconfig*.json",
|
|
96
|
-
"src/**/*.ts"
|
|
97
|
-
],
|
|
98
|
-
"output": [
|
|
99
|
-
"lib/**"
|
|
100
|
-
]
|
|
101
|
-
},
|
|
102
|
-
"unit": {
|
|
103
|
-
"command": "mocha",
|
|
104
|
-
"dependencies": [
|
|
105
|
-
"tsc"
|
|
106
|
-
]
|
|
107
|
-
},
|
|
108
|
-
"wpt": {
|
|
109
|
-
"command": "tools/run-wpt.mjs",
|
|
110
|
-
"files": [
|
|
111
|
-
"tools/run-wpt.mjs",
|
|
112
|
-
"wpt/tools/webdriver/**/*.py",
|
|
113
|
-
"wpt/webdriver/tests/**/*.py",
|
|
114
|
-
"wpt-metadata/**/*.ini"
|
|
115
|
-
],
|
|
116
|
-
"dependencies": [
|
|
117
|
-
"rollup"
|
|
118
|
-
]
|
|
119
|
-
},
|
|
120
|
-
"wpt:all": {
|
|
121
|
-
"command": "tools/run-wpt-all.mjs",
|
|
122
|
-
"files": [
|
|
123
|
-
"tools/run-wpt.mjs",
|
|
124
|
-
"tools/run-wpt-all.mjs",
|
|
125
|
-
"wpt/tools/webdriver/**/*.py",
|
|
126
|
-
"wpt/webdriver/tests/**/*.py",
|
|
127
|
-
"wpt-metadata/**/*.ini"
|
|
128
|
-
],
|
|
129
|
-
"dependencies": [
|
|
130
|
-
"rollup"
|
|
131
|
-
]
|
|
132
|
-
}
|
|
133
|
-
},
|
|
34
|
+
"main": "./out/Default/gen/src/index.js",
|
|
134
35
|
"files": [
|
|
135
|
-
"
|
|
136
|
-
"!
|
|
36
|
+
"out/Default/gen/src",
|
|
37
|
+
"!out/Default/gen/src/**/*.test.*",
|
|
38
|
+
"out/Default/lib",
|
|
137
39
|
"!*.tsbuildinfo",
|
|
138
40
|
".browser"
|
|
139
41
|
],
|
|
@@ -147,69 +49,37 @@
|
|
|
147
49
|
"devtools-protocol": "*"
|
|
148
50
|
},
|
|
149
51
|
"devDependencies": {
|
|
150
|
-
"@actions/core": "3.0.
|
|
52
|
+
"@actions/core": "3.0.1",
|
|
151
53
|
"@eslint/js": "10.0.1",
|
|
152
|
-
"@puppeteer/browsers": "
|
|
54
|
+
"@puppeteer/browsers": "3.0.5",
|
|
153
55
|
"@rollup/plugin-node-resolve": "16.0.3",
|
|
154
|
-
"@rollup/wasm-node": "4.
|
|
155
|
-
"@types/chai": "
|
|
156
|
-
"@types/
|
|
157
|
-
"@types/
|
|
158
|
-
"@types/mocha": "10.0.10",
|
|
159
|
-
"@types/node": "20.19.35",
|
|
160
|
-
"@types/sinon": "21.0.0",
|
|
56
|
+
"@rollup/wasm-node": "4.62.2",
|
|
57
|
+
"@types/chai": "5.2.3",
|
|
58
|
+
"@types/node": "20.19.43",
|
|
59
|
+
"@types/sinon": "21.0.1",
|
|
161
60
|
"@types/websocket": "1.0.10",
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"chai-as-promised": "7.1.2",
|
|
166
|
-
"debug": "4.4.3",
|
|
167
|
-
"devtools-protocol": "0.0.1624250",
|
|
168
|
-
"eslint": "10.0.2",
|
|
61
|
+
"chai": "6.2.2",
|
|
62
|
+
"devtools-protocol": "0.0.1655900",
|
|
63
|
+
"eslint": "10.5.0",
|
|
169
64
|
"eslint-config-prettier": "10.1.8",
|
|
170
|
-
"eslint-import-resolver-typescript": "4.4.
|
|
65
|
+
"eslint-import-resolver-typescript": "4.4.5",
|
|
171
66
|
"eslint-plugin-import": "2.32.0",
|
|
172
|
-
"eslint-plugin-
|
|
173
|
-
"eslint-plugin-
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
"package-directory": "8.2.0",
|
|
178
|
-
"prettier": "3.8.1",
|
|
179
|
-
"rimraf": "6.1.3",
|
|
180
|
-
"rollup": "4.59.0",
|
|
67
|
+
"eslint-plugin-prettier": "5.5.6",
|
|
68
|
+
"eslint-plugin-promise": "7.3.0",
|
|
69
|
+
"globals": "17.7.0",
|
|
70
|
+
"prettier": "3.8.4",
|
|
71
|
+
"rollup": "4.62.2",
|
|
181
72
|
"rollup-plugin-cleanup": "3.2.1",
|
|
182
|
-
"rollup-plugin-license": "3.7.
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"typescript": "5.9.3",
|
|
189
|
-
"typescript-eslint": "8.56.1",
|
|
190
|
-
"webdriverio": "9.24.0",
|
|
191
|
-
"websocket": "1.0.35",
|
|
192
|
-
"wireit": "0.14.12",
|
|
193
|
-
"yargs": "18.0.0"
|
|
73
|
+
"rollup-plugin-license": "3.7.1",
|
|
74
|
+
"semver": "7.8.5",
|
|
75
|
+
"sinon": "22.0.0",
|
|
76
|
+
"typescript": "6.0.3",
|
|
77
|
+
"typescript-eslint": "8.62.0",
|
|
78
|
+
"websocket": "1.0.35"
|
|
194
79
|
},
|
|
195
80
|
"overrides": {
|
|
196
81
|
"eslint-plugin-import": {
|
|
197
82
|
"eslint": "$eslint"
|
|
198
|
-
},
|
|
199
|
-
"eslint-plugin-promise": {
|
|
200
|
-
"eslint": "$eslint"
|
|
201
|
-
},
|
|
202
|
-
"typescript-eslint": {
|
|
203
|
-
"eslint": "$eslint"
|
|
204
|
-
},
|
|
205
|
-
"@typescript-eslint/eslint-plugin": {
|
|
206
|
-
"eslint": "$eslint"
|
|
207
|
-
},
|
|
208
|
-
"@typescript-eslint/parser": {
|
|
209
|
-
"eslint": "$eslint"
|
|
210
|
-
},
|
|
211
|
-
"@typescript-eslint/utils": {
|
|
212
|
-
"eslint": "$eslint"
|
|
213
83
|
}
|
|
214
84
|
},
|
|
215
85
|
"dependencies": {
|
package/lib/THIRD_PARTY_NOTICES
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
Name: mitt
|
|
2
|
-
URL: https://github.com/developit/mitt
|
|
3
|
-
Version: 3.0.1
|
|
4
|
-
License: MIT
|
|
5
|
-
|
|
6
|
-
MIT License
|
|
7
|
-
|
|
8
|
-
Copyright (c) 2021 Jason Miller
|
|
9
|
-
|
|
10
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
-
in the Software without restriction, including without limitation the rights
|
|
13
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
-
furnished to do so, subject to the following conditions:
|
|
16
|
-
|
|
17
|
-
The above copyright notice and this permission notice shall be included in all
|
|
18
|
-
copies or substantial portions of the Software.
|
|
19
|
-
|
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
-
SOFTWARE.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
-------------------- DEPENDENCY DIVIDER --------------------
|
|
30
|
-
|
|
31
|
-
Name: zod
|
|
32
|
-
URL: https://zod.dev
|
|
33
|
-
Version: 3.25.76
|
|
34
|
-
License: MIT
|
|
35
|
-
|
|
36
|
-
MIT License
|
|
37
|
-
|
|
38
|
-
Copyright (c) 2025 Colin McDonnell
|
|
39
|
-
|
|
40
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
41
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
42
|
-
in the Software without restriction, including without limitation the rights
|
|
43
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
44
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
45
|
-
furnished to do so, subject to the following conditions:
|
|
46
|
-
|
|
47
|
-
The above copyright notice and this permission notice shall be included in all
|
|
48
|
-
copies or substantial portions of the Software.
|
|
49
|
-
|
|
50
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
51
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
52
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
53
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
54
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
55
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
56
|
-
SOFTWARE.
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2022 Google LLC.
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* @fileoverview The entry point to the BiDi Mapper namespace.
|
|
19
|
-
* Other modules should only access exports defined in this file.
|
|
20
|
-
* XXX: Add ESlint rule for this (https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-restricted-paths.md)
|
|
21
|
-
*/
|
|
22
|
-
export { BidiServer } from './BidiServer.js';
|
|
23
|
-
export { MapperOptions } from './MapperOptions.js';
|
|
24
|
-
export type { CdpConnection } from '../cdp/CdpConnection.js';
|
|
25
|
-
export type { CdpClient } from '../cdp/CdpClient.js';
|
|
26
|
-
export { EventEmitter } from '../utils/EventEmitter.js';
|
|
27
|
-
export type { BidiTransport } from './BidiTransport.js';
|
|
28
|
-
export { OutgoingMessage } from './OutgoingMessage.js';
|
|
29
|
-
export type { BidiCommandParameterParser } from './BidiParser.js';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2022 Google LLC.
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* @fileoverview The entry point to the BiDi Mapper namespace.
|
|
19
|
-
* Other modules should only access exports defined in this file.
|
|
20
|
-
* XXX: Add ESlint rule for this (https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-restricted-paths.md)
|
|
21
|
-
*/
|
|
22
|
-
export { BidiServer } from './BidiServer.js';
|
|
23
|
-
export { EventEmitter } from '../utils/EventEmitter.js';
|
|
24
|
-
export { OutgoingMessage } from './OutgoingMessage.js';
|
|
25
|
-
//# sourceMappingURL=BidiMapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BidiMapper.js","sourceRoot":"","sources":["../../src/bidiMapper/BidiMapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;GAIG;AACH,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAI3C,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAEtD,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023 Google LLC.
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import type { Browser, BrowsingContext, Cdp, Emulation, Input, Network, Script, Session, Storage, Permissions, Bluetooth, WebExtension, UAClientHints } from '../protocol/protocol.js';
|
|
18
|
-
import type { BidiCommandParameterParser } from './BidiParser.js';
|
|
19
|
-
export declare class BidiNoOpParser implements BidiCommandParameterParser {
|
|
20
|
-
parseDisableSimulationParameters(params: unknown): Bluetooth.DisableSimulationParameters;
|
|
21
|
-
parseHandleRequestDevicePromptParams(params: unknown): Bluetooth.HandleRequestDevicePromptParameters;
|
|
22
|
-
parseSimulateAdapterParameters(params: unknown): Bluetooth.SimulateAdapterParameters;
|
|
23
|
-
parseSimulateAdvertisementParameters(params: unknown): Bluetooth.SimulateAdvertisementParameters;
|
|
24
|
-
parseSimulateCharacteristicParameters(params: unknown): Bluetooth.SimulateCharacteristicParameters;
|
|
25
|
-
parseSimulateCharacteristicResponseParameters(params: unknown): Bluetooth.SimulateCharacteristicResponseParameters;
|
|
26
|
-
parseSimulateDescriptorParameters(params: unknown): Bluetooth.SimulateDescriptorParameters;
|
|
27
|
-
parseSimulateDescriptorResponseParameters(params: unknown): Bluetooth.SimulateDescriptorResponseParameters;
|
|
28
|
-
parseSimulateGattConnectionResponseParameters(params: unknown): Bluetooth.SimulateGattConnectionResponseParameters;
|
|
29
|
-
parseSimulateGattDisconnectionParameters(params: unknown): Bluetooth.SimulateGattDisconnectionParameters;
|
|
30
|
-
parseSimulatePreconnectedPeripheralParameters(params: unknown): Bluetooth.SimulatePreconnectedPeripheralParameters;
|
|
31
|
-
parseSimulateServiceParameters(params: unknown): Bluetooth.SimulateServiceParameters;
|
|
32
|
-
parseCreateUserContextParameters(params: unknown): Browser.CreateUserContextParameters;
|
|
33
|
-
parseRemoveUserContextParameters(params: unknown): Browser.RemoveUserContextParameters;
|
|
34
|
-
parseSetClientWindowStateParameters(params: unknown): Browser.SetClientWindowStateParameters;
|
|
35
|
-
parseSetDownloadBehaviorParameters(params: unknown): Browser.SetDownloadBehaviorParameters;
|
|
36
|
-
parseActivateParams(params: unknown): BrowsingContext.ActivateParameters;
|
|
37
|
-
parseCaptureScreenshotParams(params: unknown): BrowsingContext.CaptureScreenshotParameters;
|
|
38
|
-
parseCloseParams(params: unknown): BrowsingContext.CloseParameters;
|
|
39
|
-
parseCreateParams(params: unknown): BrowsingContext.CreateParameters;
|
|
40
|
-
parseGetTreeParams(params: unknown): BrowsingContext.GetTreeParameters;
|
|
41
|
-
parseHandleUserPromptParams(params: unknown): BrowsingContext.HandleUserPromptParameters;
|
|
42
|
-
parseLocateNodesParams(params: unknown): BrowsingContext.LocateNodesParameters;
|
|
43
|
-
parseNavigateParams(params: unknown): BrowsingContext.NavigateParameters;
|
|
44
|
-
parsePrintParams(params: unknown): BrowsingContext.PrintParameters;
|
|
45
|
-
parseReloadParams(params: unknown): BrowsingContext.ReloadParameters;
|
|
46
|
-
parseSetBypassCspParams(params: unknown): BrowsingContext.SetBypassCspParameters;
|
|
47
|
-
parseSetViewportParams(params: unknown): BrowsingContext.SetViewportParameters;
|
|
48
|
-
parseTraverseHistoryParams(params: unknown): BrowsingContext.TraverseHistoryParameters;
|
|
49
|
-
parseGetSessionParams(params: unknown): Cdp.GetSessionParameters;
|
|
50
|
-
parseResolveRealmParams(params: unknown): Cdp.ResolveRealmParameters;
|
|
51
|
-
parseSendCommandParams(params: unknown): Cdp.SendCommandParameters;
|
|
52
|
-
parseSetClientHintsOverrideParams(params: unknown): UAClientHints.UserAgentClientHints.SetClientHintsOverrideCommand['params'];
|
|
53
|
-
parseSetForcedColorsModeThemeOverrideParams(params: unknown): Emulation.SetForcedColorsModeThemeOverrideParameters;
|
|
54
|
-
parseSetGeolocationOverrideParams(params: unknown): Emulation.SetGeolocationOverrideParameters;
|
|
55
|
-
parseSetLocaleOverrideParams(params: unknown): Emulation.SetLocaleOverrideParameters;
|
|
56
|
-
parseSetNetworkConditionsParams(params: unknown): Emulation.SetNetworkConditionsParameters;
|
|
57
|
-
parseSetScreenOrientationOverrideParams(params: unknown): Emulation.SetScreenOrientationOverrideParameters;
|
|
58
|
-
parseSetScreenSettingsOverrideParams(params: unknown): Emulation.SetScreenSettingsOverrideParameters;
|
|
59
|
-
parseSetScriptingEnabledParams(params: unknown): Emulation.SetScriptingEnabledParameters;
|
|
60
|
-
parseSetScrollbarTypeOverrideParams(params: unknown): Emulation.SetScrollbarTypeOverrideParameters;
|
|
61
|
-
parseSetTimezoneOverrideParams(params: unknown): Emulation.SetTimezoneOverrideParameters;
|
|
62
|
-
parseSetTouchOverrideParams(params: unknown): Emulation.SetTouchOverrideParameters;
|
|
63
|
-
parseSetUserAgentOverrideParams(params: unknown): Emulation.SetUserAgentOverrideParameters;
|
|
64
|
-
parseAddPreloadScriptParams(params: unknown): Script.AddPreloadScriptParameters;
|
|
65
|
-
parseCallFunctionParams(params: unknown): Script.CallFunctionParameters;
|
|
66
|
-
parseDisownParams(params: unknown): Script.DisownParameters;
|
|
67
|
-
parseEvaluateParams(params: unknown): Script.EvaluateParameters;
|
|
68
|
-
parseGetRealmsParams(params: unknown): Script.GetRealmsParameters;
|
|
69
|
-
parseRemovePreloadScriptParams(params: unknown): Script.RemovePreloadScriptParameters;
|
|
70
|
-
parsePerformActionsParams(params: unknown): Input.PerformActionsParameters;
|
|
71
|
-
parseReleaseActionsParams(params: unknown): Input.ReleaseActionsParameters;
|
|
72
|
-
parseSetFilesParams(params: unknown): Input.SetFilesParameters;
|
|
73
|
-
parseAddDataCollectorParams(params: unknown): Network.AddDataCollectorParameters;
|
|
74
|
-
parseAddInterceptParams(params: unknown): Network.AddInterceptParameters;
|
|
75
|
-
parseContinueRequestParams(params: unknown): Network.ContinueRequestParameters;
|
|
76
|
-
parseContinueResponseParams(params: unknown): Network.ContinueResponseParameters;
|
|
77
|
-
parseContinueWithAuthParams(params: unknown): Network.ContinueWithAuthParameters;
|
|
78
|
-
parseDisownDataParams(params: unknown): Network.DisownDataParameters;
|
|
79
|
-
parseFailRequestParams(params: unknown): Network.FailRequestParameters;
|
|
80
|
-
parseGetDataParams(params: unknown): Network.GetDataParameters;
|
|
81
|
-
parseProvideResponseParams(params: unknown): Network.ProvideResponseParameters;
|
|
82
|
-
parseRemoveDataCollectorParams(params: unknown): Network.RemoveDataCollectorParameters;
|
|
83
|
-
parseRemoveInterceptParams(params: unknown): Network.RemoveInterceptParameters;
|
|
84
|
-
parseSetCacheBehaviorParams(params: unknown): Network.SetCacheBehaviorParameters;
|
|
85
|
-
parseSetExtraHeadersParams(params: unknown): Network.SetExtraHeadersParameters;
|
|
86
|
-
parseSetPermissionsParams(params: unknown): Permissions.SetPermissionParameters;
|
|
87
|
-
parseSubscribeParams(params: unknown): Session.SubscribeParameters;
|
|
88
|
-
parseUnsubscribeParams(params: unknown): Session.UnsubscribeByAttributesRequest | Session.UnsubscribeByIdRequest;
|
|
89
|
-
parseDeleteCookiesParams(params: unknown): Storage.DeleteCookiesParameters;
|
|
90
|
-
parseGetCookiesParams(params: unknown): Storage.GetCookiesParameters;
|
|
91
|
-
parseSetCookieParams(params: unknown): Storage.SetCookieParameters;
|
|
92
|
-
parseInstallParams(params: unknown): WebExtension.InstallParameters;
|
|
93
|
-
parseUninstallParams(params: unknown): WebExtension.UninstallParameters;
|
|
94
|
-
}
|