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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // USING_PRE_FINALIZER interface. | 60 // USING_PRE_FINALIZER interface. |
61 // Called before the object gets garbage collected. | 61 // Called before the object gets garbage collected. |
62 void dispose(); | 62 void dispose(); |
63 | 63 |
64 // Notify our embedder that we should stop any notifications. | 64 // Notify our embedder that we should stop any notifications. |
65 // The function only notifies the embedder once. | 65 // The function only notifies the embedder once. |
66 void notifyCharacteristicObjectRemoved(); | 66 void notifyCharacteristicObjectRemoved(); |
67 | 67 |
68 // EventTarget methods: | 68 // EventTarget methods: |
69 const AtomicString& interfaceName() const override; | 69 const AtomicString& interfaceName() const override; |
70 ExecutionContext* executionContext() const; | 70 ExecutionContext* getExecutionContext() const; |
71 | 71 |
72 // Interface required by garbage collection. | 72 // Interface required by garbage collection. |
73 DECLARE_VIRTUAL_TRACE(); | 73 DECLARE_VIRTUAL_TRACE(); |
74 | 74 |
75 // IDL exposed interface: | 75 // IDL exposed interface: |
76 String uuid() { return m_webCharacteristic->uuid; } | 76 String uuid() { return m_webCharacteristic->uuid; } |
77 | 77 |
78 BluetoothCharacteristicProperties* properties() { return m_properties; } | 78 BluetoothCharacteristicProperties* properties() { return m_properties; } |
79 PassRefPtr<DOMDataView> value() const { return m_value; } | 79 PassRefPtr<DOMDataView> value() const { return m_value; } |
80 ScriptPromise readValue(ScriptState*); | 80 ScriptPromise readValue(ScriptState*); |
(...skipping 10 matching lines...) Expand all Loading... |
91 private: | 91 private: |
92 OwnPtr<WebBluetoothRemoteGATTCharacteristicInit> m_webCharacteristic; | 92 OwnPtr<WebBluetoothRemoteGATTCharacteristicInit> m_webCharacteristic; |
93 bool m_stopped; | 93 bool m_stopped; |
94 Member<BluetoothCharacteristicProperties> m_properties; | 94 Member<BluetoothCharacteristicProperties> m_properties; |
95 RefPtr<DOMDataView> m_value; | 95 RefPtr<DOMDataView> m_value; |
96 }; | 96 }; |
97 | 97 |
98 } // namespace blink | 98 } // namespace blink |
99 | 99 |
100 #endif // BluetoothRemoteGATTCharacteristic_h | 100 #endif // BluetoothRemoteGATTCharacteristic_h |
OLD | NEW |