OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 BluetoothDevice_h | 5 #ifndef BluetoothDevice_h |
6 #define BluetoothDevice_h | 6 #define BluetoothDevice_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 "modules/EventTargetModules.h" | 10 #include "modules/EventTargetModules.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // WebBluetoothDevice interface: | 69 // WebBluetoothDevice interface: |
70 void dispatchGattServerDisconnected() override; | 70 void dispatchGattServerDisconnected() override; |
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 id() { return m_webDevice->id; } | 76 String id() { return m_webDevice->id; } |
77 String name() { return m_webDevice->name; } | 77 String name() { return m_webDevice->name; } |
78 BluetoothRemoteGATTServer* gatt() { return m_gatt; } | 78 BluetoothRemoteGATTServer* gatt() { return m_gatt; } |
79 Vector<String> uuids(); | |
80 | 79 |
81 DEFINE_ATTRIBUTE_EVENT_LISTENER(gattserverdisconnected); | 80 DEFINE_ATTRIBUTE_EVENT_LISTENER(gattserverdisconnected); |
82 | 81 |
83 private: | 82 private: |
84 std::unique_ptr<WebBluetoothDeviceInit> m_webDevice; | 83 std::unique_ptr<WebBluetoothDeviceInit> m_webDevice; |
85 Member<BluetoothRemoteGATTServer> m_gatt; | 84 Member<BluetoothRemoteGATTServer> m_gatt; |
86 }; | 85 }; |
87 | 86 |
88 } // namespace blink | 87 } // namespace blink |
89 | 88 |
90 #endif // BluetoothDevice_h | 89 #endif // BluetoothDevice_h |
OLD | NEW |