Index: content/renderer/renderer_webkitplatformsupport_impl.h |
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.h b/content/renderer/renderer_webkitplatformsupport_impl.h |
index 14fddb9e767b3cf448f6bbf82fdb5a9ad806ea45..1cf03c03f0e6d3acacd5feaf56ccea6910bf806a 100644 |
--- a/content/renderer/renderer_webkitplatformsupport_impl.h |
+++ b/content/renderer/renderer_webkitplatformsupport_impl.h |
@@ -122,6 +122,9 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl |
createSharedOffscreenGraphicsContext3DProvider(); |
virtual WebKit::WebCompositorSupport* compositorSupport(); |
+ virtual void setDeviceMotionListener( |
+ WebKit::WebDeviceMotionListener*) OVERRIDE; |
+ |
// Disables the WebSandboxSupport implementation for testing. |
// Tests that do not set up a full sandbox environment should call |
// SetSandboxEnabledForTesting(false) _before_ creating any instances |
@@ -134,6 +137,10 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl |
// Set WebGamepads to return when sampleGamepads() is invoked. |
static void SetMockGamepadsForTesting(const WebKit::WebGamepads& pads); |
+ // Set a mock listener to be used when setDeviceMotionListener is called. |
+ static void SetMockDeviceMotionListenerForTesting( |
+ WebKit::WebDeviceMotionListener*); |
+ |
private: |
bool CheckPreparsedJsCachingEnabled() const; |