| 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" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 DEFINE_ATTRIBUTE_EVENT_LISTENER(characteristicvaluechanged); | 91 DEFINE_ATTRIBUTE_EVENT_LISTENER(characteristicvaluechanged); |
| 92 | 92 |
| 93 protected: | 93 protected: |
| 94 // EventTarget overrides. | 94 // EventTarget overrides. |
| 95 void addedEventListener(const AtomicString& eventType, | 95 void addedEventListener(const AtomicString& eventType, |
| 96 RegisteredEventListener&) override; | 96 RegisteredEventListener&) override; |
| 97 | 97 |
| 98 private: | 98 private: |
| 99 friend class ReadValueCallback; | 99 friend class ReadValueCallback; |
| 100 friend class WriteValueCallback; |
| 100 | 101 |
| 101 BluetoothRemoteGATTServer* gatt() { return m_service->device()->gatt(); } | 102 BluetoothRemoteGATTServer* gatt() { return m_service->device()->gatt(); } |
| 102 | 103 |
| 103 std::unique_ptr<WebBluetoothRemoteGATTCharacteristicInit> m_webCharacteristic; | 104 std::unique_ptr<WebBluetoothRemoteGATTCharacteristicInit> m_webCharacteristic; |
| 104 Member<BluetoothRemoteGATTService> m_service; | 105 Member<BluetoothRemoteGATTService> m_service; |
| 105 bool m_stopped; | 106 bool m_stopped; |
| 106 Member<BluetoothCharacteristicProperties> m_properties; | 107 Member<BluetoothCharacteristicProperties> m_properties; |
| 107 Member<DOMDataView> m_value; | 108 Member<DOMDataView> m_value; |
| 108 }; | 109 }; |
| 109 | 110 |
| 110 } // namespace blink | 111 } // namespace blink |
| 111 | 112 |
| 112 #endif // BluetoothRemoteGATTCharacteristic_h | 113 #endif // BluetoothRemoteGATTCharacteristic_h |
| OLD | NEW |