Roll browser-protocol

This roll requires a manual review. See http://go/reviewed-rolls for guidance.

In case of failures or errors, reach out to someone from config/owner/COMMON_OWNERS.

Roll created at https://cr-buildbucket.appspot.com/build/8718882819977049313

R=devtools-waterfall-sheriff-onduty@rotations.google.com

Bug: none
Change-Id: Idd3d0b1de31dc784a35eac2b497aa3c74af8a563
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6414692
Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
This commit is contained in:
devtools-ci-autoroll-builder
2025-03-31 06:29:56 -07:00
committed by Devtools-frontend LUCI CQ
parent 53fc6d324c
commit 8f5d339bb7
8 changed files with 214 additions and 38 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ vars = {
'inspector_protocol_revision': '940abfc668be2591483f7132145593c6a047f3cf',
# Keeping track of the last time we rollerd the browser protocol files.
'chromium_browser_protocol_revision' : '69ba25d7708ae207fc6a879039984dc4dd71a056',
'chromium_browser_protocol_revision' : '43e4a99fb37358d50c74187b7944a4519683b8a7',
'clang_format_url': 'https://chromium.googlesource.com/external/github.com/llvm/llvm-project/clang/tools/clang-format.git',
'clang_format_revision': '37f6e68a107df43b7d7e044fd36a13cbae3413f2',
@@ -1388,11 +1388,14 @@ inspectorBackend.registerCommand("BluetoothEmulation.disable", [], [], "Disable
inspectorBackend.registerCommand("BluetoothEmulation.simulatePreconnectedPeripheral", [{"name": "address", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "name", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "manufacturerData", "type": "array", "optional": false, "description": "", "typeRef": "BluetoothEmulation.ManufacturerData"}, {"name": "knownServiceUuids", "type": "array", "optional": false, "description": "", "typeRef": "string"}], [], "Simulates a peripheral with |address|, |name| and |knownServiceUuids| that has already been connected to the system.");
inspectorBackend.registerCommand("BluetoothEmulation.simulateAdvertisement", [{"name": "entry", "type": "object", "optional": false, "description": "", "typeRef": "BluetoothEmulation.ScanEntry"}], [], "Simulates an advertisement packet described in |entry| being received by the central.");
inspectorBackend.registerCommand("BluetoothEmulation.simulateGATTOperationResponse", [{"name": "address", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "type", "type": "string", "optional": false, "description": "", "typeRef": "BluetoothEmulation.GATTOperationType"}, {"name": "code", "type": "number", "optional": false, "description": "", "typeRef": null}], [], "Simulates the response code from the peripheral with |address| for a GATT operation of |type|. The |code| value follows the HCI Error Codes from Bluetooth Core Specification Vol 2 Part D 1.3 List Of Error Codes.");
inspectorBackend.registerCommand("BluetoothEmulation.addService", [{"name": "address", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "serviceUuid", "type": "string", "optional": false, "description": "", "typeRef": null}], ["id"], "Adds a service with |uuid| to the peripheral with |address|.");
inspectorBackend.registerCommand("BluetoothEmulation.removeService", [{"name": "address", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "id", "type": "string", "optional": false, "description": "", "typeRef": null}], [], "Removes the service respresented by |id| from the peripheral with |address|.");
inspectorBackend.registerCommand("BluetoothEmulation.addService", [{"name": "address", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "serviceUuid", "type": "string", "optional": false, "description": "", "typeRef": null}], ["serviceId"], "Adds a service with |serviceUuid| to the peripheral with |address|.");
inspectorBackend.registerCommand("BluetoothEmulation.removeService", [{"name": "address", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "serviceId", "type": "string", "optional": false, "description": "", "typeRef": null}], [], "Removes the service respresented by |serviceId| from the peripheral with |address|.");
inspectorBackend.registerCommand("BluetoothEmulation.addCharacteristic", [{"name": "address", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "serviceId", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "characteristicUuid", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "properties", "type": "object", "optional": false, "description": "", "typeRef": "BluetoothEmulation.CharacteristicProperties"}], ["characteristicId"], "Adds a characteristic with |characteristicUuid| and |properties| to the service represented by |serviceId| in the peripheral with |address|.");
inspectorBackend.registerCommand("BluetoothEmulation.removeCharacteristic", [{"name": "address", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "serviceId", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "characteristicId", "type": "string", "optional": false, "description": "", "typeRef": null}], [], "Removes the characteristic respresented by |characteristicId| from the service respresented by |serviceId| in the peripheral with |address|.");
inspectorBackend.registerType("BluetoothEmulation.ManufacturerData", [{"name": "key", "type": "number", "optional": false, "description": "Company identifier https://bitbucket.org/bluetooth-SIG/public/src/main/assigned_numbers/company_identifiers/company_identifiers.yaml https://usb.org/developers", "typeRef": null}, {"name": "data", "type": "string", "optional": false, "description": "Manufacturer-specific data", "typeRef": null}]);
inspectorBackend.registerType("BluetoothEmulation.ScanRecord", [{"name": "name", "type": "string", "optional": true, "description": "", "typeRef": null}, {"name": "uuids", "type": "array", "optional": true, "description": "", "typeRef": "string"}, {"name": "appearance", "type": "number", "optional": true, "description": "Stores the external appearance description of the device.", "typeRef": null}, {"name": "txPower", "type": "number", "optional": true, "description": "Stores the transmission power of a broadcasting device.", "typeRef": null}, {"name": "manufacturerData", "type": "array", "optional": true, "description": "Key is the company identifier and the value is an array of bytes of manufacturer specific data.", "typeRef": "BluetoothEmulation.ManufacturerData"}]);
inspectorBackend.registerType("BluetoothEmulation.ScanEntry", [{"name": "deviceAddress", "type": "string", "optional": false, "description": "", "typeRef": null}, {"name": "rssi", "type": "number", "optional": false, "description": "", "typeRef": null}, {"name": "scanRecord", "type": "object", "optional": false, "description": "", "typeRef": "BluetoothEmulation.ScanRecord"}]);
inspectorBackend.registerType("BluetoothEmulation.CharacteristicProperties", [{"name": "broadcast", "type": "boolean", "optional": true, "description": "", "typeRef": null}, {"name": "read", "type": "boolean", "optional": true, "description": "", "typeRef": null}, {"name": "writeWithoutResponse", "type": "boolean", "optional": true, "description": "", "typeRef": null}, {"name": "write", "type": "boolean", "optional": true, "description": "", "typeRef": null}, {"name": "notify", "type": "boolean", "optional": true, "description": "", "typeRef": null}, {"name": "indicate", "type": "boolean", "optional": true, "description": "", "typeRef": null}, {"name": "authenticatedSignedWrites", "type": "boolean", "optional": true, "description": "", "typeRef": null}, {"name": "extendedProperties", "type": "boolean", "optional": true, "description": "", "typeRef": null}]);
// Debugger.
inspectorBackend.registerEnum("Debugger.ScopeType", {Global: "global", Local: "local", With: "with", Closure: "closure", Catch: "catch", Block: "block", Script: "script", Eval: "eval", Module: "module", WasmExpressionStack: "wasm-expression-stack"});
+19 -2
View File
@@ -4744,19 +4744,36 @@ export namespace ProtocolMapping {
returnType: void;
};
/**
* Adds a service with |uuid| to the peripheral with |address|.
* Adds a service with |serviceUuid| to the peripheral with |address|.
*/
'BluetoothEmulation.addService': {
paramsType: [Protocol.BluetoothEmulation.AddServiceRequest];
returnType: Protocol.BluetoothEmulation.AddServiceResponse;
};
/**
* Removes the service respresented by |id| from the peripheral with |address|.
* Removes the service respresented by |serviceId| from the peripheral with
* |address|.
*/
'BluetoothEmulation.removeService': {
paramsType: [Protocol.BluetoothEmulation.RemoveServiceRequest];
returnType: void;
};
/**
* Adds a characteristic with |characteristicUuid| and |properties| to the
* service represented by |serviceId| in the peripheral with |address|.
*/
'BluetoothEmulation.addCharacteristic': {
paramsType: [Protocol.BluetoothEmulation.AddCharacteristicRequest];
returnType: Protocol.BluetoothEmulation.AddCharacteristicResponse;
};
/**
* Removes the characteristic respresented by |characteristicId| from the
* service respresented by |serviceId| in the peripheral with |address|.
*/
'BluetoothEmulation.removeCharacteristic': {
paramsType: [Protocol.BluetoothEmulation.RemoveCharacteristicRequest];
returnType: void;
};
/**
* Continues execution until specific location is reached.
*/
+15 -2
View File
@@ -4219,15 +4219,28 @@ declare namespace ProtocolProxyApi {
invoke_simulateGATTOperationResponse(params: Protocol.BluetoothEmulation.SimulateGATTOperationResponseRequest): Promise<Protocol.ProtocolResponseWithError>;
/**
* Adds a service with |uuid| to the peripheral with |address|.
* Adds a service with |serviceUuid| to the peripheral with |address|.
*/
invoke_addService(params: Protocol.BluetoothEmulation.AddServiceRequest): Promise<Protocol.BluetoothEmulation.AddServiceResponse>;
/**
* Removes the service respresented by |id| from the peripheral with |address|.
* Removes the service respresented by |serviceId| from the peripheral with
* |address|.
*/
invoke_removeService(params: Protocol.BluetoothEmulation.RemoveServiceRequest): Promise<Protocol.ProtocolResponseWithError>;
/**
* Adds a characteristic with |characteristicUuid| and |properties| to the
* service represented by |serviceId| in the peripheral with |address|.
*/
invoke_addCharacteristic(params: Protocol.BluetoothEmulation.AddCharacteristicRequest): Promise<Protocol.BluetoothEmulation.AddCharacteristicResponse>;
/**
* Removes the characteristic respresented by |characteristicId| from the
* service respresented by |serviceId| in the peripheral with |address|.
*/
invoke_removeCharacteristic(params: Protocol.BluetoothEmulation.RemoveCharacteristicRequest): Promise<Protocol.ProtocolResponseWithError>;
}
export interface BluetoothEmulationDispatcher {
/**
+37 -2
View File
@@ -18360,6 +18360,21 @@ export namespace BluetoothEmulation {
scanRecord: ScanRecord;
}
/**
* Describes the properties of a characteristic. This follows Bluetooth Core
* Specification BT 4.2 Vol 3 Part G 3.3.1. Characteristic Properties.
*/
export interface CharacteristicProperties {
broadcast?: boolean;
read?: boolean;
writeWithoutResponse?: boolean;
write?: boolean;
notify?: boolean;
indicate?: boolean;
authenticatedSignedWrites?: boolean;
extendedProperties?: boolean;
}
export interface EnableRequest {
/**
* State of the simulated central.
@@ -18404,12 +18419,32 @@ export namespace BluetoothEmulation {
/**
* An identifier that uniquely represents this service.
*/
id: string;
serviceId: string;
}
export interface RemoveServiceRequest {
address: string;
id: string;
serviceId: string;
}
export interface AddCharacteristicRequest {
address: string;
serviceId: string;
characteristicUuid: string;
properties: CharacteristicProperties;
}
export interface AddCharacteristicResponse extends ProtocolResponseWithError {
/**
* An identifier that uniquely represents this characteristic.
*/
characteristicId: string;
}
export interface RemoveCharacteristicRequest {
address: string;
serviceId: string;
characteristicId: string;
}
/**
@@ -111,11 +111,6 @@ export const NativeFunctions = [
signatures: [["name"],["?options"]],
receivers: ["CookieStore"]
},
{
name: "get",
signatures: [["instrumentKey"]],
receivers: ["PaymentInstruments"]
},
{
name: "set",
signatures: [["v"]],
@@ -171,11 +166,6 @@ export const NativeFunctions = [
signatures: [["cookieInit"],["name","value"]],
receivers: ["CookieStore"]
},
{
name: "set",
signatures: [["instrumentKey","details"]],
receivers: ["PaymentInstruments"]
},
{
name: "toLocaleString",
signatures: [["?locales","?options"]],
@@ -1581,11 +1571,6 @@ export const NativeFunctions = [
signatures: [["name"],["options"]],
receivers: ["CookieStore"]
},
{
name: "delete",
signatures: [["instrumentKey"]],
receivers: ["PaymentInstruments"]
},
{
name: "matchAll",
signatures: [["?request","?options"]],
@@ -1656,11 +1641,6 @@ export const NativeFunctions = [
signatures: [["value"]],
receivers: ["Set","ReadonlySet","WeakSet","ReadonlySetLike"]
},
{
name: "has",
signatures: [["instrumentKey"]],
receivers: ["PaymentInstruments"]
},
{
name: "open",
signatures: [["cacheName"]],
@@ -8855,7 +8835,7 @@ export const NativeFunctions = [
},
{
name: "copyBufferToBuffer",
signatures: [["src","srcOffset","dst","dstOffset","size"]]
signatures: [["source","destination","?size"],["source","sourceOffset","destination","destinationOffset","?size"]]
},
{
name: "copyBufferToTexture",
@@ -27922,6 +27922,53 @@
"$ref": "ScanRecord"
}
]
},
{
"id": "CharacteristicProperties",
"description": "Describes the properties of a characteristic. This follows Bluetooth Core\nSpecification BT 4.2 Vol 3 Part G 3.3.1. Characteristic Properties.",
"type": "object",
"properties": [
{
"name": "broadcast",
"optional": true,
"type": "boolean"
},
{
"name": "read",
"optional": true,
"type": "boolean"
},
{
"name": "writeWithoutResponse",
"optional": true,
"type": "boolean"
},
{
"name": "write",
"optional": true,
"type": "boolean"
},
{
"name": "notify",
"optional": true,
"type": "boolean"
},
{
"name": "indicate",
"optional": true,
"type": "boolean"
},
{
"name": "authenticatedSignedWrites",
"optional": true,
"type": "boolean"
},
{
"name": "extendedProperties",
"optional": true,
"type": "boolean"
}
]
}
],
"commands": [
@@ -28014,7 +28061,7 @@
},
{
"name": "addService",
"description": "Adds a service with |uuid| to the peripheral with |address|.",
"description": "Adds a service with |serviceUuid| to the peripheral with |address|.",
"parameters": [
{
"name": "address",
@@ -28027,7 +28074,7 @@
],
"returns": [
{
"name": "id",
"name": "serviceId",
"description": "An identifier that uniquely represents this service.",
"type": "string"
}
@@ -28035,14 +28082,61 @@
},
{
"name": "removeService",
"description": "Removes the service respresented by |id| from the peripheral with |address|.",
"description": "Removes the service respresented by |serviceId| from the peripheral with\n|address|.",
"parameters": [
{
"name": "address",
"type": "string"
},
{
"name": "id",
"name": "serviceId",
"type": "string"
}
]
},
{
"name": "addCharacteristic",
"description": "Adds a characteristic with |characteristicUuid| and |properties| to the\nservice represented by |serviceId| in the peripheral with |address|.",
"parameters": [
{
"name": "address",
"type": "string"
},
{
"name": "serviceId",
"type": "string"
},
{
"name": "characteristicUuid",
"type": "string"
},
{
"name": "properties",
"$ref": "CharacteristicProperties"
}
],
"returns": [
{
"name": "characteristicId",
"description": "An identifier that uniquely represents this characteristic.",
"type": "string"
}
]
},
{
"name": "removeCharacteristic",
"description": "Removes the characteristic respresented by |characteristicId| from the\nservice respresented by |serviceId| in the peripheral with |address|.",
"parameters": [
{
"name": "address",
"type": "string"
},
{
"name": "serviceId",
"type": "string"
},
{
"name": "characteristicId",
"type": "string"
}
]
@@ -13266,6 +13266,19 @@ experimental domain BluetoothEmulation
integer rssi
ScanRecord scanRecord
# Describes the properties of a characteristic. This follows Bluetooth Core
# Specification BT 4.2 Vol 3 Part G 3.3.1. Characteristic Properties.
type CharacteristicProperties extends object
properties
optional boolean broadcast
optional boolean read
optional boolean writeWithoutResponse
optional boolean write
optional boolean notify
optional boolean indicate
optional boolean authenticatedSignedWrites
optional boolean extendedProperties
# Enable the BluetoothEmulation domain.
command enable
parameters
@@ -13307,20 +13320,41 @@ experimental domain BluetoothEmulation
GATTOperationType type
integer code
# Adds a service with |uuid| to the peripheral with |address|.
# Adds a service with |serviceUuid| to the peripheral with |address|.
command addService
parameters
string address
string serviceUuid
returns
# An identifier that uniquely represents this service.
string id
string serviceId
# Removes the service respresented by |id| from the peripheral with |address|.
# Removes the service respresented by |serviceId| from the peripheral with
# |address|.
command removeService
parameters
string address
string id
string serviceId
# Adds a characteristic with |characteristicUuid| and |properties| to the
# service represented by |serviceId| in the peripheral with |address|.
command addCharacteristic
parameters
string address
string serviceId
string characteristicUuid
CharacteristicProperties properties
returns
# An identifier that uniquely represents this characteristic.
string characteristicId
# Removes the characteristic respresented by |characteristicId| from the
# service respresented by |serviceId| in the peripheral with |address|.
command removeCharacteristic
parameters
string address
string serviceId
string characteristicId
# Event for when a GATT operation of |type| to the peripheral with |address|
# happened.