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

Unified Diff: webkit/support/test_webkit_platform_support.h

Issue 5222955109842944: Add plumbing for platform based Device Motion testing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 95929fffbe18efd9900ec8c5f6034b0ca4018631..50dd87cb59419ac9f036f1707e9ac95773387e06 100644
--- a/webkit/support/test_webkit_platform_support.h
+++ b/webkit/support/test_webkit_platform_support.h
@@ -7,6 +7,7 @@
#include "base/compiler_specific.h"
#include "base/files/scoped_temp_dir.h"
+#include "third_party/WebKit/public/platform/WebDeviceMotionData.h"
#include "third_party/WebKit/public/platform/WebGamepads.h"
#include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
#include "third_party/WebKit/public/platform/WebUnitTestSupport.h"
@@ -104,6 +105,8 @@ class TestWebKitPlatformSupport :
virtual void sampleGamepads(WebKit::WebGamepads& data);
void setGamepadData(const WebKit::WebGamepads& data);
+ void setDeviceMotionData(const WebKit::WebDeviceMotionData& data);
+
virtual base::string16 GetLocalizedString(int message_id) OVERRIDE;
virtual base::StringPiece GetDataResource(
int resource_id,
@@ -154,6 +157,7 @@ class TestWebKitPlatformSupport :
webkit_glue::MockWebHyphenator hyphenator_;
WebURLLoaderMockFactory url_loader_factory_;
WebKit::WebGamepads gamepad_data_;
+ WebKit::WebDeviceMotionData device_motion_data_;
webkit::WebCompositorSupportImpl compositor_support_;
scoped_refptr<cc::ContextProvider> main_thread_contexts_;

Powered by Google App Engine
This is Rietveld 408576698