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

Side by Side Diff: device/vr/vr_device_manager.h

Issue 2317483002: Add support of vrdisplayconnect and vrdisplaydisconnect event (Closed)
Patch Set: fix missing brace 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 | « device/vr/vr_client_dispatcher.h ('k') | device/vr/vr_device_manager.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_VR_DEVICE_MANAGER_H 5 #ifndef DEVICE_VR_VR_DEVICE_MANAGER_H
6 #define DEVICE_VR_VR_DEVICE_MANAGER_H 6 #define DEVICE_VR_VR_DEVICE_MANAGER_H
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 DEVICE_VR_EXPORT mojo::Array<VRDisplayPtr> GetVRDevices(); 44 DEVICE_VR_EXPORT mojo::Array<VRDisplayPtr> GetVRDevices();
45 45
46 // Manage presentation to only allow a single service and device at a time. 46 // Manage presentation to only allow a single service and device at a time.
47 DEVICE_VR_EXPORT bool RequestPresent(VRServiceImpl* service, 47 DEVICE_VR_EXPORT bool RequestPresent(VRServiceImpl* service,
48 unsigned int index); 48 unsigned int index);
49 DEVICE_VR_EXPORT void ExitPresent(VRServiceImpl* service, unsigned int index); 49 DEVICE_VR_EXPORT void ExitPresent(VRServiceImpl* service, unsigned int index);
50 void SubmitFrame(VRServiceImpl* service, unsigned int index, VRPosePtr pose); 50 void SubmitFrame(VRServiceImpl* service, unsigned int index, VRPosePtr pose);
51 51
52 // VRClientDispatcher implementation 52 // VRClientDispatcher implementation
53 void OnDeviceChanged(VRDisplayPtr device) override; 53 void OnDeviceChanged(VRDisplayPtr device) override;
54 void OnDeviceConnectionStatusChanged(VRDevice* device,
55 bool is_connected) override;
54 56
55 private: 57 private:
56 friend class VRDeviceManagerTest; 58 friend class VRDeviceManagerTest;
57 friend class VRServiceImplTest; 59 friend class VRServiceImplTest;
58 60
59 VRDeviceManager(); 61 VRDeviceManager();
60 // Constructor for testing. 62 // Constructor for testing.
61 DEVICE_VR_EXPORT explicit VRDeviceManager( 63 DEVICE_VR_EXPORT explicit VRDeviceManager(
62 std::unique_ptr<VRDeviceProvider> provider); 64 std::unique_ptr<VRDeviceProvider> provider);
63 65
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 base::ThreadChecker thread_checker_; 99 base::ThreadChecker thread_checker_;
98 100
99 base::RepeatingTimer timer_; 101 base::RepeatingTimer timer_;
100 102
101 DISALLOW_COPY_AND_ASSIGN(VRDeviceManager); 103 DISALLOW_COPY_AND_ASSIGN(VRDeviceManager);
102 }; 104 };
103 105
104 } // namespace content 106 } // namespace content
105 107
106 #endif // CONTENT_BROWSER_VR_VR_DEVICE_MANAGER_H 108 #endif // CONTENT_BROWSER_VR_VR_DEVICE_MANAGER_H
OLDNEW
« no previous file with comments | « device/vr/vr_client_dispatcher.h ('k') | device/vr/vr_device_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698