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 BluetoothRemoteGATTService_h | 5 #ifndef BluetoothRemoteGATTService_h |
6 #define BluetoothRemoteGATTService_h | 6 #define BluetoothRemoteGATTService_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "bindings/modules/v8/StringOrUnsignedLong.h" | 9 #include "bindings/modules/v8/StringOrUnsignedLong.h" |
10 #include "modules/bluetooth/BluetoothDevice.h" | 10 #include "modules/bluetooth/BluetoothDevice.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 const StringOrUnsignedLong& characteristic, | 49 const StringOrUnsignedLong& characteristic, |
50 ExceptionState&); | 50 ExceptionState&); |
51 ScriptPromise getCharacteristics(ScriptState*, | 51 ScriptPromise getCharacteristics(ScriptState*, |
52 const StringOrUnsignedLong& characteristic, | 52 const StringOrUnsignedLong& characteristic, |
53 ExceptionState&); | 53 ExceptionState&); |
54 ScriptPromise getCharacteristics(ScriptState*, ExceptionState&); | 54 ScriptPromise getCharacteristics(ScriptState*, ExceptionState&); |
55 | 55 |
56 private: | 56 private: |
57 void GetCharacteristicsCallback( | 57 void GetCharacteristicsCallback( |
58 const String& serviceInstanceId, | 58 const String& serviceInstanceId, |
| 59 const String& requestedCharacteristicUUID, |
59 mojom::blink::WebBluetoothGATTQueryQuantity, | 60 mojom::blink::WebBluetoothGATTQueryQuantity, |
60 ScriptPromiseResolver*, | 61 ScriptPromiseResolver*, |
61 mojom::blink::WebBluetoothResult, | 62 mojom::blink::WebBluetoothResult, |
62 Optional<Vector<mojom::blink::WebBluetoothRemoteGATTCharacteristicPtr>> | 63 Optional<Vector<mojom::blink::WebBluetoothRemoteGATTCharacteristicPtr>> |
63 characteristics); | 64 characteristics); |
64 | 65 |
65 ScriptPromise getCharacteristicsImpl( | 66 ScriptPromise getCharacteristicsImpl( |
66 ScriptState*, | 67 ScriptState*, |
67 mojom::blink::WebBluetoothGATTQueryQuantity, | 68 mojom::blink::WebBluetoothGATTQueryQuantity, |
68 const String& characteristicUUID = String()); | 69 const String& characteristicUUID = String()); |
69 | 70 |
70 mojom::blink::WebBluetoothRemoteGATTServicePtr m_service; | 71 mojom::blink::WebBluetoothRemoteGATTServicePtr m_service; |
71 const bool m_isPrimary; | 72 const bool m_isPrimary; |
72 const String m_deviceInstanceId; | 73 const String m_deviceInstanceId; |
73 Member<BluetoothDevice> m_device; | 74 Member<BluetoothDevice> m_device; |
74 }; | 75 }; |
75 | 76 |
76 } // namespace blink | 77 } // namespace blink |
77 | 78 |
78 #endif // BluetoothRemoteGATTService_h | 79 #endif // BluetoothRemoteGATTService_h |
OLD | NEW |