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

Side by Side Diff: Source/modules/vr/NavigatorVRDevice.h

Issue 1052903002: Migrate vr to use inlined tracing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « Source/modules/vr/HMDVRDevice.cpp ('k') | Source/modules/vr/NavigatorVRDevice.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 NavigatorVRDevice_h 5 #ifndef NavigatorVRDevice_h
6 #define NavigatorVRDevice_h 6 #define NavigatorVRDevice_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "modules/vr/VRDevice.h" 9 #include "modules/vr/VRDevice.h"
10 #include "modules/vr/VRHardwareUnit.h" 10 #include "modules/vr/VRHardwareUnit.h"
11 #include "platform/Supplementable.h" 11 #include "platform/Supplementable.h"
12 #include "platform/heap/Handle.h" 12 #include "platform/heap/Handle.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class Document; 16 class Document;
17 class Navigator; 17 class Navigator;
18 18
19 class NavigatorVRDevice final : public NoBaseWillBeGarbageCollectedFinalized<Nav igatorVRDevice>, public WillBeHeapSupplement<Navigator> { 19 class NavigatorVRDevice final : public NoBaseWillBeGarbageCollectedFinalized<Nav igatorVRDevice>, public WillBeHeapSupplement<Navigator> {
20 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorVRDevice); 20 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorVRDevice);
21 public: 21 public:
22 static NavigatorVRDevice* from(Document&); 22 static NavigatorVRDevice* from(Document&);
23 static NavigatorVRDevice& from(Navigator&); 23 static NavigatorVRDevice& from(Navigator&);
24 virtual ~NavigatorVRDevice(); 24 virtual ~NavigatorVRDevice();
25 25
26 static ScriptPromise getVRDevices(ScriptState*, Navigator&); 26 static ScriptPromise getVRDevices(ScriptState*, Navigator&);
27 ScriptPromise getVRDevices(ScriptState*); 27 ScriptPromise getVRDevices(ScriptState*);
28 28
29 virtual void trace(Visitor*); 29 DECLARE_VIRTUAL_TRACE();
30 30
31 private: 31 private:
32 friend VRHardwareUnit; 32 friend VRHardwareUnit;
33 33
34 NavigatorVRDevice(); 34 NavigatorVRDevice();
35 35
36 static const char* supplementName(); 36 static const char* supplementName();
37 37
38 VRDeviceVector getUpdatedVRHardwareUnits(); 38 VRDeviceVector getUpdatedVRHardwareUnits();
39 VRHardwareUnit* getHardwareUnitForIndex(unsigned index); 39 VRHardwareUnit* getHardwareUnitForIndex(unsigned index);
40 40
41 PersistentHeapVectorWillBeHeapVector<Member<VRHardwareUnit>> m_hardwareUnits ; 41 PersistentHeapVectorWillBeHeapVector<Member<VRHardwareUnit>> m_hardwareUnits ;
42 }; 42 };
43 43
44 } // namespace blink 44 } // namespace blink
45 45
46 #endif // NavigatorVRDevice_h 46 #endif // NavigatorVRDevice_h
OLDNEW
« no previous file with comments | « Source/modules/vr/HMDVRDevice.cpp ('k') | Source/modules/vr/NavigatorVRDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698