| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 void updateLayerBounds(); | 98 void updateLayerBounds(); |
| 99 void disconnected(); | 99 void disconnected(); |
| 100 | 100 |
| 101 VRController* controller(); | 101 VRController* controller(); |
| 102 | 102 |
| 103 private: | 103 private: |
| 104 void onFullscreenCheck(TimerBase*); | 104 void onFullscreenCheck(TimerBase*); |
| 105 void onPresentComplete(ScriptPromiseResolver*, bool); | 105 void onPresentComplete(ScriptPromiseResolver*, bool); |
| 106 | 106 |
| 107 void onDisplayConnected(); | 107 void onConnected(); |
| 108 void onDisplayDisconnected(); | 108 void onDisconnected(); |
| 109 |
| 110 void OnPresentChange(); |
| 109 | 111 |
| 110 // VRDisplayClient | 112 // VRDisplayClient |
| 111 void OnDisplayChanged(device::mojom::blink::VRDisplayInfoPtr) override; | 113 void OnChanged(device::mojom::blink::VRDisplayInfoPtr) override; |
| 112 void OnExitPresent() override; | 114 void OnExitPresent() override; |
| 113 void OnDisplayBlur() override; | 115 void OnBlur() override; |
| 114 void OnDisplayFocus() override; | 116 void OnFocus() override; |
| 117 void OnActivate(device::mojom::blink::VRDisplayEventReason) override; |
| 118 void OnDeactivate(device::mojom::blink::VRDisplayEventReason) override; |
| 115 | 119 |
| 116 ScriptedAnimationController& ensureScriptedAnimationController(Document*); | 120 ScriptedAnimationController& ensureScriptedAnimationController(Document*); |
| 117 | 121 |
| 118 Member<NavigatorVR> m_navigatorVR; | 122 Member<NavigatorVR> m_navigatorVR; |
| 119 unsigned m_displayId; | 123 unsigned m_displayId; |
| 120 String m_displayName; | 124 String m_displayName; |
| 121 bool m_isConnected; | 125 bool m_isConnected; |
| 122 bool m_isPresenting; | 126 bool m_isPresenting; |
| 123 bool m_canUpdateFramePose; | 127 bool m_canUpdateFramePose; |
| 124 Member<VRDisplayCapabilities> m_capabilities; | 128 Member<VRDisplayCapabilities> m_capabilities; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 ServiceInactive = 11, | 167 ServiceInactive = 11, |
| 164 RequestDenied = 12, | 168 RequestDenied = 12, |
| 165 PresentationResultMax, // Must be last member of enum. | 169 PresentationResultMax, // Must be last member of enum. |
| 166 }; | 170 }; |
| 167 | 171 |
| 168 void ReportPresentationResult(PresentationResult); | 172 void ReportPresentationResult(PresentationResult); |
| 169 | 173 |
| 170 } // namespace blink | 174 } // namespace blink |
| 171 | 175 |
| 172 #endif // VRDisplay_h | 176 #endif // VRDisplay_h |
| OLD | NEW |