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

Side by Side Diff: content/renderer/vr_dispatcher.h

Issue 829803003: Adding Chrome-side WebVR interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed the rest of sievers@ input 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_RENDERER_VR_DISPATCHER_H_
6 #define CONTENT_RENDERER_VR_DISPATCHER_H_
7
8 #include "base/memory/scoped_ptr.h"
no sievers 2015/03/26 19:55:15 nit: unneeded?
9 #include "content/common/vr_messages.h"
no sievers 2015/03/26 19:55:15 nit: can this move to the .cc file?
10 #include "content/public/renderer/render_process_observer.h"
no sievers 2015/03/26 19:55:15 nit: unneeded?
11 #include "third_party/WebKit/public/platform/WebSize.h"
no sievers 2015/03/26 19:55:15 nit: unneeded? and maybe some can be fwd-declared
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 {
18 public:
19 VRDispatcher();
20 ~VRDispatcher();
21
22 void GetVRDevices(blink::WebVector<blink::WebVRDevice>* devices);
23
24 void GetSensorState(
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 DISALLOW_COPY_AND_ASSIGN(VRDispatcher);
36 };
37
38 } // namespace content
39
40 #endif // CONTENT_RENDERER_VR_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698