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

Unified Diff: webkit/support/test_webkit_platform_support.cc

Issue 10823366: Adds platform support for DeviceMotion tests in WebKit (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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
« no previous file with comments | « webkit/support/test_webkit_platform_support.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/test_webkit_platform_support.cc
diff --git a/webkit/support/test_webkit_platform_support.cc b/webkit/support/test_webkit_platform_support.cc
index 1a98ab2d5c53c8151bdf79846c14b8ecf4d6c8e2..78a5e620493882439b926c90234917782f7de1ee 100644
--- a/webkit/support/test_webkit_platform_support.cc
+++ b/webkit/support/test_webkit_platform_support.cc
@@ -166,6 +166,14 @@ WebKit::WebClipboard* TestWebKitPlatformSupport::clipboard() {
return &mock_clipboard_;
}
+WebKit::WebDeviceMotionDetector*
+TestWebKitPlatformSupport::deviceMotionDetector() {
+ if (shadow_platform_delegate_)
+ return shadow_platform_delegate_->deviceMotionDetector();
+
+ return webkit_glue::WebKitPlatformSupportImpl::deviceMotionDetector();
+}
+
WebKit::WebFileUtilities* TestWebKitPlatformSupport::fileUtilities() {
return &file_utilities_;
}
« no previous file with comments | « webkit/support/test_webkit_platform_support.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698