| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_CONTENT_RENDERER_VR_VR_TYPE_CONVERTERS_H_ | 5 #ifndef BLINK_PLATFORM_VR_VR_TYPE_CONVERTERS_H_ |
| 6 #define CHROME_CONTENT_RENDERER_VR_VR_TYPE_CONVERTERS_H_ | 6 #define BLINK_PLATFORM_VR_VR_TYPE_CONVERTERS_H_ |
| 7 | 7 |
| 8 #include "content/common/vr_service.mojom.h" | 8 #include "content/common/vr_service.mojom.h" |
| 9 #include "mojo/common/common_type_converters.h" | 9 #include "mojo/common/common_type_converters.h" |
| 10 #include "third_party/WebKit/public/platform/modules/vr/WebVR.h" | 10 #include "public/platform/modules/vr/WebVR.h" |
| 11 | 11 |
| 12 namespace mojo { | 12 namespace mojo { |
| 13 | 13 |
| 14 // Type/enum conversions from WebVR data types to Mojo data types | 14 // Type/enum conversions from WebVR data types to Mojo data types |
| 15 // and vice versa. | 15 // and vice versa. |
| 16 | 16 |
| 17 template <> | 17 template <> |
| 18 struct TypeConverter<blink::WebVRVector3, content::VRVector3Ptr> { | 18 struct TypeConverter<blink::WebVRVector3, content::VRVector3Ptr> { |
| 19 static blink::WebVRVector3 Convert(const content::VRVector3Ptr& input); | 19 static blink::WebVRVector3 Convert(const content::VRVector3Ptr& input); |
| 20 }; | 20 }; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 template <> | 54 template <> |
| 55 struct TypeConverter<blink::WebHMDSensorState, content::VRSensorStatePtr> { | 55 struct TypeConverter<blink::WebHMDSensorState, content::VRSensorStatePtr> { |
| 56 static blink::WebHMDSensorState Convert( | 56 static blink::WebHMDSensorState Convert( |
| 57 const content::VRSensorStatePtr& input); | 57 const content::VRSensorStatePtr& input); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace mojo | 60 } // namespace mojo |
| 61 | 61 |
| 62 #endif // CHROME_CONTENT_RENDERER_VR_VR_TYPE_CONVERTERS_H_ | 62 #endif // BLINK_PLATFORM_VR_VR_TYPE_CONVERTERS_H_ |
| OLD | NEW |