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

Side by Side Diff: content/browser/renderer_host/vr_message_filter.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_RENDERER_HOST_VR_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_VR_MESSAGE_FILTER_H_
7
8 #include <vector>
9 #include "base/compiler_specific.h"
10 #include "base/memory/shared_memory.h"
11 #include "content/browser/vr/vr_service.h"
12 #include "content/public/browser/browser_message_filter.h"
13
14
15 namespace blink {
16 struct WebHMDSensorState;
17 class WebVRDevice;
18 struct WebVRVector4;
19 }
20
21 namespace content {
22
23 class RenderProcessHost;
24
25 class VRMessageFilter :
26 public BrowserMessageFilter {
27 public:
28 VRMessageFilter();
29
30 // BrowserMessageFilter implementation.
31 bool OnMessageReceived(const IPC::Message& message) override;
32
33 private:
34 ~VRMessageFilter() override;
35
36 void OnGetVRDevices(std::vector<blink::WebVRDevice>* devices);
37
38 void OnGetHMDSensorState(
39 unsigned int index, blink::WebHMDSensorState* state);
40
41 void OnResetSensor(unsigned int index);
42
43 void OnGetRenderTargetRects(unsigned index,
44 blink::WebVRFieldOfView leftFov,
45 blink::WebVRFieldOfView rightFov,
46 blink::WebVRVector4* leftRect,
47 blink::WebVRVector4* rightRect);
48
49 DISALLOW_COPY_AND_ASSIGN(VRMessageFilter);
50 };
51
52 } // namespace content
53
54 #endif // CONTENT_BROWSER_RENDERER_HOST_VR_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698