| OLD | NEW |
| 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/dom/ContextLifecycleObserver.h" |
| 10 #include "core/frame/LocalDOMWindow.h" | 10 #include "core/frame/LocalDOMWindow.h" |
| 11 #include "core/page/PageVisibilityObserver.h" | 11 #include "core/page/PageVisibilityObserver.h" |
| 12 #include "modules/ModulesExport.h" | 12 #include "modules/ModulesExport.h" |
| 13 #include "modules/vr/VRDisplay.h" | 13 #include "modules/vr/VRDisplay.h" |
| 14 #include "modules/vr/VRDisplayEvent.h" | 14 #include "modules/vr/VRDisplayEvent.h" |
| 15 #include "platform/Supplementable.h" | 15 #include "platform/Supplementable.h" |
| 16 #include "platform/heap/Handle.h" | 16 #include "platform/heap/Handle.h" |
| 17 #include "public/platform/WebVector.h" | 17 #include "public/platform/WebVector.h" |
| 18 #include "wtf/Noncopyable.h" | 18 #include "wtf/Noncopyable.h" |
| 19 | 19 |
| 20 namespace blink { | 20 namespace blink { |
| 21 | 21 |
| 22 class Document; | 22 class Document; |
| 23 class Navigator; | 23 class Navigator; |
| 24 class VRController; | 24 class VRController; |
| 25 | 25 |
| 26 class MODULES_EXPORT NavigatorVR final | 26 class MODULES_EXPORT NavigatorVR final |
| 27 : public GarbageCollectedFinalized<NavigatorVR>, | 27 : public GarbageCollectedFinalized<NavigatorVR>, |
| 28 public Supplement<Navigator>, | 28 public Supplement<Navigator>, |
| 29 public DOMWindowProperty, | 29 public ContextClient, |
| 30 public PageVisibilityObserver, | 30 public PageVisibilityObserver, |
| 31 public LocalDOMWindow::EventListenerObserver { | 31 public LocalDOMWindow::EventListenerObserver { |
| 32 USING_GARBAGE_COLLECTED_MIXIN(NavigatorVR); | 32 USING_GARBAGE_COLLECTED_MIXIN(NavigatorVR); |
| 33 WTF_MAKE_NONCOPYABLE(NavigatorVR); | 33 WTF_MAKE_NONCOPYABLE(NavigatorVR); |
| 34 | 34 |
| 35 public: | 35 public: |
| 36 static NavigatorVR* from(Document&); | 36 static NavigatorVR* from(Document&); |
| 37 static NavigatorVR& from(Navigator&); | 37 static NavigatorVR& from(Navigator&); |
| 38 virtual ~NavigatorVR(); | 38 virtual ~NavigatorVR(); |
| 39 | 39 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 Member<VRController> m_controller; | 72 Member<VRController> m_controller; |
| 73 | 73 |
| 74 // Whether this page is listening for vrdisplayactivate event. | 74 // Whether this page is listening for vrdisplayactivate event. |
| 75 bool m_listeningForActivate = false; | 75 bool m_listeningForActivate = false; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace blink | 78 } // namespace blink |
| 79 | 79 |
| 80 #endif // NavigatorVR_h | 80 #endif // NavigatorVR_h |
| OLD | NEW |