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

Unified Diff: webkit/support/test_webkit_platform_support.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/test/layouttest_support.cc ('k') | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/test_webkit_platform_support.h
diff --git a/webkit/support/test_webkit_platform_support.h b/webkit/support/test_webkit_platform_support.h
index d06833c6ab03f5166635af56835cda9de7620ed3..c5d4b21ea16d22a839a7176510a1900141f07b6e 100644
--- a/webkit/support/test_webkit_platform_support.h
+++ b/webkit/support/test_webkit_platform_support.h
@@ -6,6 +6,7 @@
#define WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
#include "base/compiler_specific.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebDeviceMotionListener.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3D.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebUnitTestSupport.h"
@@ -168,6 +169,8 @@ class TestWebKitPlatformSupport :
threaded_compositing_enabled_ = enabled;
}
+ void setDeviceMotionListener(WebKit::WebDeviceMotionListener*);
+
private:
TestShellWebMimeRegistryImpl mime_registry_;
MockWebClipboardImpl mock_clipboard_;
@@ -187,6 +190,7 @@ class TestWebKitPlatformSupport :
WebKit::Platform* shadow_platform_delegate_;
bool threaded_compositing_enabled_;
webkit::WebCompositorSupportImpl compositor_support_;
+ WebKit::WebDeviceMotionListener* device_motion_listener_;
scoped_refptr<cc::ContextProvider> main_thread_contexts_;
« no previous file with comments | « content/test/layouttest_support.cc ('k') | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698