Index: content/public/test/layouttest_support.h |
diff --git a/content/public/test/layouttest_support.h b/content/public/test/layouttest_support.h |
index 370a6e41afdab9a2eae3b4c659f59ff9dcdd23f2..6c7e847723a573cff9d84187646af181cdb458bf 100644 |
--- a/content/public/test/layouttest_support.h |
+++ b/content/public/test/layouttest_support.h |
@@ -11,6 +11,7 @@ |
namespace blink { |
class WebDeviceMotionData; |
class WebDeviceOrientationData; |
+class WebGamepad; |
class WebGamepads; |
struct WebSize; |
} |
@@ -42,6 +43,12 @@ void EnableWebTestProxyCreation(const base::Callback< |
// WebKitPlatformSupport::sampleGamepads(). |
void SetMockGamepads(const blink::WebGamepads& pads); |
+// Notifies blink about a new gamepad. |
+void MockGamepadConnected(int index, const blink::WebGamepad& pad); |
+ |
+// Notifies blink that a gamepad has been disconnected. |
+void MockGamepadDisconnected(int index, const blink::WebGamepad& pad); |
+ |
// Sets WebDeviceMotionData that should be used when registering |
// a listener through WebKitPlatformSupport::setDeviceMotionListener(). |
void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data); |