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

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

Issue 1101263003: Oilpan: have Navigator and its supplements be on the heap by default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased 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 | Annotate | Revision Log
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 "core/frame/DOMWindowProperty.h" 9 #include "core/frame/DOMWindowProperty.h"
10 #include "modules/ModulesExport.h" 10 #include "modules/ModulesExport.h"
11 #include "modules/vr/VRDevice.h" 11 #include "modules/vr/VRDevice.h"
12 #include "modules/vr/VRHardwareUnit.h" 12 #include "modules/vr/VRHardwareUnit.h"
13 #include "platform/Supplementable.h" 13 #include "platform/Supplementable.h"
14 #include "platform/heap/Handle.h" 14 #include "platform/heap/Handle.h"
15 #include "public/platform/WebVector.h" 15 #include "public/platform/WebVector.h"
16 #include "wtf/Noncopyable.h" 16 #include "wtf/Noncopyable.h"
17 17
18 namespace blink { 18 namespace blink {
19 19
20 class Document; 20 class Document;
21 class Navigator; 21 class Navigator;
22 class VRController; 22 class VRController;
23 class VRHardwareUnitCollection; 23 class VRHardwareUnitCollection;
24 24
25 class MODULES_EXPORT NavigatorVRDevice final : public NoBaseWillBeGarbageCollect edFinalized<NavigatorVRDevice>, public WillBeHeapSupplement<Navigator>, public D OMWindowProperty { 25 class MODULES_EXPORT NavigatorVRDevice final : public GarbageCollectedFinalized< NavigatorVRDevice>, public HeapSupplement<Navigator>, public DOMWindowProperty {
26 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorVRDevice); 26 USING_GARBAGE_COLLECTED_MIXIN(NavigatorVRDevice);
27 WTF_MAKE_NONCOPYABLE(NavigatorVRDevice); 27 WTF_MAKE_NONCOPYABLE(NavigatorVRDevice);
28 public: 28 public:
29 static NavigatorVRDevice* from(Document&); 29 static NavigatorVRDevice* from(Document&);
30 static NavigatorVRDevice& from(Navigator&); 30 static NavigatorVRDevice& from(Navigator&);
31 virtual ~NavigatorVRDevice(); 31 virtual ~NavigatorVRDevice();
32 32
33 static ScriptPromise getVRDevices(ScriptState*, Navigator&); 33 static ScriptPromise getVRDevices(ScriptState*, Navigator&);
34 ScriptPromise getVRDevices(ScriptState*); 34 ScriptPromise getVRDevices(ScriptState*);
35 35
36 VRController* controller(); 36 VRController* controller();
37 37
38 DECLARE_VIRTUAL_TRACE(); 38 DECLARE_VIRTUAL_TRACE();
39 39
40 private: 40 private:
41 friend class VRHardwareUnit; 41 friend class VRHardwareUnit;
42 friend class VRGetDevicesCallback; 42 friend class VRGetDevicesCallback;
43 43
44 explicit NavigatorVRDevice(LocalFrame*); 44 explicit NavigatorVRDevice(LocalFrame*);
45 45
46 static const char* supplementName(); 46 static const char* supplementName();
47 47
48 RefPtrWillBeMember<VRHardwareUnitCollection> m_hardwareUnits; 48 Member<VRHardwareUnitCollection> m_hardwareUnits;
49 }; 49 };
50 50
51 } // namespace blink 51 } // namespace blink
52 52
53 #endif // NavigatorVRDevice_h 53 #endif // NavigatorVRDevice_h
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/NavigatorServiceWorker.cpp ('k') | Source/modules/vr/NavigatorVRDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698