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

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

Issue 2167643003: Refactored VRService interaction and added VRServiceClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Liberal sprinkling of 'u's Created 4 years, 4 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 ScriptPromise requestPresent(ScriptState*, const HeapVector<VRLayer>& layers ); 65 ScriptPromise requestPresent(ScriptState*, const HeapVector<VRLayer>& layers );
66 ScriptPromise exitPresent(ScriptState*); 66 ScriptPromise exitPresent(ScriptState*);
67 67
68 HeapVector<VRLayer> getLayers(); 68 HeapVector<VRLayer> getLayers();
69 69
70 void submitFrame(VRPose*); 70 void submitFrame(VRPose*);
71 71
72 DECLARE_VIRTUAL_TRACE(); 72 DECLARE_VIRTUAL_TRACE();
73 73
74 protected: 74 protected:
75 friend class VRDisplayCollection; 75 friend class VRController;
76 76
77 VRDisplay(NavigatorVR*); 77 VRDisplay(NavigatorVR*);
78 78
79 void update(const device::blink::VRDisplayPtr&); 79 void update(const device::blink::VRDisplayPtr&);
80 80
81 VRController* controller(); 81 VRController* controller();
82 82
83 private: 83 private:
84 // TaskObserver implementation. 84 // TaskObserver implementation.
85 void didProcessTask() override; 85 void didProcessTask() override;
(...skipping 11 matching lines...) Expand all
97 Member<VREyeParameters> m_eyeParametersLeft; 97 Member<VREyeParameters> m_eyeParametersLeft;
98 Member<VREyeParameters> m_eyeParametersRight; 98 Member<VREyeParameters> m_eyeParametersRight;
99 Member<VRPose> m_framePose; 99 Member<VRPose> m_framePose;
100 }; 100 };
101 101
102 using VRDisplayVector = HeapVector<Member<VRDisplay>>; 102 using VRDisplayVector = HeapVector<Member<VRDisplay>>;
103 103
104 } // namespace blink 104 } // namespace blink
105 105
106 #endif // VRDisplay_h 106 #endif // VRDisplay_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRController.cpp ('k') | third_party/WebKit/Source/modules/vr/VRDisplayCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698