| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 VRDisplay_h | 5 #ifndef VRDisplay_h |
| 6 #define VRDisplay_h | 6 #define VRDisplay_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
| 10 #include "core/dom/FrameRequestCallback.h" | 10 #include "core/dom/FrameRequestCallback.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 VRDisplay(NavigatorVR*); | 84 VRDisplay(NavigatorVR*); |
| 85 | 85 |
| 86 void update(const device::blink::VRDisplayPtr&); | 86 void update(const device::blink::VRDisplayPtr&); |
| 87 | 87 |
| 88 void updatePose(); | 88 void updatePose(); |
| 89 | 89 |
| 90 void beginPresent(ScriptPromiseResolver*); | 90 void beginPresent(ScriptPromiseResolver*); |
| 91 void forceExitPresent(); | 91 void forceExitPresent(); |
| 92 | 92 |
| 93 void updateLayerBounds(); | 93 void updateLayerBounds(); |
| 94 void disconnected(); |
| 94 | 95 |
| 95 VRController* controller(); | 96 VRController* controller(); |
| 96 | 97 |
| 97 private: | 98 private: |
| 98 void onFullscreenCheck(TimerBase*); | 99 void onFullscreenCheck(TimerBase*); |
| 99 | 100 |
| 100 Member<NavigatorVR> m_navigatorVR; | 101 Member<NavigatorVR> m_navigatorVR; |
| 101 unsigned m_displayId; | 102 unsigned m_displayId; |
| 102 String m_displayName; | 103 String m_displayName; |
| 103 bool m_isConnected; | 104 bool m_isConnected; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 114 double m_depthFar; | 115 double m_depthFar; |
| 115 | 116 |
| 116 Timer<VRDisplay> m_fullscreenCheckTimer; | 117 Timer<VRDisplay> m_fullscreenCheckTimer; |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 using VRDisplayVector = HeapVector<Member<VRDisplay>>; | 120 using VRDisplayVector = HeapVector<Member<VRDisplay>>; |
| 120 | 121 |
| 121 } // namespace blink | 122 } // namespace blink |
| 122 | 123 |
| 123 #endif // VRDisplay_h | 124 #endif // VRDisplay_h |
| OLD | NEW |