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 #ifndef BluetoothRemoteGATTDescriptor_h | 5 #ifndef BluetoothRemoteGATTDescriptor_h |
6 #define BluetoothRemoteGATTDescriptor_h | 6 #define BluetoothRemoteGATTDescriptor_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "core/dom/DOMArrayPiece.h" | 9 #include "core/dom/DOMArrayPiece.h" |
10 #include "core/dom/DOMDataView.h" | 10 #include "core/dom/DOMDataView.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 } | 60 } |
61 | 61 |
62 void ReadValueCallback(ScriptPromiseResolver*, | 62 void ReadValueCallback(ScriptPromiseResolver*, |
63 mojom::blink::WebBluetoothResult, | 63 mojom::blink::WebBluetoothResult, |
64 const Optional<Vector<uint8_t>>&); | 64 const Optional<Vector<uint8_t>>&); |
65 | 65 |
66 void WriteValueCallback(ScriptPromiseResolver*, | 66 void WriteValueCallback(ScriptPromiseResolver*, |
67 const Vector<uint8_t>&, | 67 const Vector<uint8_t>&, |
68 mojom::blink::WebBluetoothResult); | 68 mojom::blink::WebBluetoothResult); |
69 | 69 |
| 70 DOMException* createInvalidDescriptorError(); |
| 71 |
70 mojom::blink::WebBluetoothRemoteGATTDescriptorPtr m_descriptor; | 72 mojom::blink::WebBluetoothRemoteGATTDescriptorPtr m_descriptor; |
71 Member<BluetoothRemoteGATTCharacteristic> m_characteristic; | 73 Member<BluetoothRemoteGATTCharacteristic> m_characteristic; |
72 Member<DOMDataView> m_value; | 74 Member<DOMDataView> m_value; |
73 }; | 75 }; |
74 | 76 |
75 } // namespace blink | 77 } // namespace blink |
76 | 78 |
77 #endif // BluetoothRemoteGATTDescriptor_h | 79 #endif // BluetoothRemoteGATTDescriptor_h |
OLD | NEW |