OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_RENDERER_VR_DISPATCHER_H_ | |
6 #define CONTENT_RENDERER_VR_DISPATCHER_H_ | |
7 | |
8 #include "base/memory/scoped_ptr.h" | |
9 #include "content/common/vr_messages.h" | |
10 #include "content/public/renderer/render_process_observer.h" | |
11 #include "third_party/WebKit/public/platform/WebSize.h" | |
12 #include "third_party/WebKit/public/platform/WebVR.h" | |
13 #include "third_party/WebKit/public/platform/WebVector.h" | |
14 | |
15 namespace content { | |
16 | |
17 class VRDispatcher : public RenderProcessObserver { | |
18 public: | |
19 VRDispatcher(); | |
20 ~VRDispatcher() override; | |
21 | |
22 void GetVRDevices(blink::WebVector<blink::WebVRDevice>* devices); | |
23 | |
24 void GetHMDSensorState( | |
25 unsigned int index, blink::WebHMDSensorState& state); | |
26 | |
27 void ResetSensor(unsigned int index); | |
28 | |
29 void GetRenderTargetRects(unsigned index, | |
30 blink::WebVRFieldOfView leftFov, | |
31 blink::WebVRFieldOfView rightFov, | |
32 blink::WebVRVector4* leftRect, | |
33 blink::WebVRVector4* rightRect); | |
34 | |
35 // RenderProcessObserver implementation. | |
36 bool OnControlMessageReceived(const IPC::Message& message) override; | |
no sievers
2015/03/19 01:24:53
private: DISALLOW_COPY_AND_ASSIGN(VRDispatcher)
| |
37 }; | |
38 | |
39 } // namespace content | |
40 | |
41 #endif // CONTENT_RENDERER_VR_DISPATCHER_H_ | |
OLD | NEW |