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 #include "modules/bluetooth/BluetoothDevice.h" | 5 #include "modules/bluetooth/BluetoothDevice.h" |
6 | 6 |
7 #include "bindings/core/v8/CallbackPromiseAdapter.h" | 7 #include "bindings/core/v8/CallbackPromiseAdapter.h" |
8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
9 #include "bindings/core/v8/ScriptPromiseResolver.h" | 9 #include "bindings/core/v8/ScriptPromiseResolver.h" |
10 #include "core/dom/DOMException.h" | 10 #include "core/dom/DOMException.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 dispatchEvent(Event::createBubble(EventTypeNames::gattserverdisconnected)); | 69 dispatchEvent(Event::createBubble(EventTypeNames::gattserverdisconnected)); |
70 } | 70 } |
71 } | 71 } |
72 | 72 |
73 DEFINE_TRACE(BluetoothDevice) { | 73 DEFINE_TRACE(BluetoothDevice) { |
74 EventTargetWithInlineData::trace(visitor); | 74 EventTargetWithInlineData::trace(visitor); |
75 ContextLifecycleObserver::trace(visitor); | 75 ContextLifecycleObserver::trace(visitor); |
76 visitor->trace(m_gatt); | 76 visitor->trace(m_gatt); |
77 } | 77 } |
78 | 78 |
79 Vector<String> BluetoothDevice::uuids() { | |
80 Vector<String> uuids(m_webDevice->uuids.size()); | |
81 for (size_t i = 0; i < m_webDevice->uuids.size(); ++i) | |
82 uuids[i] = m_webDevice->uuids[i]; | |
83 return uuids; | |
84 } | |
85 | |
86 } // namespace blink | 79 } // namespace blink |
OLD | NEW |