| 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 #ifndef VRHardwareUnitCollection_h | 5 #ifndef VRHardwareUnitCollection_h |
| 6 #define VRHardwareUnitCollection_h | 6 #define VRHardwareUnitCollection_h |
| 7 | 7 |
| 8 #include "modules/vr/VRDevice.h" | 8 #include "modules/vr/VRDevice.h" |
| 9 #include "modules/vr/VRHardwareUnit.h" | 9 #include "modules/vr/VRHardwareUnit.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| 11 #include "public/platform/WebVector.h" | 11 #include "public/platform/WebVector.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class WebVRDevice; | 15 class WebVRDevice; |
| 16 | 16 |
| 17 class VRHardwareUnitCollection final : public RefCountedWillBeGarbageCollected<V
RHardwareUnitCollection> { | 17 class VRHardwareUnitCollection final : public GarbageCollected<VRHardwareUnitCol
lection> { |
| 18 public: | 18 public: |
| 19 explicit VRHardwareUnitCollection(VRController*); | 19 explicit VRHardwareUnitCollection(VRController*); |
| 20 | 20 |
| 21 VRDeviceVector updateVRHardwareUnits(const WebVector<WebVRDevice>*); | 21 VRDeviceVector updateVRHardwareUnits(const WebVector<WebVRDevice>*); |
| 22 VRHardwareUnit* getHardwareUnitForIndex(unsigned index); | 22 VRHardwareUnit* getHardwareUnitForIndex(unsigned index); |
| 23 | 23 |
| 24 DECLARE_VIRTUAL_TRACE(); | 24 DECLARE_VIRTUAL_TRACE(); |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 PersistentWillBeMember<VRController> m_controller; | 27 Member<VRController> m_controller; |
| 28 PersistentHeapVectorWillBeHeapVector<Member<VRHardwareUnit>> m_hardwareUnits
; | 28 HeapVector<Member<VRHardwareUnit>> m_hardwareUnits; |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 } // namespace blink | 31 } // namespace blink |
| 32 | 32 |
| 33 #endif // VRHardwareUnitCollection_h | 33 #endif // VRHardwareUnitCollection_h |
| OLD | NEW |