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

Unified Diff: device/vr/android/gvr/gvr_device_provider.cc

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 | « device/vr/android/gvr/gvr_device_provider.h ('k') | device/vr/vr_device_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/android/gvr/gvr_device_provider.cc
diff --git a/device/vr/android/gvr/gvr_device_provider.cc b/device/vr/android/gvr/gvr_device_provider.cc
index 31a28f3b4914d7fc25c6dae7c949d8a0467454c3..5101ba9a8f265ad8e735618337e1322c0512c840 100644
--- a/device/vr/android/gvr/gvr_device_provider.cc
+++ b/device/vr/android/gvr/gvr_device_provider.cc
@@ -119,4 +119,13 @@ void GvrDeviceProvider::SwitchToNonPresentingDelegate() {
GAMEPAD_SOURCE_GVR);
}
+void GvrDeviceProvider::SetListeningForActivate(bool listening) {
+ device::GvrDelegateProvider* delegate_provider =
+ device::GvrDelegateProvider::GetInstance();
+ if (!delegate_provider)
+ return;
+
+ delegate_provider->SetListeningForActivate(listening);
+}
+
} // namespace device
« no previous file with comments | « device/vr/android/gvr/gvr_device_provider.h ('k') | device/vr/vr_device_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698