| 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 #include "modules/bluetooth/BluetoothRemoteGATTCharacteristic.h" | 5 #include "modules/bluetooth/BluetoothRemoteGATTCharacteristic.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/DOMDataView.h" | 10 #include "core/dom/DOMDataView.h" |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 { | 208 { |
| 209 WebBluetooth* webbluetooth = BluetoothSupplement::fromScriptState(scriptStat
e); | 209 WebBluetooth* webbluetooth = BluetoothSupplement::fromScriptState(scriptStat
e); |
| 210 ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState)
; | 210 ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState)
; |
| 211 ScriptPromise promise = resolver->promise(); | 211 ScriptPromise promise = resolver->promise(); |
| 212 webbluetooth->stopNotifications(m_webCharacteristic->characteristicInstanceI
D, this, new CallbackPromiseAdapter<void, BluetoothError>(resolver)); | 212 webbluetooth->stopNotifications(m_webCharacteristic->characteristicInstanceI
D, this, new CallbackPromiseAdapter<void, BluetoothError>(resolver)); |
| 213 return promise; | 213 return promise; |
| 214 } | 214 } |
| 215 | 215 |
| 216 DEFINE_TRACE(BluetoothRemoteGATTCharacteristic) | 216 DEFINE_TRACE(BluetoothRemoteGATTCharacteristic) |
| 217 { | 217 { |
| 218 RefCountedGarbageCollectedEventTargetWithInlineData<BluetoothRemoteGATTChara
cteristic>::trace(visitor); | 218 EventTargetWithInlineData<BluetoothRemoteGATTCharacteristic>::trace(visitor)
; |
| 219 ActiveDOMObject::trace(visitor); | 219 ActiveDOMObject::trace(visitor); |
| 220 visitor->trace(m_properties); | 220 visitor->trace(m_properties); |
| 221 } | 221 } |
| 222 | 222 |
| 223 } // namespace blink | 223 } // namespace blink |
| OLD | NEW |