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

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

Issue 2317483002: Add support of vrdisplayconnect and vrdisplaydisconnect event (Closed)
Patch Set: Address most comments from bajones@ Created 4 years, 3 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
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 b3acb36935316dd79addae9993ee094dfba11e3a..9f31b49e16b0597ee4c385c10a9c3311a5e4bd96 100644
--- a/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
+++ b/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
@@ -108,4 +108,11 @@ void NavigatorVR::fireVRDisplayPresentChange(VRDisplay* display)
}
}
+void NavigatorVR::fireVREvent(VRDisplayEvent* event)
+{
+ if (m_frame && m_frame->localDOMWindow()) {
+ m_frame->localDOMWindow()->enqueueWindowEvent(event);
+ }
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698