Skip to content

Commit

Permalink
Roll protocol to r1337664
Browse files Browse the repository at this point in the history
  • Loading branch information
devtools-bot committed Aug 6, 2024
1 parent 7daeda3 commit 5b75e95
Show file tree
Hide file tree
Showing 8 changed files with 449 additions and 16 deletions.
90 changes: 75 additions & 15 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,81 @@


## Roll protocol to r1337664 — _2024-08-06T04:28:23.000Z_
###### Diff: [`7daeda3...b07a2a5`](https://github.com/ChromeDevTools/devtools-protocol/compare/7daeda3...b07a2a5)

```diff
@@ browser_protocol.pdl:12612 @@ experimental domain PWA
# supported yet.
optional boolean linkCapturing
optional DisplayMode displayMode
+
+# This domain allows configuring virtual Bluetooth devices to test
+# the web-bluetooth API.
+experimental domain BluetoothEmulation
+ # Indicates the various states of Central.
+ type CentralState extends string
+ enum
+ absent
+ powered-off
+ powered-on
+
+ # Stores the manufacturer data
+ type ManufacturerData extends object
+ properties
+ # Company identifier
+ # https://bitbucket.org/bluetooth-SIG/public/src/main/assigned_numbers/company_identifiers/company_identifiers.yaml
+ # https://usb.org/developers
+ integer key
+ # Manufacturer-specific data
+ binary data
+
+ # Stores the byte data of the advertisement packet sent by a Bluetooth device.
+ type ScanRecord extends object
+ properties
+ optional string name
+ optional array of string uuids
+ # Stores the external appearance description of the device.
+ optional integer appearance
+ # Stores the transmission power of a broadcasting device.
+ optional integer txPower
+ # Key is the company identifier and the value is an array of bytes of
+ # manufacturer specific data.
+ optional array of ManufacturerData manufacturerData
+
+ # Stores the advertisement packet information that is sent by a Bluetooth device.
+ type ScanEntry extends object
+ properties
+ string deviceAddress
+ integer rssi
+ ScanRecord scanRecord
+
+ # Enable the BluetoothEmulation domain.
+ command enable
+ parameters
+ # State of the simulated central.
+ CentralState state
+
+ # Disable the BluetoothEmulation domain.
+ command disable
+
+ # Simulates a peripheral with |address|, |name| and |knownServiceUuids|
+ # that has already been connected to the system.
+ command simulatePreconnectedPeripheral
+ parameters
+ string address
+ string name
+ array of ManufacturerData manufacturerData
+ array of string knownServiceUuids
+
+ # Simulates an advertisement packet described in |entry| being received by
+ # the central.
+ command simulateAdvertisement
+ parameters
+ ScanEntry entry
```

## Roll protocol to r1336433 — _2024-08-02T04:28:52.000Z_
###### Diff: [`62fe5c9...befd4af`](https://github.com/ChromeDevTools/devtools-protocol/compare/62fe5c9...befd4af)
###### Diff: [`62fe5c9...7daeda3`](https://github.com/ChromeDevTools/devtools-protocol/compare/62fe5c9...7daeda3)

```diff
@@ browser_protocol.pdl:2030 @@ experimental domain CSS
Expand Down Expand Up @@ -12250,18 +12324,4 @@ index 09c420e..bd277eb 100644
+ optional array of InheritedPseudoElementMatches inheritedPseudoElements
# A list of CSS keyframed animations matching this node.
optional array of CSSKeyframesRule cssKeyframesRules
```

## Roll protocol to r977469 — _2022-03-04T03:15:12.000Z_
###### Diff: [`d232328...2e0912d`](https://github.com/ChromeDevTools/devtools-protocol/compare/d232328...2e0912d)

