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

Unified Diff: device/vr/vr_device.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_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 6a33287be5959f355154455d55fbc12a3b9a81c3..e08c548e31217407c8167fcafd34007b427e5f39 100644
--- a/device/vr/vr_device.cc
+++ b/device/vr/vr_device.cc
@@ -69,9 +69,10 @@ void VRDevice::OnFocus() {
display->OnFocus();
}
-void VRDevice::OnActivate(mojom::VRDisplayEventReason reason) {
+void VRDevice::OnActivate(mojom::VRDisplayEventReason reason,
+ const base::Callback<void(bool)>& on_handled) {
for (auto* display : displays_)
- display->OnActivate(reason);
+ display->OnActivate(reason, on_handled);
}
void VRDevice::OnDeactivate(mojom::VRDisplayEventReason reason) {
« 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