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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/vr/vr_type_converters.h
diff --git a/content/renderer/vr/vr_type_converters.h b/content/renderer/vr/vr_type_converters.h
deleted file mode 100644
index 86b874abb2dc9cce226c2514b8ea7de41b941c81..0000000000000000000000000000000000000000
--- a/content/renderer/vr/vr_type_converters.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_CONTENT_RENDERER_VR_VR_TYPE_CONVERTERS_H_
-#define CHROME_CONTENT_RENDERER_VR_VR_TYPE_CONVERTERS_H_
-
-#include "content/common/vr_service.mojom.h"
-#include "mojo/common/common_type_converters.h"
-#include "third_party/WebKit/public/platform/modules/vr/WebVR.h"
-
-namespace mojo {
-
-// Type/enum conversions from WebVR data types to Mojo data types
-// and vice versa.
-
-template <>
-struct TypeConverter<blink::WebVRVector3, content::mojom::VRVector3Ptr> {
- static blink::WebVRVector3 Convert(const content::mojom::VRVector3Ptr& input);
-};
-
-template <>
-struct TypeConverter<blink::WebVRVector4, content::mojom::VRVector4Ptr> {
- static blink::WebVRVector4 Convert(const content::mojom::VRVector4Ptr& input);
-};
-
-template <>
-struct TypeConverter<blink::WebVRRect, content::mojom::VRRectPtr> {
- static blink::WebVRRect Convert(const content::mojom::VRRectPtr& input);
-};
-
-template <>
-struct TypeConverter<blink::WebVRFieldOfView,
- content::mojom::VRFieldOfViewPtr> {
- static blink::WebVRFieldOfView Convert(
- const content::mojom::VRFieldOfViewPtr& input);
-};
-
-template <>
-struct TypeConverter<blink::WebVREyeParameters,
- content::mojom::VREyeParametersPtr> {
- static blink::WebVREyeParameters Convert(
- const content::mojom::VREyeParametersPtr& input);
-};
-
-template <>
-struct TypeConverter<blink::WebVRHMDInfo, content::mojom::VRHMDInfoPtr> {
- static blink::WebVRHMDInfo Convert(const content::mojom::VRHMDInfoPtr& input);
-};
-
-template <>
-struct TypeConverter<blink::WebVRDevice, content::mojom::VRDeviceInfoPtr> {
- static blink::WebVRDevice Convert(
- const content::mojom::VRDeviceInfoPtr& input);
-};
-
-template <>
-struct TypeConverter<blink::WebHMDSensorState,
- content::mojom::VRSensorStatePtr> {
- static blink::WebHMDSensorState Convert(
- const content::mojom::VRSensorStatePtr& input);
-};
-
-} // namespace mojo
-
-#endif // CHROME_CONTENT_RENDERER_VR_VR_TYPE_CONVERTERS_H_
« 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