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

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

Issue 2471433002: Implement WebVR presentation pausing for VR Shell Menu Mode (Closed)
Patch Set: Created 4 years, 1 month 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 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 unsigned int index, 48 unsigned int index,
49 bool secure_origin); 49 bool secure_origin);
50 DEVICE_VR_EXPORT void ExitPresent(VRServiceImpl* service, unsigned int index); 50 DEVICE_VR_EXPORT void ExitPresent(VRServiceImpl* service, unsigned int index);
51 void SubmitFrame(VRServiceImpl* service, unsigned int index, VRPosePtr pose); 51 void SubmitFrame(VRServiceImpl* service, unsigned int index, VRPosePtr pose);
52 52
53 // VRClientDispatcher implementation 53 // VRClientDispatcher implementation
54 void OnDeviceChanged(VRDisplayPtr device) override; 54 void OnDeviceChanged(VRDisplayPtr device) override;
55 void OnDeviceConnectionStatusChanged(VRDevice* device, 55 void OnDeviceConnectionStatusChanged(VRDevice* device,
56 bool is_connected) override; 56 bool is_connected) override;
57 void OnPresentEnded(VRDevice* device) override; 57 void OnPresentEnded(VRDevice* device) override;
58 void PausePresent(VRDevice* device) override;
59 void ResumePresent(VRDevice* device) override;
58 60
59 private: 61 private:
60 friend class VRDeviceManagerTest; 62 friend class VRDeviceManagerTest;
61 friend class VRServiceImplTest; 63 friend class VRServiceImplTest;
62 64
63 VRDeviceManager(); 65 VRDeviceManager();
64 // Constructor for testing. 66 // Constructor for testing.
65 DEVICE_VR_EXPORT explicit VRDeviceManager( 67 DEVICE_VR_EXPORT explicit VRDeviceManager(
66 std::unique_ptr<VRDeviceProvider> provider); 68 std::unique_ptr<VRDeviceProvider> provider);
67 69
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 base::ThreadChecker thread_checker_; 103 base::ThreadChecker thread_checker_;
102 104
103 base::RepeatingTimer timer_; 105 base::RepeatingTimer timer_;
104 106
105 DISALLOW_COPY_AND_ASSIGN(VRDeviceManager); 107 DISALLOW_COPY_AND_ASSIGN(VRDeviceManager);
106 }; 108 };
107 109
108 } // namespace content 110 } // namespace content
109 111
110 #endif // CONTENT_BROWSER_VR_VR_DEVICE_MANAGER_H 112 #endif // CONTENT_BROWSER_VR_VR_DEVICE_MANAGER_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698