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

Unified Diff: third_party/WebKit/Source/modules/vr/NavigatorVR.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/NavigatorVR.cpp
diff --git a/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp b/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
index 9ef4489c674985325f37a19d9de3a3ccbf984b27..b6d8ccbbbb27cfe128ab0e730dba519dddc20993 100644
--- a/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
+++ b/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
@@ -104,6 +104,16 @@ void NavigatorVR::fireVRDisplayPresentChange(VRDisplay* display) {
}
}
+void NavigatorVR::fireVrDisplayOnBlur(VRDisplay* display) {
+ fireVREvent(VRDisplayEvent::create(EventTypeNames::vrdisplayblur, true, false,
+ display, ""));
+}
+
+void NavigatorVR::fireVrDisplayOnFocus(VRDisplay* display) {
+ fireVREvent(VRDisplayEvent::create(EventTypeNames::vrdisplayfocus, true,
+ false, display, ""));
+}
+
void NavigatorVR::fireVREvent(VRDisplayEvent* event) {
if (frame() && frame()->localDOMWindow()) {
frame()->localDOMWindow()->enqueueWindowEvent(event);

Powered by Google App Engine
This is Rietveld 408576698