| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 DOMDataView* value() const { return m_value; } | 78 DOMDataView* value() const { return m_value; } |
| 79 ScriptPromise readValue(ScriptState*); | 79 ScriptPromise readValue(ScriptState*); |
| 80 ScriptPromise writeValue(ScriptState*, const DOMArrayPiece&); | 80 ScriptPromise writeValue(ScriptState*, const DOMArrayPiece&); |
| 81 ScriptPromise startNotifications(ScriptState*); | 81 ScriptPromise startNotifications(ScriptState*); |
| 82 ScriptPromise stopNotifications(ScriptState*); | 82 ScriptPromise stopNotifications(ScriptState*); |
| 83 | 83 |
| 84 DEFINE_ATTRIBUTE_EVENT_LISTENER(characteristicvaluechanged); | 84 DEFINE_ATTRIBUTE_EVENT_LISTENER(characteristicvaluechanged); |
| 85 | 85 |
| 86 protected: | 86 protected: |
| 87 // EventTarget overrides. | 87 // EventTarget overrides. |
| 88 bool addEventListenerInternal(const AtomicString& eventType, EventListener*,
const EventListenerOptions&) override; | 88 void addedEventListener(const AtomicString& eventType, RegisteredEventListen
er&) override; |
| 89 | 89 |
| 90 private: | 90 private: |
| 91 OwnPtr<WebBluetoothRemoteGATTCharacteristicInit> m_webCharacteristic; | 91 OwnPtr<WebBluetoothRemoteGATTCharacteristicInit> m_webCharacteristic; |
| 92 bool m_stopped; | 92 bool m_stopped; |
| 93 Member<BluetoothCharacteristicProperties> m_properties; | 93 Member<BluetoothCharacteristicProperties> m_properties; |
| 94 Member<DOMDataView> m_value; | 94 Member<DOMDataView> m_value; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace blink | 97 } // namespace blink |
| 98 | 98 |
| 99 #endif // BluetoothRemoteGATTCharacteristic_h | 99 #endif // BluetoothRemoteGATTCharacteristic_h |
| OLD | NEW |