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

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

Issue 2488283003: bluetooth: web: Rename Blacklist to Blocklist (Closed)
Patch Set: Remove third_party/WebKit/LayoutTests/imported/wpt/bluetooth/bluetooth-helpers.js Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module blink.mojom; 5 module blink.mojom;
6 6
7 import "device/bluetooth/public/interfaces/uuid.mojom"; 7 import "device/bluetooth/public/interfaces/uuid.mojom";
8 8
9 // Result codes that can occur during Web Bluetooth execution, which are 9 // Result codes that can occur during Web Bluetooth execution, which are
10 // transformed to a DOMException in Source/modules/bluetooth/BluetoothError.cpp. 10 // transformed to a DOMException in Source/modules/bluetooth/BluetoothError.cpp.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 WEB_BLUETOOTH_NOT_SUPPORTED, 54 WEB_BLUETOOTH_NOT_SUPPORTED,
55 BLUETOOTH_LOW_ENERGY_NOT_AVAILABLE, 55 BLUETOOTH_LOW_ENERGY_NOT_AVAILABLE,
56 // NotSupportedError: 56 // NotSupportedError:
57 GATT_UNKNOWN_ERROR, 57 GATT_UNKNOWN_ERROR,
58 GATT_UNKNOWN_FAILURE, 58 GATT_UNKNOWN_FAILURE,
59 GATT_NOT_PERMITTED, 59 GATT_NOT_PERMITTED,
60 GATT_NOT_SUPPORTED, 60 GATT_NOT_SUPPORTED,
61 GATT_UNTRANSLATED_ERROR_CODE, 61 GATT_UNTRANSLATED_ERROR_CODE,
62 // SecurityError: 62 // SecurityError:
63 GATT_NOT_AUTHORIZED, 63 GATT_NOT_AUTHORIZED,
64 BLACKLISTED_CHARACTERISTIC_UUID, 64 BLOCKLISTED_CHARACTERISTIC_UUID,
65 BLACKLISTED_READ, 65 BLOCKLISTED_READ,
66 BLACKLISTED_WRITE, 66 BLOCKLISTED_WRITE,
67 NOT_ALLOWED_TO_ACCESS_SERVICE, 67 NOT_ALLOWED_TO_ACCESS_SERVICE,
68 REQUEST_DEVICE_WITH_BLACKLISTED_UUID, 68 REQUEST_DEVICE_WITH_BLOCKLISTED_UUID,
69 REQUEST_DEVICE_FROM_CROSS_ORIGIN_IFRAME, 69 REQUEST_DEVICE_FROM_CROSS_ORIGIN_IFRAME,
70 REQUEST_DEVICE_WITHOUT_FRAME, 70 REQUEST_DEVICE_WITHOUT_FRAME,
71 }; 71 };
72 72
73 struct WebBluetoothScanFilter { 73 struct WebBluetoothScanFilter {
74 array<bluetooth.mojom.UUID>? services; 74 array<bluetooth.mojom.UUID>? services;
75 string? name; 75 string? name;
76 string? name_prefix; 76 string? name_prefix;
77 }; 77 };
78 78
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // connection to the device didn't exist already. If a GATT connection existed 123 // connection to the device didn't exist already. If a GATT connection existed
124 // already then this function increases the ref count to keep that connection 124 // already then this function increases the ref count to keep that connection
125 // alive. 125 // alive.
126 RemoteServerConnect(WebBluetoothDeviceId device_id) => (WebBluetoothResult res ult); 126 RemoteServerConnect(WebBluetoothDeviceId device_id) => (WebBluetoothResult res ult);
127 127
128 // If a GATT connection exists for Device with |device_id| then decreases 128 // If a GATT connection exists for Device with |device_id| then decreases
129 // the ref count for that connection. 129 // the ref count for that connection.
130 RemoteServerDisconnect(WebBluetoothDeviceId device_id); 130 RemoteServerDisconnect(WebBluetoothDeviceId device_id);
131 131
132 // If |services_uuid| is present, returns services with |services_uuid|. 132 // If |services_uuid| is present, returns services with |services_uuid|.
133 // Otherwise returns all non-blacklisted services. 133 // Otherwise returns all non-blocklisted services.
134 // If |quantity| == WebBluetoothGATTQueryQuantity::SINGLE, only one 134 // If |quantity| == WebBluetoothGATTQueryQuantity::SINGLE, only one
135 // service will be returned. 135 // service will be returned.
136 RemoteServerGetPrimaryServices( 136 RemoteServerGetPrimaryServices(
137 WebBluetoothDeviceId device_id, 137 WebBluetoothDeviceId device_id,
138 WebBluetoothGATTQueryQuantity quantity, 138 WebBluetoothGATTQueryQuantity quantity,
139 bluetooth.mojom.UUID? services_uuid) => ( 139 bluetooth.mojom.UUID? services_uuid) => (
140 WebBluetoothResult result, 140 WebBluetoothResult result,
141 array<WebBluetoothRemoteGATTService>? services); 141 array<WebBluetoothRemoteGATTService>? services);
142 142
143 // Returns the Characteristics of a GATT Service with |service_instance_id|. 143 // Returns the Characteristics of a GATT Service with |service_instance_id|.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 }; 180 };
181 181
182 // Classes should implement this interface and pass an associated pointer 182 // Classes should implement this interface and pass an associated pointer
183 // bound to them to the WebBluetoothService by using SetClient. Classes 183 // bound to them to the WebBluetoothService by using SetClient. Classes
184 // that do this will be notified of device events e.g. device disconnection. 184 // that do this will be notified of device events e.g. device disconnection.
185 interface WebBluetoothServiceClient { 185 interface WebBluetoothServiceClient {
186 RemoteCharacteristicValueChanged(string characteristic_instance_id, 186 RemoteCharacteristicValueChanged(string characteristic_instance_id,
187 array<uint8> value); 187 array<uint8> value);
188 GattServerDisconnected(WebBluetoothDeviceId device_id); 188 GattServerDisconnected(WebBluetoothDeviceId device_id);
189 }; 189 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698