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

Side by Side Diff: third_party/WebKit/Source/platform/vr/vr_type_converters.cc

Issue 1808203005: [OnionSoup] Moving VR service from content to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698