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

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

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/test_runner/WebTestDelegate.h
diff --git a/content/shell/renderer/test_runner/WebTestDelegate.h b/content/shell/renderer/test_runner/WebTestDelegate.h
index 577f28e82b9fcf0501c72bd5cfe3b2f0b980bbe0..6337aee99a7a2b7d33a616fa8ba782855e4a3b79 100644
--- a/content/shell/renderer/test_runner/WebTestDelegate.h
+++ b/content/shell/renderer/test_runner/WebTestDelegate.h
@@ -18,6 +18,7 @@ namespace blink {
class WebDeviceMotionData;
class WebDeviceOrientationData;
class WebFrame;
+class WebGamepad;
class WebGamepads;
class WebHistoryItem;
struct WebRect;
@@ -41,6 +42,12 @@ public:
// 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;
+
// Set data to return when registering via Platform::setDeviceMotionListener().
virtual void setDeviceMotionData(const blink::WebDeviceMotionData&) = 0;
// Set data to return when registering via Platform::setDeviceOrientationListener().

Powered by Google App Engine
This is Rietveld 408576698