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

Unified Diff: content/shell/renderer/webkit_test_runner.cc

Issue 207323002: Gamepad API: add test support for gamepad events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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: content/shell/renderer/webkit_test_runner.cc
diff --git a/content/shell/renderer/webkit_test_runner.cc b/content/shell/renderer/webkit_test_runner.cc
index d08eca43c5c162c97a6bbb35b033425dec136176..4141520208682f39eb21742dfd6522aeb6d04e1c 100644
--- a/content/shell/renderer/webkit_test_runner.cc
+++ b/content/shell/renderer/webkit_test_runner.cc
@@ -236,6 +236,18 @@ void WebKitTestRunner::setGamepadData(const WebGamepads& gamepads) {
SetMockGamepads(gamepads);
}
+void WebKitTestRunner::didConnectGamepad(
+ int index,
+ const blink::WebGamepad& gamepad) {
+ MockGamepadConnected(index, gamepad);
+}
+
+void WebKitTestRunner::didDisconnectGamepad(
+ int index,
+ const blink::WebGamepad& gamepad) {
+ MockGamepadDisconnected(index, gamepad);
+}
+
void WebKitTestRunner::setDeviceMotionData(const WebDeviceMotionData& data) {
SetMockDeviceMotionData(data);
}

Powered by Google App Engine
This is Rietveld 408576698