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

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

Issue 2265053004: Adding WebVR temporary presentation handling on mobile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased to fix UseCounter conflict Created 4 years, 4 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 f400ceeb49a1c8fef85de4e9d101bf2e4fa4be0f..b3acb36935316dd79addae9993ee094dfba11e3a 100644
--- a/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
+++ b/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
@@ -100,4 +100,12 @@ const char* NavigatorVR::supplementName()
return "NavigatorVR";
}
+void NavigatorVR::fireVRDisplayPresentChange(VRDisplay* display)
+{
+ if (m_frame && m_frame->localDOMWindow()) {
+ m_frame->localDOMWindow()->enqueueWindowEvent(
+ VRDisplayEvent::create(EventTypeNames::vrdisplaypresentchange, true, false, display, ""));
+ }
+}
+
} // namespace blink
« 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