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

Side by Side Diff: content/renderer/vr/vr_type_converters.h

Issue 1808203005: [OnionSoup] Moving VR service from content to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT! Created 4 years, 7 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/renderer/vr/vr_dispatcher.cc ('k') | content/renderer/vr/vr_type_converters.cc » ('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 #ifndef CHROME_CONTENT_RENDERER_VR_VR_TYPE_CONVERTERS_H_
6 #define CHROME_CONTENT_RENDERER_VR_VR_TYPE_CONVERTERS_H_
7
8 #include "content/common/vr_service.mojom.h"
9 #include "mojo/common/common_type_converters.h"
10 #include "third_party/WebKit/public/platform/modules/vr/WebVR.h"
11
12 namespace mojo {
13
14 // Type/enum conversions from WebVR data types to Mojo data types
15 // and vice versa.
16
17 template <>
18 struct TypeConverter<blink::WebVRVector3, content::mojom::VRVector3Ptr> {
19 static blink::WebVRVector3 Convert(const content::mojom::VRVector3Ptr& input);
20 };
21
22 template <>
23 struct TypeConverter<blink::WebVRVector4, content::mojom::VRVector4Ptr> {
24 static blink::WebVRVector4 Convert(const content::mojom::VRVector4Ptr& input);
25 };
26
27 template <>
28 struct TypeConverter<blink::WebVRRect, content::mojom::VRRectPtr> {
29 static blink::WebVRRect Convert(const content::mojom::VRRectPtr& input);
30 };
31
32 template <>
33 struct TypeConverter<blink::WebVRFieldOfView,
34 content::mojom::VRFieldOfViewPtr> {
35 static blink::WebVRFieldOfView Convert(
36 const content::mojom::VRFieldOfViewPtr& input);
37 };
38
39 template <>
40 struct TypeConverter<blink::WebVREyeParameters,
41 content::mojom::VREyeParametersPtr> {
42 static blink::WebVREyeParameters Convert(
43 const content::mojom::VREyeParametersPtr& input);
44 };
45
46 template <>
47 struct TypeConverter<blink::WebVRHMDInfo, content::mojom::VRHMDInfoPtr> {
48 static blink::WebVRHMDInfo Convert(const content::mojom::VRHMDInfoPtr& input);
49 };
50
51 template <>
52 struct TypeConverter<blink::WebVRDevice, content::mojom::VRDeviceInfoPtr> {
53 static blink::WebVRDevice Convert(
54 const content::mojom::VRDeviceInfoPtr& input);
55 };
56
57 template <>
58 struct TypeConverter<blink::WebHMDSensorState,
59 content::mojom::VRSensorStatePtr> {
60 static blink::WebHMDSensorState Convert(
61 const content::mojom::VRSensorStatePtr& input);
62 };
63
64 } // namespace mojo
65
66 #endif // CHROME_CONTENT_RENDERER_VR_VR_TYPE_CONVERTERS_H_
OLDNEW
« no previous file with comments | « content/renderer/vr/vr_dispatcher.cc ('k') | content/renderer/vr/vr_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698