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

Side by Side Diff: device/vr/android/gvr/gvr_device.h

Issue 2317483002: Add support of vrdisplayconnect and vrdisplaydisconnect event (Closed)
Patch Set: Fix typo of Event reason Created 4 years, 3 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 | « no previous file | device/vr/android/gvr/gvr_device.cc » ('j') | device/vr/android/gvr/gvr_device.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_ANDROID_GVR_DEVICE_H 5 #ifndef DEVICE_VR_ANDROID_GVR_DEVICE_H
6 #define DEVICE_VR_ANDROID_GVR_DEVICE_H 6 #define DEVICE_VR_ANDROID_GVR_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 10
11 namespace gvr { 11 namespace gvr {
12 class GvrApi; 12 class GvrApi;
13 } // namespace gvr 13 } // namespace gvr
14 14
15 namespace device { 15 namespace device {
16 16
17 class GvrDevice : public VRDevice { 17 class GvrDevice : public VRDevice {
18 public: 18 public:
19 GvrDevice(VRDeviceProvider* provider, gvr::GvrApi* gvr_api); 19 GvrDevice(VRDeviceProvider* provider, gvr::GvrApi* gvr_api);
20 ~GvrDevice() override; 20 ~GvrDevice() override;
21 21
22 // VRDevice 22 // VRDevice
23 VRDisplayPtr GetVRDevice() override; 23 VRDisplayPtr GetVRDevice() override;
24 VRPosePtr GetPose() override; 24 VRPosePtr GetPose() override;
25 void ResetPose() override; 25 void ResetPose() override;
26 26
27 virtual void PollEvents() override;
28
27 private: 29 private:
28 gvr::GvrApi* gvr_api_; 30 gvr::GvrApi* gvr_api_;
29 31
32 bool isConnected;
33
30 DISALLOW_COPY_AND_ASSIGN(GvrDevice); 34 DISALLOW_COPY_AND_ASSIGN(GvrDevice);
31 }; 35 };
32 36
33 } // namespace device 37 } // namespace device
34 38
35 #endif // DEVICE_VR_ANDROID_GVR_DEVICE_H 39 #endif // DEVICE_VR_ANDROID_GVR_DEVICE_H
OLDNEW
« no previous file with comments | « no previous file | device/vr/android/gvr/gvr_device.cc » ('j') | device/vr/android/gvr/gvr_device.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698