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

Unified Diff: Source/web/FrameLoaderClientImpl.cpp

Issue 848053002: Adding WebVR interface to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed compiler warning treated as an error on Windows Created 5 years, 9 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: Source/web/FrameLoaderClientImpl.cpp
diff --git a/Source/web/FrameLoaderClientImpl.cpp b/Source/web/FrameLoaderClientImpl.cpp
index b23c973cd5e46249f90cbc82be65273a748681a9..5fae110cc09fb7ab05af38fb53aa3cdf469312f0 100644
--- a/Source/web/FrameLoaderClientImpl.cpp
+++ b/Source/web/FrameLoaderClientImpl.cpp
@@ -57,6 +57,7 @@
#include "modules/gamepad/NavigatorGamepad.h"
#include "modules/serviceworkers/NavigatorServiceWorker.h"
#include "modules/storage/DOMWindowStorageController.h"
+#include "modules/vr/NavigatorVRDevice.h"
#include "platform/MIMETypeRegistry.h"
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/UserGestureIndicator.h"
@@ -132,6 +133,8 @@ void FrameLoaderClientImpl::dispatchDidClearWindowObjectInMainWorld()
if (RuntimeEnabledFeatures::serviceWorkerEnabled())
NavigatorServiceWorker::from(*document);
DOMWindowStorageController::from(*document);
+ if (RuntimeEnabledFeatures::vRDeviceEnabled())
+ NavigatorVRDevice::from(*document);
}
}
// FIXME: when extensions go out of process, this whole concept stops working.

Powered by Google App Engine
This is Rietveld 408576698