Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp

Issue 1857143002: Oilpan: Remove RefCountedGarbageCollectedEventTargetWithInlineData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 return EventTargetNames::BluetoothDevice; 60 return EventTargetNames::BluetoothDevice;
61 } 61 }
62 62
63 ExecutionContext* BluetoothDevice::getExecutionContext() const 63 ExecutionContext* BluetoothDevice::getExecutionContext() const
64 { 64 {
65 return ActiveDOMObject::getExecutionContext(); 65 return ActiveDOMObject::getExecutionContext();
66 } 66 }
67 67
68 DEFINE_TRACE(BluetoothDevice) 68 DEFINE_TRACE(BluetoothDevice)
69 { 69 {
70 RefCountedGarbageCollectedEventTargetWithInlineData<BluetoothDevice>::trace( visitor); 70 EventTargetWithInlineData::trace(visitor);
71 ActiveDOMObject::trace(visitor); 71 ActiveDOMObject::trace(visitor);
72 visitor->trace(m_adData); 72 visitor->trace(m_adData);
73 visitor->trace(m_gatt); 73 visitor->trace(m_gatt);
74 } 74 }
75 75
76 unsigned BluetoothDevice::deviceClass(bool& isNull) 76 unsigned BluetoothDevice::deviceClass(bool& isNull)
77 { 77 {
78 isNull = false; 78 isNull = false;
79 return m_webDevice->deviceClass; 79 return m_webDevice->deviceClass;
80 } 80 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 uuids[i] = m_webDevice->uuids[i]; 115 uuids[i] = m_webDevice->uuids[i];
116 return uuids; 116 return uuids;
117 } 117 }
118 118
119 ScriptPromise BluetoothDevice::connectGATT(ScriptState* scriptState) 119 ScriptPromise BluetoothDevice::connectGATT(ScriptState* scriptState)
120 { 120 {
121 return m_gatt->connect(scriptState); 121 return m_gatt->connect(scriptState);
122 } 122 }
123 123
124 } // namespace blink 124 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698