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

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

Issue 446603002: Refactor code listening to platform events in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webkitplatform_impl_start_stop
Patch Set: apply review comments Created 6 years, 4 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/gamepad_controller.h
diff --git a/content/shell/renderer/test_runner/gamepad_controller.h b/content/shell/renderer/test_runner/gamepad_controller.h
index 99b7efc285598a6b40cbcd3b1caa5e5e8ef9e726..53338a80f098b3c36b4bd6737186c05ac4c68b37 100644
--- a/content/shell/renderer/test_runner/gamepad_controller.h
+++ b/content/shell/renderer/test_runner/gamepad_controller.h
@@ -34,8 +34,9 @@ class GamepadController
// RendererGamepadProvider implementation.
virtual void SampleGamepads(
blink::WebGamepads& gamepads) OVERRIDE;
- virtual void SetGamepadListener(
- blink::WebGamepadListener* listener) OVERRIDE;
+ virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE;
+ virtual void SendStartMessage() OVERRIDE;
+ virtual void SendStopMessage() OVERRIDE;
private:
friend class GamepadControllerBindings;
@@ -58,8 +59,6 @@ class GamepadController
blink::WebGamepads gamepads_;
- blink::WebGamepadListener* listener_;
-
// Mapping from gamepad index to connection state.
std::map<int, bool> pending_changes_;

Powered by Google App Engine
This is Rietveld 408576698