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/frame/DOMWindowProperty.h" |
10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 static NavigatorVR* from(Document&); | 28 static NavigatorVR* from(Document&); |
29 static NavigatorVR& from(Navigator&); | 29 static NavigatorVR& from(Navigator&); |
30 virtual ~NavigatorVR(); | 30 virtual ~NavigatorVR(); |
31 | 31 |
32 static ScriptPromise getVRDisplays(ScriptState*, Navigator&); | 32 static ScriptPromise getVRDisplays(ScriptState*, Navigator&); |
33 ScriptPromise getVRDisplays(ScriptState*); | 33 ScriptPromise getVRDisplays(ScriptState*); |
34 | 34 |
35 VRController* controller(); | 35 VRController* controller(); |
36 Document* document(); | 36 Document* document(); |
37 | 37 |
| 38 void fireVREvent(VRDisplayEvent*); |
| 39 |
38 DECLARE_VIRTUAL_TRACE(); | 40 DECLARE_VIRTUAL_TRACE(); |
39 | 41 |
40 private: | 42 private: |
41 friend class VRDisplay; | 43 friend class VRDisplay; |
42 friend class VRGetDevicesCallback; | 44 friend class VRGetDevicesCallback; |
43 | 45 |
44 explicit NavigatorVR(LocalFrame*); | 46 explicit NavigatorVR(LocalFrame*); |
45 | 47 |
46 static const char* supplementName(); | 48 static const char* supplementName(); |
47 | 49 |
48 void fireVRDisplayPresentChange(VRDisplay*); | 50 void fireVRDisplayPresentChange(VRDisplay*); |
49 | 51 |
50 Member<VRController> m_controller; | 52 Member<VRController> m_controller; |
51 }; | 53 }; |
52 | 54 |
53 } // namespace blink | 55 } // namespace blink |
54 | 56 |
55 #endif // NavigatorVR_h | 57 #endif // NavigatorVR_h |
OLD | NEW |