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

Unified Diff: device/vr/vr_display_impl.cc

Issue 2844833005: Tentatively goes into WebVR presentation mode if page listens to vrdisplayactivate. (Closed)
Patch Set: Fixed device unit tests Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/vr/vr_display_impl.h ('k') | device/vr/vr_service.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/vr_display_impl.cc
diff --git a/device/vr/vr_display_impl.cc b/device/vr/vr_display_impl.cc
index 46542389da940711da252a54c4d87a4460f8fab2..d564b19de76dc3ef649fcb0ecd3ef676bdfbbb89 100644
--- a/device/vr/vr_display_impl.cc
+++ b/device/vr/vr_display_impl.cc
@@ -45,11 +45,12 @@ void VRDisplayImpl::OnFocus() {
client_->OnFocus();
}
-void VRDisplayImpl::OnActivate(mojom::VRDisplayEventReason reason) {
+void VRDisplayImpl::OnActivate(mojom::VRDisplayEventReason reason,
+ const base::Callback<void(bool)>& on_handled) {
VRDeviceManager* manager = VRDeviceManager::GetInstance();
if (!manager->IsMostRecentlyListeningForActivate(service_))
return;
- client_->OnActivate(reason);
+ client_->OnActivate(reason, on_handled);
}
void VRDisplayImpl::OnDeactivate(mojom::VRDisplayEventReason reason) {
« no previous file with comments | « device/vr/vr_display_impl.h ('k') | device/vr/vr_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698