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

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

Issue 2317483002: Add support of vrdisplayconnect and vrdisplaydisconnect event (Closed)
Patch Set: Fix typo of Event reason 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/VRDisplay.cpp
diff --git a/third_party/WebKit/Source/modules/vr/VRDisplay.cpp b/third_party/WebKit/Source/modules/vr/VRDisplay.cpp
index a2479acca66daffd073cb2dcba9be8e51e203414..c5ad8892504c03dff2446eee9934ed8148f4a467 100644
--- a/third_party/WebKit/Source/modules/vr/VRDisplay.cpp
+++ b/third_party/WebKit/Source/modules/vr/VRDisplay.cpp
@@ -79,6 +79,12 @@ void VRDisplay::update(const device::blink::VRDisplayPtr& display)
}
}
+void VRDisplay::disconnected()
+{
+ if (m_isConnected)
+ m_isConnected = !m_isConnected;
+}
+
VRPose* VRDisplay::getPose()
{
if (m_canUpdateFramePose) {

Powered by Google App Engine
This is Rietveld 408576698