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

Unified Diff: Tools/DumpRenderTree/chromium/WebViewHost.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: added MockWebDeviceMotionHandler and methods to set in in the platform Created 7 years, 7 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: Tools/DumpRenderTree/chromium/WebViewHost.cpp
diff --git a/Tools/DumpRenderTree/chromium/WebViewHost.cpp b/Tools/DumpRenderTree/chromium/WebViewHost.cpp
index 5fc7ea0ee534f6b10d482c72fee3a1122d1533a7..1aecda11a4c42ccb96e6572decd0da2a74f04a46 100644
--- a/Tools/DumpRenderTree/chromium/WebViewHost.cpp
+++ b/Tools/DumpRenderTree/chromium/WebViewHost.cpp
@@ -533,6 +533,11 @@ void WebViewHost::setGamepadData(const WebGamepads& pads)
webkit_support::SetGamepadData(pads);
}
+void WebViewHost::setDeviceMotionHandler(WebDeviceMotionHandler* handler)
+{
+ webkit_support::SetDeviceMotionHandler(handler);
+}
+
void WebViewHost::printMessage(const std::string& message)
{
printf("%s", message.c_str());

Powered by Google App Engine
This is Rietveld 408576698