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

Unified Diff: device/vr/vr_device.cc

Issue 2510873003: Clean up WebVR RequestPresent and make callback asynchronous. (Closed)
Patch Set: Fix FakeVRDevice 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/vr/vr_device.h ('k') | device/vr/vr_display_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/vr_device.cc
diff --git a/device/vr/vr_device.cc b/device/vr/vr_device.cc
index 89c330452156e783b9b35aeb4519fb277736987a..78091044558e47db9ecb90ea30803c48fcf599ba 100644
--- a/device/vr/vr_device.cc
+++ b/device/vr/vr_device.cc
@@ -18,9 +18,11 @@ VRDevice::VRDevice() : presenting_service_(nullptr), id_(next_id_) {
VRDevice::~VRDevice() {}
-bool VRDevice::RequestPresent(bool secure_origin) {
- return true;
-};
+void VRDevice::RequestPresent(const base::Callback<void(bool)>& callback) {
+ callback.Run(true);
+}
+
+void VRDevice::SetSecureOrigin(bool secure_origin) {}
void VRDevice::AddService(VRServiceImpl* service) {
// Create a VRDisplayImpl for this service/device pair
« no previous file with comments | « device/vr/vr_device.h ('k') | device/vr/vr_display_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698