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

Unified Diff: content/shell/renderer/test_runner/WebTestDelegate.h

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
Index: content/shell/renderer/test_runner/WebTestDelegate.h
diff --git a/content/shell/renderer/test_runner/WebTestDelegate.h b/content/shell/renderer/test_runner/WebTestDelegate.h
index 31a9ad79f25bc8e7a8cba7820d5d316e17c0f50a..8d9f00448575ba406b8811deac82fb0f9d15b537 100644
--- a/content/shell/renderer/test_runner/WebTestDelegate.h
+++ b/content/shell/renderer/test_runner/WebTestDelegate.h
@@ -29,6 +29,7 @@ struct WebURLError;
namespace content {
+class RendererGamepadProvider;
class WebTask;
class WebTestProxyBase;
struct TestPreferences;
@@ -40,14 +41,8 @@ public:
virtual void clearEditCommand() = 0;
virtual void setEditCommand(const std::string& name, const std::string& value) = 0;
- // Set the gamepads to return from Platform::sampleGamepads().
- virtual void setGamepadData(const blink::WebGamepads&) = 0;
-
- // Notifies blink about a new gamepad.
- virtual void didConnectGamepad(int index, const blink::WebGamepad&) = 0;
-
- // Notifies blink that a gamepad has been disconnected.
- virtual void didDisconnectGamepad(int index, const blink::WebGamepad&) = 0;
+ // Sets gamepad provider to be used for tests.
+ virtual void setGamepadProvider(RendererGamepadProvider*) = 0;
// Set data to return when registering via Platform::setDeviceMotionListener().
virtual void setDeviceMotionData(const blink::WebDeviceMotionData&) = 0;
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.cc ('k') | content/shell/renderer/test_runner/gamepad_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698