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

Unified Diff: device/gamepad/gamepad_platform_data_fetcher_linux.h

Issue 2129003002: Refactored gamepad polling to support dynamic sources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disabled sanitization test on Android. Suffers from same bug as PollingAccess test Created 4 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: device/gamepad/gamepad_platform_data_fetcher_linux.h
diff --git a/device/gamepad/gamepad_platform_data_fetcher_linux.h b/device/gamepad/gamepad_platform_data_fetcher_linux.h
index a3160f0b23029967bd12218d929f5f86b176287f..76361efa1ff323f18e40d0c260ec5eef05fdfd89 100644
--- a/device/gamepad/gamepad_platform_data_fetcher_linux.h
+++ b/device/gamepad/gamepad_platform_data_fetcher_linux.h
@@ -27,14 +27,21 @@ namespace device {
class DEVICE_GAMEPAD_EXPORT GamepadPlatformDataFetcherLinux
: public GamepadDataFetcher {
public:
+ typedef GamepadDataFetcherFactoryImpl<GamepadPlatformDataFetcherLinux,
+ GAMEPAD_SOURCE_LINUX_UDEV>
+ Factory;
+
GamepadPlatformDataFetcherLinux();
~GamepadPlatformDataFetcherLinux() override;
+ GamepadSource source() override;
+
// GamepadDataFetcher implementation.
- void GetGamepadData(blink::WebGamepads* pads,
- bool devices_changed_hint) override;
+ void GetGamepadData(bool devices_changed_hint) override;
private:
+ void OnAddedToProvider() override;
+
void RefreshDevice(udev_device* dev);
void EnumerateDevices();
void ReadDeviceData(size_t index);
« no previous file with comments | « device/gamepad/gamepad_platform_data_fetcher_android.cc ('k') | device/gamepad/gamepad_platform_data_fetcher_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698