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

Unified Diff: content/browser/gamepad/gamepad_platform_data_fetcher_android.h

Issue 1586663006: Refactoring gamepad polling to support dynamically added sources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Avoid crash on Android content_unittests Created 4 years, 11 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/browser/gamepad/gamepad_platform_data_fetcher_android.h
diff --git a/content/browser/gamepad/gamepad_platform_data_fetcher_android.h b/content/browser/gamepad/gamepad_platform_data_fetcher_android.h
index c6ea2e37e1a3bec827b216094fb04c409a56530b..62825776c848207ed3e0cb1bfb12689091998c0f 100644
--- a/content/browser/gamepad/gamepad_platform_data_fetcher_android.h
+++ b/content/browser/gamepad/gamepad_platform_data_fetcher_android.h
@@ -26,13 +26,14 @@ class GamepadPlatformDataFetcherAndroid : public GamepadDataFetcher {
void PauseHint(bool paused) override;
- void GetGamepadData(blink::WebGamepads* pads,
- bool devices_changed_hint) override;
+ void GetGamepadData(bool devices_changed_hint) override;
// Registers the JNI methods for GamepadsReader.
static bool RegisterGamepadPlatformDataFetcherAndroid(JNIEnv* env);
private:
+ void OnAddedToProvider() override;
+
DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherAndroid);
};

Powered by Google App Engine
This is Rietveld 408576698