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 2752663002: Remove RemoteServerDisconnect() from web_bluetooth.mojom (Closed)
Patch Set: address ortuno@'s comments Created 3 years, 8 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 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 // Bluetooth Terminology: 9 // Bluetooth Terminology:
10 // 10 //
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 153
154 // Creates a GATT Connection to a Bluetooth Device identified by |device_id| 154 // Creates a GATT Connection to a Bluetooth Device identified by |device_id|
155 // if a connection to the device didn't exist already. If a GATT connection 155 // if a connection to the device didn't exist already. If a GATT connection
156 // existed already then this function increases the ref count to keep that 156 // existed already then this function increases the ref count to keep that
157 // connection alive. 157 // connection alive.
158 // Returns the result of the connection request. 158 // Returns the result of the connection request.
159 RemoteServerConnect( 159 RemoteServerConnect(
160 WebBluetoothDeviceId device_id, 160 WebBluetoothDeviceId device_id,
161 associated WebBluetoothServerClient client) => (WebBluetoothResult result); 161 associated WebBluetoothServerClient client) => (WebBluetoothResult result);
162 162
163 // If a GATT connection exists for Device identified by |device_id| then
164 // decreases the ref count for that connection.
165 RemoteServerDisconnect(WebBluetoothDeviceId device_id);
166
167 // Returns the Services of a GATT Device identified by |device_id|. 163 // Returns the Services of a GATT Device identified by |device_id|.
168 // If |services_uuid| is present, filters services by |services_uuid|. 164 // If |services_uuid| is present, filters services by |services_uuid|.
169 // Otherwise returns all non-blocklisted services. 165 // Otherwise returns all non-blocklisted services.
170 // If |quantity| == WebBluetoothGATTQueryQuantity::SINGLE, at most one 166 // If |quantity| == WebBluetoothGATTQueryQuantity::SINGLE, at most one
171 // service will be returned. 167 // service will be returned.
172 RemoteServerGetPrimaryServices( 168 RemoteServerGetPrimaryServices(
173 WebBluetoothDeviceId device_id, 169 WebBluetoothDeviceId device_id,
174 WebBluetoothGATTQueryQuantity quantity, 170 WebBluetoothGATTQueryQuantity quantity,
175 bluetooth.mojom.UUID? services_uuid) => ( 171 bluetooth.mojom.UUID? services_uuid) => (
176 WebBluetoothResult result, 172 WebBluetoothResult result,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // Called when a device disconnects. 253 // Called when a device disconnects.
258 GATTServerDisconnected(); 254 GATTServerDisconnected();
259 }; 255 };
260 256
261 // Classes that implement this interface will be notified of characteristic 257 // Classes that implement this interface will be notified of characteristic
262 // events. 258 // events.
263 interface WebBluetoothCharacteristicClient { 259 interface WebBluetoothCharacteristicClient {
264 // Called when we receive a notification for the characteristic. 260 // Called when we receive a notification for the characteristic.
265 RemoteCharacteristicValueChanged(array<uint8> value); 261 RemoteCharacteristicValueChanged(array<uint8> value);
266 }; 262 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698