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

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

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/android/cardboard/cardboard_vr_device.cc ('k') | device/vr/test/fake_vr_device.cc » ('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 #ifndef DEVICE_VR_TEST_FAKE_VR_DEVICE_H_ 5 #ifndef DEVICE_VR_TEST_FAKE_VR_DEVICE_H_
6 #define DEVICE_VR_TEST_FAKE_VR_DEVICE_H_ 6 #define DEVICE_VR_TEST_FAKE_VR_DEVICE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "device/vr/vr_device.h" 9 #include "device/vr/vr_device.h"
10 #include "device/vr/vr_device_provider.h" 10 #include "device/vr/vr_device_provider.h"
11 11
12 namespace device { 12 namespace device {
13 13
14 class FakeVRDevice : public VRDevice { 14 class FakeVRDevice : public VRDevice {
15 public: 15 public:
16 explicit FakeVRDevice(VRDeviceProvider* provider); 16 explicit FakeVRDevice(VRDeviceProvider* provider);
17 ~FakeVRDevice() override; 17 ~FakeVRDevice() override;
18 18
19 void SetVRDevice(const blink::mojom::VRDisplayPtr& device); 19 void SetVRDevice(const VRDisplayPtr& device);
20 void SetPose(const blink::mojom::VRPosePtr& state); 20 void SetPose(const VRPosePtr& state);
21 21
22 blink::mojom::VRDisplayPtr GetVRDevice() override; 22 VRDisplayPtr GetVRDevice() override;
23 blink::mojom::VRPosePtr GetPose() override; 23 VRPosePtr GetPose() override;
24 void ResetPose() override; 24 void ResetPose() override;
25 25
26 private: 26 private:
27 blink::mojom::VRDisplayPtr device_; 27 VRDisplayPtr device_;
28 blink::mojom::VRPosePtr pose_; 28 VRPosePtr pose_;
29 29
30 DISALLOW_COPY_AND_ASSIGN(FakeVRDevice); 30 DISALLOW_COPY_AND_ASSIGN(FakeVRDevice);
31 }; 31 };
32 32
33 } // namespace device 33 } // namespace device
34 34
35 #endif // DEVICE_VR_TEST_FAKE_VR_DEVICE_H_ 35 #endif // DEVICE_VR_TEST_FAKE_VR_DEVICE_H_
OLDNEW
« no previous file with comments | « device/vr/android/cardboard/cardboard_vr_device.cc ('k') | device/vr/test/fake_vr_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698