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

Unified Diff: Source/WebKit/chromium/src/WebViewImpl.cpp

Issue 14460010: Implement the Blink part of the Device Motion API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed similarity diff Created 7 years, 8 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/WebKit/chromium/src/WebViewImpl.cpp
diff --git a/Source/WebKit/chromium/src/WebViewImpl.cpp b/Source/WebKit/chromium/src/WebViewImpl.cpp
index 36f87421be3b01f6714dc1702d7b84ef073366e0..6843a9d768eeae37a1588924270b2f1eb8b2ae0c 100644
--- a/Source/WebKit/chromium/src/WebViewImpl.cpp
+++ b/Source/WebKit/chromium/src/WebViewImpl.cpp
@@ -38,6 +38,7 @@
#include "CompositionUnderlineVectorBuilder.h"
#include "ContextFeaturesClientImpl.h"
#include "DeviceOrientationClientProxy.h"
+#include "modules/device_orientation/DeviceMotionController.h"
abarth-chromium 2013/04/29 20:32:20 Please put this include in alphabetical order.
timvolodine 2013/04/30 12:40:18 Done.
#include "GeolocationClientProxy.h"
#include "GeolocationController.h"
#include "GraphicsLayerFactoryChromium.h"
@@ -481,6 +482,7 @@ WebViewImpl::WebViewImpl(WebViewClient* client)
#endif
provideContextFeaturesTo(m_page.get(), m_featureSwitchClient.get());
+ provideDeviceMotionTo(m_page.get());
abarth-chromium 2013/04/29 20:32:20 This shouldn't be needed. This sort of thing is o
timvolodine 2013/04/30 12:40:18 DeviceMotionController is still a supplement of a
provideDeviceOrientationTo(m_page.get(), m_deviceOrientationClientProxy.get());
provideGeolocationTo(m_page.get(), m_geolocationClientProxy.get());
m_geolocationClientProxy->setController(GeolocationController::from(m_page.get()));

Powered by Google App Engine
This is Rietveld 408576698