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

Side by Side Diff: content/common/vr_messages.h

Issue 829803003: Adding Chrome-side WebVR interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing feedback from sievers@, part 1 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
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/common/vr_param_traits.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Multiply-included message file, no include guard.
6
7 #include <vector>
8
9 #include "content/common/vr_param_traits.h"
10 #include "ipc/ipc_message_macros.h"
11 #include "ipc/ipc_param_traits.h"
12 #include "ipc/ipc_platform_file.h"
13 #include "third_party/WebKit/public/platform/WebVR.h"
14
15 #define IPC_MESSAGE_START VRMsgStart
16
17 IPC_STRUCT_TRAITS_BEGIN(blink::WebVRVector3)
18 IPC_STRUCT_TRAITS_MEMBER(x)
19 IPC_STRUCT_TRAITS_MEMBER(y)
20 IPC_STRUCT_TRAITS_MEMBER(z)
21 IPC_STRUCT_TRAITS_END()
22
23 IPC_STRUCT_TRAITS_BEGIN(blink::WebVRVector4)
24 IPC_STRUCT_TRAITS_MEMBER(x)
25 IPC_STRUCT_TRAITS_MEMBER(y)
26 IPC_STRUCT_TRAITS_MEMBER(z)
27 IPC_STRUCT_TRAITS_MEMBER(w)
28 IPC_STRUCT_TRAITS_END()
29
30 IPC_STRUCT_TRAITS_BEGIN(blink::WebVRFieldOfView)
31 IPC_STRUCT_TRAITS_MEMBER(upDegrees)
32 IPC_STRUCT_TRAITS_MEMBER(downDegrees)
33 IPC_STRUCT_TRAITS_MEMBER(leftDegrees)
34 IPC_STRUCT_TRAITS_MEMBER(rightDegrees)
35 IPC_STRUCT_TRAITS_END()
36
37 IPC_STRUCT_TRAITS_BEGIN(blink::WebHMDSensorState)
38 IPC_STRUCT_TRAITS_MEMBER(timestamp)
39 IPC_STRUCT_TRAITS_MEMBER(frameIndex)
40 IPC_STRUCT_TRAITS_MEMBER(flags)
41 IPC_STRUCT_TRAITS_MEMBER(orientation)
42 IPC_STRUCT_TRAITS_MEMBER(position)
43 IPC_STRUCT_TRAITS_MEMBER(angularVelocity)
44 IPC_STRUCT_TRAITS_MEMBER(linearVelocity)
45 IPC_STRUCT_TRAITS_MEMBER(angularAcceleration)
46 IPC_STRUCT_TRAITS_MEMBER(linearAcceleration)
47 IPC_STRUCT_TRAITS_END()
48
49 // Messages sent from the renderer to the browser.
50
51 IPC_SYNC_MESSAGE_CONTROL0_1(VRHostMsg_GetVRDevices,
Mike West 2015/03/20 16:46:17 Nit: Can you add some comments about what exactly
52 std::vector<blink::WebVRDevice> /* devices */)
53
54 IPC_SYNC_MESSAGE_CONTROL1_1(VRHostMsg_GetHMDSensorState,
55 unsigned int /* index */,
56 blink::WebHMDSensorState /* state */)
57
58 IPC_MESSAGE_CONTROL1(VRHostMsg_ResetSensor, unsigned int /* index */)
59
60 IPC_SYNC_MESSAGE_CONTROL3_2(VRHostMsg_GetRenderTargetRects,
61 unsigned int /* index */,
62 blink::WebVRFieldOfView /* leftFov */,
63 blink::WebVRFieldOfView /* rightFov */,
64 blink::WebVRVector4 /* leftRect */,
65 blink::WebVRVector4 /* rightRect */)
OLDNEW
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/common/vr_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698