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

Unified Diff: device/gamepad/gamepad_provider.h

Issue 2808093006: [Device Service] Move Gamepad Blink headers to be part of the Gamepad client library (Closed)
Patch Set: rebase and address comments Created 3 years, 8 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
« no previous file with comments | « device/gamepad/gamepad_platform_data_fetcher_win.cc ('k') | device/gamepad/gamepad_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/gamepad/gamepad_provider.h
diff --git a/device/gamepad/gamepad_provider.h b/device/gamepad/gamepad_provider.h
index bc54d94e296570e61aef0d200aa94fbe44ee769d..6dea63ac52744b022165d3f739307548277bc847 100644
--- a/device/gamepad/gamepad_provider.h
+++ b/device/gamepad/gamepad_provider.h
@@ -18,10 +18,9 @@
#include "device/gamepad/gamepad_export.h"
#include "device/gamepad/gamepad_pad_state_provider.h"
#include "device/gamepad/gamepad_shared_buffer.h"
+#include "device/gamepad/public/cpp/gamepads.h"
#include "mojo/public/cpp/system/buffer.h"
-#include "third_party/WebKit/public/platform/WebGamepads.h"
-
namespace base {
class SingleThreadTaskRunner;
class Thread;
@@ -35,7 +34,7 @@ class DEVICE_GAMEPAD_EXPORT GamepadConnectionChangeClient {
public:
virtual void OnGamepadConnectionChange(bool connected,
int index,
- const blink::WebGamepad& pad) = 0;
+ const Gamepad& pad) = 0;
};
class DEVICE_GAMEPAD_EXPORT GamepadProvider
@@ -63,7 +62,7 @@ class DEVICE_GAMEPAD_EXPORT GamepadProvider
void AddGamepadDataFetcher(GamepadDataFetcher* fetcher);
void RemoveGamepadDataFetcher(GamepadDataFetcher* fetcher);
- void GetCurrentGamepadData(blink::WebGamepads* data);
+ void GetCurrentGamepadData(Gamepads* data);
// Pause and resume the background polling thread. Can be called from any
// thread.
@@ -101,9 +100,7 @@ class DEVICE_GAMEPAD_EXPORT GamepadProvider
void DoPoll();
void ScheduleDoPoll();
- void OnGamepadConnectionChange(bool connected,
- int index,
- const blink::WebGamepad& pad);
+ void OnGamepadConnectionChange(bool connected, int index, const Gamepad& pad);
// Checks the gamepad state to see if the user has interacted with it.
void CheckForUserGesture();
« no previous file with comments | « device/gamepad/gamepad_platform_data_fetcher_win.cc ('k') | device/gamepad/gamepad_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698