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

Side by Side Diff: third_party/WebKit/Source/modules/vr/VRHardwareUnitCollection.h

Issue 1398523002: Use NoBaseWillBeGarbageCollectedFinalized for VRController as other LocalFrame supplements in modul… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 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 struct WebVRDevice; 15 struct WebVRDevice;
16 16
17 class VRHardwareUnitCollection final : public GarbageCollected<VRHardwareUnitCol lection> { 17 class VRHardwareUnitCollection final : public GarbageCollected<VRHardwareUnitCol lection> {
18 public: 18 public:
19 explicit VRHardwareUnitCollection(VRController*); 19 explicit VRHardwareUnitCollection(NavigatorVRDevice*);
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 Member<VRController> m_controller; 27 Member<NavigatorVRDevice> m_navigatorVRDevice;
28 HeapVector<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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698