| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 DECLARE_VIRTUAL_TRACE(); | 73 DECLARE_VIRTUAL_TRACE(); |
| 74 | 74 |
| 75 protected: | 75 protected: |
| 76 friend class VRController; | 76 friend class VRController; |
| 77 | 77 |
| 78 VRDisplay(NavigatorVR*); | 78 VRDisplay(NavigatorVR*); |
| 79 | 79 |
| 80 void update(const device::blink::VRDisplayPtr&); | 80 void update(const device::blink::VRDisplayPtr&); |
| 81 | 81 |
| 82 void disconnected(); |
| 83 |
| 82 VRController* controller(); | 84 VRController* controller(); |
| 83 | 85 |
| 84 private: | 86 private: |
| 85 // TaskObserver implementation. | 87 // TaskObserver implementation. |
| 86 void didProcessTask() override; | 88 void didProcessTask() override; |
| 87 void willProcessTask() override { } | 89 void willProcessTask() override { } |
| 88 | 90 |
| 89 void onFullscreenCheck(TimerBase*); | 91 void onFullscreenCheck(TimerBase*); |
| 90 | 92 |
| 91 Member<NavigatorVR> m_navigatorVR; | 93 Member<NavigatorVR> m_navigatorVR; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 103 VRLayer m_layer; | 105 VRLayer m_layer; |
| 104 | 106 |
| 105 Timer<VRDisplay> m_fullscreenCheckTimer; | 107 Timer<VRDisplay> m_fullscreenCheckTimer; |
| 106 }; | 108 }; |
| 107 | 109 |
| 108 using VRDisplayVector = HeapVector<Member<VRDisplay>>; | 110 using VRDisplayVector = HeapVector<Member<VRDisplay>>; |
| 109 | 111 |
| 110 } // namespace blink | 112 } // namespace blink |
| 111 | 113 |
| 112 #endif // VRDisplay_h | 114 #endif // VRDisplay_h |
| OLD | NEW |