| 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; | 25 class ScriptPromiseResolver; |
| 26 class ScriptState; | 26 class ScriptState; |
| 27 | 27 |
| 28 // BluetoothRemoteGATTCharacteristic represents a GATT Characteristic, which is
a | 28 // BluetoothRemoteGATTCharacteristic represents a GATT Characteristic, which is |
| 29 // basic data element that provides further information about a peripheral's | 29 // a basic data element that provides further information about a peripheral's |
| 30 // service. | 30 // service. |
| 31 // | 31 // |
| 32 // Callbacks providing WebBluetoothRemoteGATTCharacteristicInit objects are hand
led by | 32 // Callbacks providing WebBluetoothRemoteGATTCharacteristicInit objects are |
| 33 // CallbackPromiseAdapter templatized with this class. See this class's | 33 // handled by CallbackPromiseAdapter templatized with this class. See this |
| 34 // "Interface required by CallbackPromiseAdapter" section and the | 34 // class's "Interface required by CallbackPromiseAdapter" section and the |
| 35 // CallbackPromiseAdapter class comments. | 35 // CallbackPromiseAdapter class comments. |
| 36 class BluetoothRemoteGATTCharacteristic final | 36 class BluetoothRemoteGATTCharacteristic final |
| 37 : public EventTargetWithInlineData, | 37 : public EventTargetWithInlineData, |
| 38 public ActiveDOMObject, | 38 public ActiveDOMObject, |
| 39 public WebBluetoothRemoteGATTCharacteristic { | 39 public WebBluetoothRemoteGATTCharacteristic { |
| 40 USING_PRE_FINALIZER(BluetoothRemoteGATTCharacteristic, dispose); | 40 USING_PRE_FINALIZER(BluetoothRemoteGATTCharacteristic, dispose); |
| 41 DEFINE_WRAPPERTYPEINFO(); | 41 DEFINE_WRAPPERTYPEINFO(); |
| 42 USING_GARBAGE_COLLECTED_MIXIN(BluetoothRemoteGATTCharacteristic); | 42 USING_GARBAGE_COLLECTED_MIXIN(BluetoothRemoteGATTCharacteristic); |
| 43 | 43 |
| 44 public: | 44 public: |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 std::unique_ptr<WebBluetoothRemoteGATTCharacteristicInit> m_webCharacteristic; | 99 std::unique_ptr<WebBluetoothRemoteGATTCharacteristicInit> m_webCharacteristic; |
| 100 Member<BluetoothRemoteGATTService> m_service; | 100 Member<BluetoothRemoteGATTService> m_service; |
| 101 bool m_stopped; | 101 bool m_stopped; |
| 102 Member<BluetoothCharacteristicProperties> m_properties; | 102 Member<BluetoothCharacteristicProperties> m_properties; |
| 103 Member<DOMDataView> m_value; | 103 Member<DOMDataView> m_value; |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace blink | 106 } // namespace blink |
| 107 | 107 |
| 108 #endif // BluetoothRemoteGATTCharacteristic_h | 108 #endif // BluetoothRemoteGATTCharacteristic_h |
| OLD | NEW |