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

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

Issue 2471433002: Implement WebVR presentation pausing for VR Shell Menu Mode (Closed)
Patch Set: Address comments 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
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 6fa41fab826dc2cf022b6a5eba2f2ffe11daacca..2f28838814672d8de60d3ebfadc0e51b3b3a7483 100644
--- a/third_party/WebKit/Source/modules/vr/VRController.cpp
+++ b/third_party/WebKit/Source/modules/vr/VRController.cpp
@@ -205,6 +205,22 @@ void VRController::OnDisplayDisconnected(unsigned index) {
vrDisplay, "disconnect"));
}
+void VRController::OnDisplayBlur(unsigned index) {
+ VRDisplay* vrDisplay = getDisplayForIndex(index);
+ if (!vrDisplay)
+ return;
+
+ vrDisplay->onDisplayBlur();
+}
+
+void VRController::OnDisplayFocus(unsigned index) {
+ VRDisplay* vrDisplay = getDisplayForIndex(index);
+ if (!vrDisplay)
+ return;
+
+ vrDisplay->onDisplayFocus();
+}
+
void VRController::contextDestroyed() {
// If the document context was destroyed, shut down the client connection
// and never call the mojo service again.

Powered by Google App Engine
This is Rietveld 408576698