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_BROWSER_VR_VR_DEVICE_H | |
6 #define CONTENT_BROWSER_VR_VR_DEVICE_H | |
7 | |
8 namespace blink { | |
9 struct WebHMDSensorState; | |
10 struct WebVRFieldOfView; | |
11 class WebVRDevice; | |
12 struct WebVRVector4; | |
13 } | |
14 | |
15 namespace ui { | |
16 class BaseWindow; | |
17 } | |
18 | |
19 namespace content { | |
20 | |
21 class VRDeviceProvider; | |
22 | |
no sievers
2015/03/19 01:24:51
So all of this - device, service, provider - gets
| |
23 class VRDevice { | |
24 public: | |
25 VRDevice(VRDeviceProvider* provider); | |
26 virtual ~VRDevice(); | |
27 | |
28 VRDeviceProvider* provider() const { return provider_; } | |
29 unsigned int id() const { return id_; } | |
30 | |
31 virtual void GetVRDevice(blink::WebVRDevice* device) = 0; | |
32 virtual void GetHMDSensorState(blink::WebHMDSensorState* state) = 0; | |
33 virtual void ResetSensor() = 0; | |
34 virtual void GetRenderTargetRects( | |
35 blink::WebVRFieldOfView leftFov, | |
36 blink::WebVRFieldOfView rightFov, | |
37 blink::WebVRVector4* leftRect, | |
38 blink::WebVRVector4* rightRect) = 0; | |
39 | |
40 private: | |
41 VRDeviceProvider* provider_; | |
42 unsigned int id_; | |
43 | |
44 static unsigned int next_id_; | |
45 }; | |
46 | |
47 } // namespace content | |
48 | |
49 #endif // CONTENT_BROWSER_VR_VR_DEVICE_H | |
OLD | NEW |