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

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

Issue 304403002: Gamepad: add test support for page visibility behavior (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing override's Created 6 years, 6 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/shell/renderer/webkit_test_runner.h ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b251935744037a800a3095edb9c25873da1f0851..f6247ba24f21492e87e43206c0f6fce7c7bf2055 100644
--- a/content/shell/renderer/webkit_test_runner.cc
+++ b/content/shell/renderer/webkit_test_runner.cc
@@ -201,20 +201,9 @@ void WebKitTestRunner::setEditCommand(const std::string& name,
render_view()->SetEditCommandForNextKeyEvent(name, value);
}
-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::setGamepadProvider(
+ RendererGamepadProvider* provider) {
+ SetMockGamepadProvider(provider);
}
void WebKitTestRunner::setDeviceMotionData(const WebDeviceMotionData& data) {
« no previous file with comments | « content/shell/renderer/webkit_test_runner.h ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698