| 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" |
| 11 #include "core/dom/ExceptionCode.h" | |
| 12 #include "core/events/Event.h" | 11 #include "core/events/Event.h" |
| 13 #include "modules/bluetooth/BluetoothError.h" | 12 #include "modules/bluetooth/BluetoothError.h" |
| 14 #include "modules/bluetooth/BluetoothRemoteGATTServer.h" | 13 #include "modules/bluetooth/BluetoothRemoteGATTServer.h" |
| 15 #include "modules/bluetooth/BluetoothSupplement.h" | 14 #include "modules/bluetooth/BluetoothSupplement.h" |
| 16 #include "public/platform/modules/bluetooth/WebBluetooth.h" | 15 #include "public/platform/modules/bluetooth/WebBluetooth.h" |
| 17 | 16 |
| 18 namespace blink { | 17 namespace blink { |
| 19 | 18 |
| 20 BluetoothDevice::BluetoothDevice(ExecutionContext* context, PassOwnPtr<WebBlueto
othDevice> webDevice) | 19 BluetoothDevice::BluetoothDevice(ExecutionContext* context, PassOwnPtr<WebBlueto
othDevice> webDevice) |
| 21 : ActiveDOMObject(context) | 20 : ActiveDOMObject(context) |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 uuids[i] = m_webDevice->uuids[i]; | 114 uuids[i] = m_webDevice->uuids[i]; |
| 116 return uuids; | 115 return uuids; |
| 117 } | 116 } |
| 118 | 117 |
| 119 ScriptPromise BluetoothDevice::connectGATT(ScriptState* scriptState) | 118 ScriptPromise BluetoothDevice::connectGATT(ScriptState* scriptState) |
| 120 { | 119 { |
| 121 return m_gatt->connect(scriptState); | 120 return m_gatt->connect(scriptState); |
| 122 } | 121 } |
| 123 | 122 |
| 124 } // namespace blink | 123 } // namespace blink |
| OLD | NEW |