| 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/ContextLifecycleObserver.h" | 9 #include "core/dom/ContextLifecycleObserver.h" |
| 10 #include "core/dom/DOMArrayPiece.h" | 10 #include "core/dom/DOMArrayPiece.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 mojom::blink::WebBluetoothRemoteGATTCharacteristicPtr, | 51 mojom::blink::WebBluetoothRemoteGATTCharacteristicPtr, |
| 52 BluetoothRemoteGATTService*, | 52 BluetoothRemoteGATTService*, |
| 53 BluetoothDevice*); | 53 BluetoothDevice*); |
| 54 | 54 |
| 55 // Save value. | 55 // Save value. |
| 56 void setValue(DOMDataView*); | 56 void setValue(DOMDataView*); |
| 57 | 57 |
| 58 void dispatchCharacteristicValueChanged(const Vector<uint8_t>& value); | 58 void dispatchCharacteristicValueChanged(const Vector<uint8_t>& value); |
| 59 | 59 |
| 60 // ContextLifecycleObserver interface. | 60 // ContextLifecycleObserver interface. |
| 61 void contextDestroyed() override; | 61 void contextDestroyed(ExecutionContext*) override; |
| 62 | 62 |
| 63 // USING_PRE_FINALIZER interface. | 63 // USING_PRE_FINALIZER interface. |
| 64 // Called before the object gets garbage collected. | 64 // Called before the object gets garbage collected. |
| 65 void dispose(); | 65 void dispose(); |
| 66 | 66 |
| 67 // Notify our embedder that we should stop any notifications. | 67 // Notify our embedder that we should stop any notifications. |
| 68 // The function only notifies the embedder once. | 68 // The function only notifies the embedder once. |
| 69 void notifyCharacteristicObjectRemoved(); | 69 void notifyCharacteristicObjectRemoved(); |
| 70 | 70 |
| 71 // EventTarget methods: | 71 // EventTarget methods: |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 Member<BluetoothRemoteGATTService> m_service; | 108 Member<BluetoothRemoteGATTService> m_service; |
| 109 bool m_stopped; | 109 bool m_stopped; |
| 110 Member<BluetoothCharacteristicProperties> m_properties; | 110 Member<BluetoothCharacteristicProperties> m_properties; |
| 111 Member<DOMDataView> m_value; | 111 Member<DOMDataView> m_value; |
| 112 Member<BluetoothDevice> m_device; | 112 Member<BluetoothDevice> m_device; |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 } // namespace blink | 115 } // namespace blink |
| 116 | 116 |
| 117 #endif // BluetoothRemoteGATTCharacteristic_h | 117 #endif // BluetoothRemoteGATTCharacteristic_h |
| OLD | NEW |