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

Side by Side Diff: content/browser/vr/vr_device.h

Issue 829803003: Adding Chrome-side WebVR interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates/cleanups before pulling in reviewers. Created 5 years, 9 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698