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

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.h

Issue 5222955109842944: Add plumbing for platform based Device Motion testing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: forward declare of WebDeviceMotionData Created 7 years, 5 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 | « content/public/test/layouttest_support.h ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_webkitplatformsupport_impl.h
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.h b/content/renderer/renderer_webkitplatformsupport_impl.h
index 7f096e5d20bbc1bc499e88bcd15d0dd4d1571770..12b3ba906d489ae426da5806ab50f4fbbc652990 100644
--- a/content/renderer/renderer_webkitplatformsupport_impl.h
+++ b/content/renderer/renderer_webkitplatformsupport_impl.h
@@ -28,6 +28,7 @@ class SyncMessageFilter;
}
namespace WebKit {
+class WebDeviceMotionData;
class WebGraphicsContext3DProvider;
}
@@ -150,6 +151,9 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
// Set WebGamepads to return when sampleGamepads() is invoked.
static void SetMockGamepadsForTesting(const WebKit::WebGamepads& pads);
+ // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked.
+ static void SetMockDeviceMotionDataForTesting(
+ const WebKit::WebDeviceMotionData& data);
private:
bool CheckPreparsedJsCachingEnabled() const;
« no previous file with comments | « content/public/test/layouttest_support.h ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698