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

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.h

Issue 14682023: Add plumbing for testing API for MockWebDeviceMotionHandler injection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: plumbing without the WebDeviceMotionProvider 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
« 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 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;
« 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