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