Chromium Code Reviews| 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 Bluetooth_h | 5 #ifndef Bluetooth_h |
| 6 #define Bluetooth_h | 6 #define Bluetooth_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "modules/bluetooth/BluetoothDiscovery.h" | 9 #include "modules/bluetooth/BluetoothDiscovery.h" |
| 10 #include "modules/bluetooth/BluetoothInteraction.h" | |
| 11 #include "platform/heap/Visitor.h" | |
|
haraken
2015/04/24 05:58:42
Include platform/heap/Handle.h (this is our conven
ortuno
2015/04/24 06:23:11
Done.
| |
| 10 | 12 |
| 11 namespace blink { | 13 namespace blink { |
| 12 | 14 |
| 13 class Bluetooth final | 15 class Bluetooth |
| 14 : public BluetoothDiscovery { | 16 : public BluetoothDiscovery |
| 17 , public BluetoothInteraction | |
| 18 , public ScriptWrappable { | |
| 15 DEFINE_WRAPPERTYPEINFO(); | 19 DEFINE_WRAPPERTYPEINFO(); |
| 20 USING_GARBAGE_COLLECTED_MIXIN(Bluetooth); | |
| 16 public: | 21 public: |
| 17 static Bluetooth* create() | 22 static Bluetooth* create() |
| 18 { | 23 { |
| 19 return new Bluetooth(); | 24 return new Bluetooth(); |
| 20 } | 25 } |
| 26 DEFINE_INLINE_VIRTUAL_TRACE() | |
| 27 { | |
| 28 BluetoothInteraction::trace(visitor); | |
| 29 BluetoothDiscovery::trace(visitor); | |
| 30 } | |
| 21 }; | 31 }; |
| 22 | 32 |
| 23 } // namespace blink | 33 } // namespace blink |
| 24 | 34 |
| 25 #endif // Bluetooth_h | 35 #endif // Bluetooth_h |
| OLD | NEW |