Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: third_party/WebKit/Source/modules/vr/VRDisplay.h

Issue 2317483002: Add support of vrdisplayconnect and vrdisplaydisconnect event (Closed)
Patch Set: fix missing brace Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRController.cpp ('k') | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698