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

Unified Diff: third_party/WebKit/Source/modules/vr/VRController.cpp

Issue 2510993002: Notify VRDeviceProviders when there are pages listening for vrdisplayactivate (Closed)
Patch Set: Rebase 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 | « third_party/WebKit/Source/modules/vr/VRController.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/vr/VRController.cpp
diff --git a/third_party/WebKit/Source/modules/vr/VRController.cpp b/third_party/WebKit/Source/modules/vr/VRController.cpp
index 264e861be524b4e90563889089ec57b328273498..1b60be23498139951a0436ac4773af8df5ef63d5 100644
--- a/third_party/WebKit/Source/modules/vr/VRController.cpp
+++ b/third_party/WebKit/Source/modules/vr/VRController.cpp
@@ -52,6 +52,11 @@ void VRController::getDisplays(ScriptPromiseResolver* resolver) {
makeUnique<VRGetDevicesCallback>(resolver));
}
+void VRController::setListeningForActivate(bool listening) {
+ if (m_service)
+ m_service->SetListeningForActivate(listening);
+}
+
// Each time a new VRDisplay is connected we'll recieve a VRDisplayPtr for it
// here. Upon calling SetClient in the constructor we should receive one call
// for each VRDisplay that was already connected at the time.
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRController.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698