Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1337)

Unified Diff: third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom

Issue 2019853002: bluetooth: Use WebBluetoothDeviceId instead of string (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-uuid-typemap
Patch Set: Rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/public/blink.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
diff --git a/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom b/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
index aa83d8d03692516cf8eefe22e8340449af6ca0e5..11e5b1603f5568148f80022a170ea34a988c9218 100644
--- a/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
+++ b/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
@@ -90,8 +90,12 @@ enum WebBluetoothGATTQueryQuantity {
MULTIPLE
};
+struct WebBluetoothDeviceId {
+ string device_id;
+};
+
struct WebBluetoothDevice {
- string id;
+ WebBluetoothDeviceId id;
string? name;
array<string> uuids;
};
@@ -122,18 +126,18 @@ interface WebBluetoothService {
// connection to the device didn't exist already. If a GATT connection existed
// already then this function increases the ref count to keep that connection
// alive.
- RemoteServerConnect(string device_id) => (WebBluetoothError error);
+ RemoteServerConnect(WebBluetoothDeviceId device_id) => (WebBluetoothError error);
// If a GATT connection exists for Device with |device_id| then decreases
// the ref count for that connection.
- RemoteServerDisconnect(string device_id);
+ RemoteServerDisconnect(WebBluetoothDeviceId device_id);
// If |services_uuid| is present, returns services with |services_uuid|.
// Otherwise returns all non-blacklisted services.
// If |quantity| == WebBluetoothGATTQueryQuantity::SINGLE, only one
// service will be returned.
RemoteServerGetPrimaryServices(
- string device_id,
+ WebBluetoothDeviceId device_id,
WebBluetoothGATTQueryQuantity quantity,
device.mojom.BluetoothUUID? services_uuid) => (
WebBluetoothError error,
@@ -184,5 +188,5 @@ interface WebBluetoothService {
interface WebBluetoothServiceClient {
RemoteCharacteristicValueChanged(string characteristic_instance_id,
array<uint8> value);
- GattServerDisconnected(string device_id);
+ GattServerDisconnected(WebBluetoothDeviceId device_id);
};
« no previous file with comments | « third_party/WebKit/public/blink.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698