| 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 BluetoothRemoteGATTCharacteristic_h | 5 #ifndef BluetoothRemoteGATTCharacteristic_h |
| 6 #define BluetoothRemoteGATTCharacteristic_h | 6 #define BluetoothRemoteGATTCharacteristic_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "core/dom/ContextLifecycleObserver.h" | 9 #include "core/dom/ContextLifecycleObserver.h" |
| 10 #include "core/dom/DOMArrayPiece.h" | 10 #include "core/dom/DOMArrayPiece.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 const Vector<uint8_t>& value, | 111 const Vector<uint8_t>& value, |
| 112 mojom::blink::WebBluetoothResult); | 112 mojom::blink::WebBluetoothResult); |
| 113 void NotificationsCallback(ScriptPromiseResolver*, | 113 void NotificationsCallback(ScriptPromiseResolver*, |
| 114 mojom::blink::WebBluetoothResult); | 114 mojom::blink::WebBluetoothResult); |
| 115 | 115 |
| 116 ScriptPromise getDescriptorsImpl(ScriptState*, | 116 ScriptPromise getDescriptorsImpl(ScriptState*, |
| 117 mojom::blink::WebBluetoothGATTQueryQuantity, | 117 mojom::blink::WebBluetoothGATTQueryQuantity, |
| 118 const String& descriptorUUID = String()); | 118 const String& descriptorUUID = String()); |
| 119 | 119 |
| 120 void GetDescriptorsCallback( | 120 void GetDescriptorsCallback( |
| 121 const String& requestedDescriptorUUID, |
| 121 const String& characteristicInstanceId, | 122 const String& characteristicInstanceId, |
| 122 mojom::blink::WebBluetoothGATTQueryQuantity, | 123 mojom::blink::WebBluetoothGATTQueryQuantity, |
| 123 ScriptPromiseResolver*, | 124 ScriptPromiseResolver*, |
| 124 mojom::blink::WebBluetoothResult, | 125 mojom::blink::WebBluetoothResult, |
| 125 Optional<Vector<mojom::blink::WebBluetoothRemoteGATTDescriptorPtr>> | 126 Optional<Vector<mojom::blink::WebBluetoothRemoteGATTDescriptorPtr>> |
| 126 descriptors); | 127 descriptors); |
| 127 | 128 |
| 129 DOMException* createInvalidCharacteristicError(); |
| 130 |
| 128 mojom::blink::WebBluetoothRemoteGATTCharacteristicPtr m_characteristic; | 131 mojom::blink::WebBluetoothRemoteGATTCharacteristicPtr m_characteristic; |
| 129 Member<BluetoothRemoteGATTService> m_service; | 132 Member<BluetoothRemoteGATTService> m_service; |
| 130 bool m_stopped; | 133 bool m_stopped; |
| 131 Member<BluetoothCharacteristicProperties> m_properties; | 134 Member<BluetoothCharacteristicProperties> m_properties; |
| 132 Member<DOMDataView> m_value; | 135 Member<DOMDataView> m_value; |
| 133 Member<BluetoothDevice> m_device; | 136 Member<BluetoothDevice> m_device; |
| 134 }; | 137 }; |
| 135 | 138 |
| 136 } // namespace blink | 139 } // namespace blink |
| 137 | 140 |
| 138 #endif // BluetoothRemoteGATTCharacteristic_h | 141 #endif // BluetoothRemoteGATTCharacteristic_h |
| OLD | NEW |