OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef WebBluetoothRemoteGATTCharacteristic_h | 5 #ifndef WebBluetoothRemoteGATTCharacteristic_h |
6 #define WebBluetoothRemoteGATTCharacteristic_h | 6 #define WebBluetoothRemoteGATTCharacteristic_h |
7 | 7 |
8 #include "public/platform/WebVector.h" | 8 #include "public/platform/WebVector.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 // An object through which the embedder can trigger events on a Document-bound | 12 // An object through which the embedder can trigger events on a Document-bound |
13 // Web Bluetooth GATT Characteristic object. | 13 // Web Bluetooth GATT Characteristic object. |
14 class WebBluetoothRemoteGATTCharacteristic { | 14 class WebBluetoothRemoteGATTCharacteristic { |
15 public: | 15 public: |
16 // Used to notify blink that the characteristic's value changed. | 16 // Used to notify blink that the characteristic's value changed. |
17 virtual void dispatchCharacteristicValueChanged( | 17 virtual void dispatchCharacteristicValueChanged( |
18 const WebVector<uint8_t>&) = 0; | 18 const WebVector<uint8_t>&) = 0; |
19 }; | 19 }; |
20 | 20 |
21 } // namespace blink | 21 } // namespace blink |
22 | 22 |
23 #endif // WebBluetoothRemoteGATTCharacteristicDelegate_h | 23 #endif // WebBluetoothRemoteGATTCharacteristic_h |
OLD | NEW |