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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 std::unique_ptr<WebBluetoothRemoteGATTCharacteristicInit>, | 54 std::unique_ptr<WebBluetoothRemoteGATTCharacteristicInit>, |
55 BluetoothRemoteGATTService*); | 55 BluetoothRemoteGATTService*); |
56 | 56 |
57 // Save value. | 57 // Save value. |
58 void setValue(DOMDataView*); | 58 void setValue(DOMDataView*); |
59 | 59 |
60 // WebBluetoothRemoteGATTCharacteristic interface: | 60 // WebBluetoothRemoteGATTCharacteristic interface: |
61 void dispatchCharacteristicValueChanged(const WebVector<uint8_t>&) override; | 61 void dispatchCharacteristicValueChanged(const WebVector<uint8_t>&) override; |
62 | 62 |
63 // ActiveDOMObject interface. | 63 // ActiveDOMObject interface. |
64 void stop() override; | 64 void contextDestroyed() override; |
65 | 65 |
66 // USING_PRE_FINALIZER interface. | 66 // USING_PRE_FINALIZER interface. |
67 // Called before the object gets garbage collected. | 67 // Called before the object gets garbage collected. |
68 void dispose(); | 68 void dispose(); |
69 | 69 |
70 // Notify our embedder that we should stop any notifications. | 70 // Notify our embedder that we should stop any notifications. |
71 // The function only notifies the embedder once. | 71 // The function only notifies the embedder once. |
72 void notifyCharacteristicObjectRemoved(); | 72 void notifyCharacteristicObjectRemoved(); |
73 | 73 |
74 // EventTarget methods: | 74 // EventTarget methods: |
(...skipping 24 matching lines...) Expand all 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 |