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

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

Issue 2471433002: Implement WebVR presentation pausing for VR Shell Menu Mode (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
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 f5fb788dbf054f0a810f7fd02eadaf18f5dc1343..838a27e93314c025b29e40ce6fed97bb7e0f47e2 100644
--- a/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
+++ b/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
@@ -107,6 +107,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);
« no previous file with comments | « third_party/WebKit/Source/modules/vr/NavigatorVR.h ('k') | third_party/WebKit/Source/modules/vr/VRDisplay.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698