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

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

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: cleaner 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.cc
diff --git a/content/shell/renderer/test_runner/gamepad_controller.cc b/content/shell/renderer/test_runner/gamepad_controller.cc
index 8c4eedf47bce4f6526d3fd7a77bb646d76e1910d..be05d33a05d3e26fbd41ec36cb5ca89ffed296af 100644
--- a/content/shell/renderer/test_runner/gamepad_controller.cc
+++ b/content/shell/renderer/test_runner/gamepad_controller.cc
@@ -138,7 +138,7 @@ void GamepadControllerBindings::SetAxisData(int index, int axis, double data) {
}
GamepadController::GamepadController()
- : listener_(NULL),
+ : RendererGamepadProvider(0),
weak_factory_(this) {
Reset();
}
@@ -163,9 +163,14 @@ void GamepadController::SampleGamepads(blink::WebGamepads& gamepads) {
memcpy(&gamepads, &gamepads_, sizeof(blink::WebGamepads));
}
-void GamepadController::SetGamepadListener(
- blink::WebGamepadListener* listener) {
- listener_ = listener;
+bool GamepadController::OnControlMessageReceived(const IPC::Message& msg) {
+ return false;
+}
+
+void GamepadController::SendStartMessage() {
+}
+
+void GamepadController::SendStopMessage() {
}
void GamepadController::Connect(int index) {

Powered by Google App Engine
This is Rietveld 408576698