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

Side by Side Diff: device/vr/test/fake_vr_device.cc

Issue 2041003003: Moved vr_service.mojom from blink to device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed missing mojo dependency in gyp builds Created 4 years, 6 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 | « device/vr/test/fake_vr_device.h ('k') | device/vr/vr.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "device/vr/test/fake_vr_device.h" 5 #include "device/vr/test/fake_vr_device.h"
6 6
7 namespace device { 7 namespace device {
8 8
9 FakeVRDevice::FakeVRDevice(VRDeviceProvider* provider) : VRDevice(provider) { 9 FakeVRDevice::FakeVRDevice(VRDeviceProvider* provider) : VRDevice(provider) {
10 device_ = blink::mojom::VRDisplay::New(); 10 device_ = VRDisplay::New();
11 pose_ = blink::mojom::VRPose::New(); 11 pose_ = VRPose::New();
12 } 12 }
13 13
14 FakeVRDevice::~FakeVRDevice() {} 14 FakeVRDevice::~FakeVRDevice() {}
15 15
16 void FakeVRDevice::SetVRDevice(const blink::mojom::VRDisplayPtr& device) { 16 void FakeVRDevice::SetVRDevice(const VRDisplayPtr& device) {
17 device_ = device.Clone(); 17 device_ = device.Clone();
18 } 18 }
19 19
20 void FakeVRDevice::SetPose(const blink::mojom::VRPosePtr& pose) { 20 void FakeVRDevice::SetPose(const VRPosePtr& pose) {
21 pose_ = pose.Clone(); 21 pose_ = pose.Clone();
22 } 22 }
23 23
24 blink::mojom::VRDisplayPtr FakeVRDevice::GetVRDevice() { 24 VRDisplayPtr FakeVRDevice::GetVRDevice() {
25 return device_.Clone(); 25 return device_.Clone();
26 } 26 }
27 27
28 blink::mojom::VRPosePtr FakeVRDevice::GetPose() { 28 VRPosePtr FakeVRDevice::GetPose() {
29 return pose_.Clone(); 29 return pose_.Clone();
30 } 30 }
31 31
32 void FakeVRDevice::ResetPose() {} 32 void FakeVRDevice::ResetPose() {}
33 33
34 } // namespace device 34 } // namespace device
OLDNEW
« no previous file with comments | « device/vr/test/fake_vr_device.h ('k') | device/vr/vr.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698