Index: Source/WebKit/chromium/src/WebViewImpl.cpp |
diff --git a/Source/WebKit/chromium/src/WebViewImpl.cpp b/Source/WebKit/chromium/src/WebViewImpl.cpp |
index 36f87421be3b01f6714dc1702d7b84ef073366e0..70972ca9d4ae4abf5c88d24ef868c8de0b96f5e1 100644 |
--- a/Source/WebKit/chromium/src/WebViewImpl.cpp |
+++ b/Source/WebKit/chromium/src/WebViewImpl.cpp |
@@ -142,6 +142,7 @@ |
#include "core/rendering/RenderLayerCompositor.h" |
#include "core/rendering/RenderView.h" |
#include "core/rendering/RenderWidget.h" |
+#include "modules/device_orientation/DeviceMotionController.h" |
#include "painting/ContinuousPainter.h" |
#include "painting/GraphicsContextBuilder.h" |
#include "src/WebActiveGestureAnimation.h" |
@@ -481,6 +482,7 @@ WebViewImpl::WebViewImpl(WebViewClient* client) |
#endif |
provideContextFeaturesTo(m_page.get(), m_featureSwitchClient.get()); |
+ provideDeviceMotionTo(m_page.get()); |
provideDeviceOrientationTo(m_page.get(), m_deviceOrientationClientProxy.get()); |
provideGeolocationTo(m_page.get(), m_geolocationClientProxy.get()); |
m_geolocationClientProxy->setController(GeolocationController::from(m_page.get())); |