| 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 #include "content/renderer/vr/vr_type_converters.h" | 5 #include "platform/vr/vr_type_converters.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| 11 using content::VRVector3Ptr; | 11 using content::VRVector3Ptr; |
| 12 using content::VRVector4Ptr; | 12 using content::VRVector4Ptr; |
| 13 using content::VRRectPtr; | 13 using content::VRRectPtr; |
| 14 using content::VRFieldOfViewPtr; | 14 using content::VRFieldOfViewPtr; |
| 15 using content::VREyeParametersPtr; | 15 using content::VREyeParametersPtr; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 if (!input->linearAcceleration.is_null()) { | 140 if (!input->linearAcceleration.is_null()) { |
| 141 output.flags |= blink::WebVRSensorStateLinearAcceleration; | 141 output.flags |= blink::WebVRSensorStateLinearAcceleration; |
| 142 output.linearAcceleration = | 142 output.linearAcceleration = |
| 143 input->linearAcceleration.To<blink::WebVRVector3>(); | 143 input->linearAcceleration.To<blink::WebVRVector3>(); |
| 144 } | 144 } |
| 145 | 145 |
| 146 return output; | 146 return output; |
| 147 } | 147 } |
| 148 | 148 |
| 149 } // namespace mojo | 149 } // namespace mojo |
| OLD | NEW |