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

Unified Diff: third_party/WebKit/Source/modules/gamepad/GamepadDispatcher.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
Index: third_party/WebKit/Source/modules/gamepad/GamepadDispatcher.h
diff --git a/third_party/WebKit/Source/modules/gamepad/GamepadDispatcher.h b/third_party/WebKit/Source/modules/gamepad/GamepadDispatcher.h
index df091606e817f2cfe62c41c509424f69a66d4a61..3311e1d2e02c96133d3cbfd1ebba18f1cbccf1d7 100644
--- a/third_party/WebKit/Source/modules/gamepad/GamepadDispatcher.h
+++ b/third_party/WebKit/Source/modules/gamepad/GamepadDispatcher.h
@@ -6,14 +6,12 @@
#define GamepadDispatcher_h
#include "core/frame/PlatformEventDispatcher.h"
+#include "device/gamepad/public/cpp/gamepads.h"
#include "platform/heap/Handle.h"
-#include "public/platform/WebGamepad.h"
#include "public/platform/WebGamepadListener.h"
namespace blink {
-class WebGamepads;
-
class GamepadDispatcher final
: public GarbageCollectedFinalized<GamepadDispatcher>,
public PlatformEventDispatcher,
@@ -24,11 +22,11 @@ class GamepadDispatcher final
static GamepadDispatcher& Instance();
~GamepadDispatcher() override;
- void SampleGamepads(WebGamepads&);
+ void SampleGamepads(device::Gamepads&);
struct ConnectionChange {
DISALLOW_NEW();
- WebGamepad pad;
+ device::Gamepad pad;
unsigned index;
};
@@ -42,15 +40,15 @@ class GamepadDispatcher final
GamepadDispatcher();
// WebGamepadListener
- void DidConnectGamepad(unsigned index, const WebGamepad&) override;
- void DidDisconnectGamepad(unsigned index, const WebGamepad&) override;
+ void DidConnectGamepad(unsigned index, const device::Gamepad&) override;
+ void DidDisconnectGamepad(unsigned index, const device::Gamepad&) override;
// PlatformEventDispatcher
void StartListening() override;
void StopListening() override;
void DispatchDidConnectOrDisconnectGamepad(unsigned index,
- const WebGamepad&,
+ const device::Gamepad&,
bool connected);
ConnectionChange latest_change_;
« no previous file with comments | « third_party/WebKit/Source/modules/gamepad/Gamepad.cpp ('k') | third_party/WebKit/Source/modules/gamepad/GamepadDispatcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698