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

Unified Diff: webkit/support/test_webkit_platform_support.h

Issue 8561021: Support setting fake gamepad data from WebKit (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: include what you use Created 9 years, 1 month 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 | « no previous file | 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 b774afbf0545476ed001399efe572632f6ec3eb9..6dfd18b3a38ca5f4228f29dafa6ea0f9c92e3fac 100644
--- a/webkit/support/test_webkit_platform_support.h
+++ b/webkit/support/test_webkit_platform_support.h
@@ -5,6 +5,7 @@
#ifndef WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
#define WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebGamepads.h"
#include "webkit/glue/webfileutilities_impl.h"
#include "webkit/glue/webkitplatformsupport_impl.h"
#include "webkit/support/simple_database_system.h"
@@ -103,6 +104,9 @@ class TestWebKitPlatformSupport :
unsigned numberOfChannels, double sampleRate,
WebKit::WebAudioDevice::RenderCallback*);
+ virtual void sampleGamepads(WebKit::WebGamepads& data);
+ void setGamepadData(const WebKit::WebGamepads& data);
+
private:
TestShellWebMimeRegistryImpl mime_registry_;
MockWebClipboardImpl mock_clipboard_;
@@ -116,6 +120,7 @@ class TestWebKitPlatformSupport :
ScopedTempDir file_system_root_;
WebURLLoaderMockFactory url_loader_factory_;
bool unit_test_mode_;
+ WebKit::WebGamepads gamepad_data_;
#if defined(OS_WIN) || defined(OS_MACOSX)
WebKit::WebThemeEngine* active_theme_engine_;
« no previous file with comments | « no previous file | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698