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/ActiveDOMObject.h" | 9 #include "core/dom/ActiveDOMObject.h" |
10 #include "core/dom/DOMArrayPiece.h" | 10 #include "core/dom/DOMArrayPiece.h" |
11 #include "core/dom/DOMDataView.h" | 11 #include "core/dom/DOMDataView.h" |
12 #include "modules/EventTargetModules.h" | 12 #include "modules/EventTargetModules.h" |
13 #include "modules/bluetooth/BluetoothRemoteGATTService.h" | 13 #include "modules/bluetooth/BluetoothRemoteGATTService.h" |
14 #include "platform/heap/Handle.h" | 14 #include "platform/heap/Handle.h" |
15 #include "public/platform/modules/bluetooth/WebBluetoothRemoteGATTCharacteristic
.h" | 15 #include "public/platform/modules/bluetooth/WebBluetoothRemoteGATTCharacteristic
.h" |
16 #include "public/platform/modules/bluetooth/WebBluetoothRemoteGATTCharacteristic
Init.h" | 16 #include "public/platform/modules/bluetooth/WebBluetoothRemoteGATTCharacteristic
Init.h" |
17 #include "wtf/text/WTFString.h" | 17 #include "wtf/text/WTFString.h" |
18 #include <memory> | 18 #include <memory> |
19 | 19 |
20 namespace blink { | 20 namespace blink { |
21 | 21 |
22 class BluetoothCharacteristicProperties; | 22 class BluetoothCharacteristicProperties; |
23 class ExecutionContext; | 23 class ExecutionContext; |
24 class ScriptPromise; | 24 class ScriptPromise; |
25 class ScriptPromiseResolver; | |
26 class ScriptState; | 25 class ScriptState; |
27 | 26 |
28 // BluetoothRemoteGATTCharacteristic represents a GATT Characteristic, which is | 27 // BluetoothRemoteGATTCharacteristic represents a GATT Characteristic, which is |
29 // a basic data element that provides further information about a peripheral's | 28 // a basic data element that provides further information about a peripheral's |
30 // service. | 29 // service. |
31 // | 30 // |
32 // Callbacks providing WebBluetoothRemoteGATTCharacteristicInit objects are | 31 // Callbacks providing WebBluetoothRemoteGATTCharacteristicInit objects are |
33 // handled by CallbackPromiseAdapter templatized with this class. See this | 32 // handled by CallbackPromiseAdapter templatized with this class. See this |
34 // class's "Interface required by CallbackPromiseAdapter" section and the | 33 // class's "Interface required by CallbackPromiseAdapter" section and the |
35 // CallbackPromiseAdapter class comments. | 34 // CallbackPromiseAdapter class comments. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 std::unique_ptr<WebBluetoothRemoteGATTCharacteristicInit> m_webCharacteristic; | 102 std::unique_ptr<WebBluetoothRemoteGATTCharacteristicInit> m_webCharacteristic; |
104 Member<BluetoothRemoteGATTService> m_service; | 103 Member<BluetoothRemoteGATTService> m_service; |
105 bool m_stopped; | 104 bool m_stopped; |
106 Member<BluetoothCharacteristicProperties> m_properties; | 105 Member<BluetoothCharacteristicProperties> m_properties; |
107 Member<DOMDataView> m_value; | 106 Member<DOMDataView> m_value; |
108 }; | 107 }; |
109 | 108 |
110 } // namespace blink | 109 } // namespace blink |
111 | 110 |
112 #endif // BluetoothRemoteGATTCharacteristic_h | 111 #endif // BluetoothRemoteGATTCharacteristic_h |
OLD | NEW |