OLD | NEW |
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 // Errors that can occur during Web Bluetooth execution, which are transformed | 7 // Errors that can occur during Web Bluetooth execution, which are transformed |
8 // to a DOMException in Source/modules/bluetooth/BluetoothError.cpp. | 8 // to a DOMException in Source/modules/bluetooth/BluetoothError.cpp. |
9 // | 9 // |
10 // These errors all produce constant message strings. If a particular message | 10 // These errors all produce constant message strings. If a particular message |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 RemoteCharacteristicStopNotifications( | 153 RemoteCharacteristicStopNotifications( |
154 string characteristic_instance_id) => (); | 154 string characteristic_instance_id) => (); |
155 }; | 155 }; |
156 | 156 |
157 // Classes should implement this interface and pass an associated pointer | 157 // Classes should implement this interface and pass an associated pointer |
158 // bound to them to the WebBluetoothService by using SetClient. Classes | 158 // bound to them to the WebBluetoothService by using SetClient. Classes |
159 // that do this will be notified of device events e.g. device disconnection. | 159 // that do this will be notified of device events e.g. device disconnection. |
160 interface WebBluetoothServiceClient { | 160 interface WebBluetoothServiceClient { |
161 RemoteCharacteristicValueChanged(string characteristic_instance_id, | 161 RemoteCharacteristicValueChanged(string characteristic_instance_id, |
162 array<uint8> value); | 162 array<uint8> value); |
| 163 GattServerDisconnected(string device_id); |
163 }; | 164 }; |
OLD | NEW |