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

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

Issue 2317483002: Add support of vrdisplayconnect and vrdisplaydisconnect event (Closed)
Patch Set: Clean some style issue according to mthiesse@ 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
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_PROVIDER_H 5 #ifndef DEVICE_VR_ANDROID_GVR_DEVICE_PROVIDER_H
6 #define DEVICE_VR_ANDROID_GVR_DEVICE_PROVIDER_H 6 #define DEVICE_VR_ANDROID_GVR_DEVICE_PROVIDER_H
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "device/vr/android/gvr/gvr_delegate.h" 11 #include "device/vr/android/gvr/gvr_delegate.h"
12 #include "device/vr/vr_client_dispatcher.h"
12 #include "device/vr/vr_device.h" 13 #include "device/vr/vr_device.h"
13 #include "device/vr/vr_device_provider.h" 14 #include "device/vr/vr_device_provider.h"
14 15
15 namespace device { 16 namespace device {
16 17
17 class GvrDeviceProviderDelegate; 18 class GvrDeviceProviderDelegate;
18 19
19 class GvrDeviceProvider : public VRDeviceProvider, public GvrDelegateClient { 20 class GvrDeviceProvider : public VRDeviceProvider, public GvrDelegateClient {
20 public: 21 public:
21 GvrDeviceProvider(); 22 GvrDeviceProvider();
22 ~GvrDeviceProvider() override; 23 ~GvrDeviceProvider() override;
23 24
24 void GetDevices(std::vector<VRDevice*>* devices) override; 25 void GetDevices(std::vector<VRDevice*>* devices) override;
25 void Initialize() override; 26 void Initialize() override;
26 27
27 // GvrDelegateClient 28 // GvrDelegateClient
28 void OnDelegateInitialized(GvrDelegate* delegate) override; 29 void OnDelegateInitialized(GvrDelegate* delegate) override;
29 void OnDelegateShutdown() override; 30 void OnDelegateShutdown() override;
30 31
32 void PollEvents() override;
bajones 2016/09/12 01:36:15 This doesn't do anything anymore, so lets leave it
shaobo.yan 2016/09/12 01:59:01 Done.
33
34 void SetClient(VRClientDispatcher* client) override;
35
31 private: 36 private:
37 std::unique_ptr<VRClientDispatcher> client_;
32 std::unique_ptr<VRDevice> vr_device_; 38 std::unique_ptr<VRDevice> vr_device_;
33 std::unique_ptr<GvrDeviceProviderDelegate> delegate_; 39 std::unique_ptr<GvrDeviceProviderDelegate> delegate_;
34 40
35 DISALLOW_COPY_AND_ASSIGN(GvrDeviceProvider); 41 DISALLOW_COPY_AND_ASSIGN(GvrDeviceProvider);
36 }; 42 };
37 43
38 } // namespace device 44 } // namespace device
39 45
40 #endif // DEVICE_VR_ANDROID_GVR_DEVICE_PROVIDER_H 46 #endif // DEVICE_VR_ANDROID_GVR_DEVICE_PROVIDER_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698