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

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

Issue 13866007: WebKit & WebCore part of the device motion implementation using the platform layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@devicemotion-webcore
Patch Set: fixed Eric's comments. 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 dd732f5136c940f128c2b12c2e3d106a5fc0eb30..be2077c6f4a6bdc892b43a0fa3b6712faad827fe 100644
--- a/Source/WebKit/chromium/src/WebViewImpl.cpp
+++ b/Source/WebKit/chromium/src/WebViewImpl.cpp
@@ -47,6 +47,7 @@
#include "ContextMenuItem.h"
#include "Cursor.h"
#include "DOMUtilitiesPrivate.h"
+#include "DeviceMotionController.h"
#include "DeviceOrientationClientProxy.h"
#include "Document.h"
#include "DocumentLoader.h"
@@ -492,6 +493,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()));
« Source/WebCore/platform/chromium/DeviceMotion.cpp ('K') | « Source/WebKit/chromium/WebKit.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698