```diff
@@ browser_protocol.pdl:791 @@ experimental domain Audits
ClientMetadataHttpNotFound
ClientMetadataNoResponse
ClientMetadataInvalidResponse
+ ClientMetadataMissingPrivacyPolicyUrl
ErrorFetchingSignin
InvalidSigninResponse
AccountsHttpNotFound
```
149 changes: 149 additions & 0 deletions json/browser_protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -26656,6 +26656,155 @@
]
}
]
},
{
"domain": "BluetoothEmulation",
"description": "This domain allows configuring virtual Bluetooth devices to test\nthe web-bluetooth API.",
"experimental": true,
"types": [
{
"id": "CentralState",
"description": "Indicates the various states of Central.",
"type": "string",
"enum": [
"absent",
"powered-off",
"powered-on"
]
},
{
"id": "ManufacturerData",
"description": "Stores the manufacturer data",
"type": "object",
"properties": [
{
"name": "key",
"description": "Company identifier\nhttps://bitbucket.org/bluetooth-SIG/public/src/main/assigned_numbers/company_identifiers/company_identifiers.yaml\nhttps://usb.org/developers",
"type": "integer"
},
{
"name": "data",
"description": "Manufacturer-specific data (Encoded as a base64 string when passed over JSON)",
"type": "string"
}
]
},
{
"id": "ScanRecord",
"description": "Stores the byte data of the advertisement packet sent by a Bluetooth device.",
"type": "object",
"properties": [
{
"name": "name",
"optional": true,
"type": "string"
},
{
"name": "uuids",
"optional": true,
"type": "array",
"items": {
"type": "string"
}
},
{
"name": "appearance",
"description": "Stores the external appearance description of the device.",
"optional": true,
"type": "integer"
},
{
"name": "txPower",
"description": "Stores the transmission power of a broadcasting device.",
"optional": true,
"type": "integer"
},
{
"name": "manufacturerData",
"description": "Key is the company identifier and the value is an array of bytes of\nmanufacturer specific data.",
"optional": true,
"type": "array",
"items": {
"$ref": "ManufacturerData"
}
}
]
},
{
"id": "ScanEntry",
"description": "Stores the advertisement packet information that is sent by a Bluetooth device.",
"type": "object",
"properties": [
{
"name": "deviceAddress",
"type": "string"
},
{
"name": "rssi",
"type": "integer"
},
{
"name": "scanRecord",
"$ref": "ScanRecord"
}
]
}
],
"commands": [
{
"name": "enable",
"description": "Enable the BluetoothEmulation domain.",
"parameters": [
{
"name": "state",
"description": "State of the simulated central.",
"$ref": "CentralState"
}
]
},
{
"name": "disable",
"description": "Disable the BluetoothEmulation domain."
},
{
"name": "simulatePreconnectedPeripheral",
"description": "Simulates a peripheral with |address|, |name| and |knownServiceUuids|\nthat has already been connected to the system.",
"parameters": [
{
"name": "address",
"type": "string"
},
{
"name": "name",
"type": "string"
},
{
"name": "manufacturerData",
"type": "array",
"items": {
"$ref": "ManufacturerData"
}
},
{
"name": "knownServiceUuids",
"type": "array",
"items": {
"type": "string"
}
}
]
},
{
"name": "simulateAdvertisement",
"description": "Simulates an advertisement packet described in |entry| being received by\nthe central.",
"parameters": [
{
"name": "entry",
"$ref": "ScanEntry"
}
]
}
]
}
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "devtools-protocol",
"version": "0.0.1336433",
"version": "0.0.1337664",
"description": "The Chrome DevTools Protocol JSON",
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
"author": "The Chromium Authors",
Expand Down
64 changes: 64 additions & 0 deletions pdl/browser_protocol.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -12612,3 +12612,67 @@ experimental domain PWA
# supported yet.
optional boolean linkCapturing
optional DisplayMode displayMode

# This domain allows configuring virtual Bluetooth devices to test
# the web-bluetooth API.
experimental domain BluetoothEmulation
# Indicates the various states of Central.
type CentralState extends string
enum
absent
powered-off
powered-on

# Stores the manufacturer data
type ManufacturerData extends object
properties
# Company identifier
# https://bitbucket.org/bluetooth-SIG/public/src/main/assigned_numbers/company_identifiers/company_identifiers.yaml
# https://usb.org/developers
integer key
# Manufacturer-specific data
binary data

# Stores the byte data of the advertisement packet sent by a Bluetooth device.
type ScanRecord extends object
properties
optional string name
optional array of string uuids
# Stores the external appearance description of the device.
optional integer appearance
# Stores the transmission power of a broadcasting device.
optional integer txPower
# Key is the company identifier and the value is an array of bytes of
# manufacturer specific data.
optional array of ManufacturerData manufacturerData

# Stores the advertisement packet information that is sent by a Bluetooth device.
type ScanEntry extends object
properties
string deviceAddress
integer rssi
ScanRecord scanRecord

# Enable the BluetoothEmulation domain.
command enable
parameters
# State of the simulated central.
CentralState state

# Disable the BluetoothEmulation domain.
command disable

# Simulates a peripheral with |address|, |name| and |knownServiceUuids|
# that has already been connected to the system.
command simulatePreconnectedPeripheral
parameters
string address
string name
array of ManufacturerData manufacturerData
array of string knownServiceUuids

# Simulates an advertisement packet described in |entry| being received by
# the central.
command simulateAdvertisement
parameters
ScanEntry entry
30 changes: 30 additions & 0 deletions types/protocol-mapping.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5079,6 +5079,36 @@ export namespace ProtocolMapping {
paramsType: [Protocol.PWA.ChangeAppUserSettingsRequest];
returnType: void;
};
/**
* Enable the BluetoothEmulation domain.
*/
'BluetoothEmulation.enable': {
paramsType: [Protocol.BluetoothEmulation.EnableRequest];
returnType: void;
};
/**
* Disable the BluetoothEmulation domain.
*/
'BluetoothEmulation.disable': {
paramsType: [];
returnType: void;
};
/**
* Simulates a peripheral with |address|, |name| and |knownServiceUuids|
* that has already been connected to the system.
*/
'BluetoothEmulation.simulatePreconnectedPeripheral': {
paramsType: [Protocol.BluetoothEmulation.SimulatePreconnectedPeripheralRequest];
returnType: void;
};
/**
* Simulates an advertisement packet described in |entry| being received by
* the central.
*/
'BluetoothEmulation.simulateAdvertisement': {
paramsType: [Protocol.BluetoothEmulation.SimulateAdvertisementRequest];
returnType: void;
};
}
}

Expand Down
Loading

0 comments on commit 5b75e95

Please sign in to comment.