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

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

Issue 1918143007: Updated Blink WebVR interfaces to WebVR v1 spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webvr_mojo
Patch Set: Fixed layout test Created 4 years, 7 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698