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

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

Issue 2150443002: Supplement should have a Member to the corresponding Supplementable object (Part 1) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 3 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 NavigatorVR_h 5 #ifndef NavigatorVR_h
6 #define NavigatorVR_h 6 #define NavigatorVR_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 "core/frame/Navigator.h"
10 #include "modules/ModulesExport.h" 11 #include "modules/ModulesExport.h"
11 #include "modules/vr/VRDisplay.h" 12 #include "modules/vr/VRDisplay.h"
12 #include "platform/Supplementable.h" 13 #include "platform/Supplementable.h"
13 #include "platform/heap/Handle.h" 14 #include "platform/heap/Handle.h"
14 #include "public/platform/WebVector.h" 15 #include "public/platform/WebVector.h"
15 #include "wtf/Noncopyable.h" 16 #include "wtf/Noncopyable.h"
16 17
17 namespace blink { 18 namespace blink {
18 19
19 class Document; 20 class Document;
20 class Navigator;
21 class VRController; 21 class VRController;
22 22
23 class MODULES_EXPORT NavigatorVR final : public GarbageCollectedFinalized<Naviga torVR>, public Supplement<Navigator>, public DOMWindowProperty { 23 class MODULES_EXPORT NavigatorVR final : public GarbageCollectedFinalized<Naviga torVR>, public Supplement<Navigator>, public DOMWindowProperty {
24 USING_GARBAGE_COLLECTED_MIXIN(NavigatorVR); 24 USING_GARBAGE_COLLECTED_MIXIN(NavigatorVR);
25 WTF_MAKE_NONCOPYABLE(NavigatorVR); 25 WTF_MAKE_NONCOPYABLE(NavigatorVR);
26 public: 26 public:
27 static NavigatorVR* from(Document&); 27 static NavigatorVR* from(Document&);
28 static NavigatorVR& from(Navigator&); 28 static NavigatorVR& from(Navigator&);
29 virtual ~NavigatorVR(); 29 virtual ~NavigatorVR();
30 30
(...skipping 12 matching lines...) Expand all
43 explicit NavigatorVR(LocalFrame*); 43 explicit NavigatorVR(LocalFrame*);
44 44
45 static const char* supplementName(); 45 static const char* supplementName();
46 46
47 Member<VRController> m_controller; 47 Member<VRController> m_controller;
48 }; 48 };
49 49
50 } // namespace blink 50 } // namespace blink
51 51
52 #endif // NavigatorVR_h 52 #endif // NavigatorVR_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/vibration/NavigatorVibration.h ('k') | third_party/WebKit/Source/platform/Supplementable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698