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

Unified Diff: Source/modules/gamepad/NavigatorGamepad.h

Issue 183313003: Added non-prefixed navigator.getGamepads() with updated API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 9 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 | « Source/modules/gamepad/GamepadList.idl ('k') | Source/modules/gamepad/NavigatorGamepad.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/gamepad/NavigatorGamepad.h
diff --git a/Source/modules/gamepad/NavigatorGamepad.h b/Source/modules/gamepad/NavigatorGamepad.h
index 9144eccf53048671e56e53ac650fc3703c94bf27..0de60e243802ca9260f0b41096ec7b8a3896e46a 100644
--- a/Source/modules/gamepad/NavigatorGamepad.h
+++ b/Source/modules/gamepad/NavigatorGamepad.h
@@ -28,19 +28,23 @@
#include "heap/Handle.h"
#include "platform/Supplementable.h"
+#include "public/platform/WebGamepads.h"
namespace WebCore {
class GamepadList;
class Navigator;
+class WebKitGamepadList;
class NavigatorGamepad FINAL : public Supplement<Navigator> {
public:
virtual ~NavigatorGamepad();
static NavigatorGamepad& from(Navigator&);
- static GamepadList* webkitGetGamepads(Navigator&);
+ static WebKitGamepadList* webkitGetGamepads(Navigator&);
+ static GamepadList* getGamepads(Navigator&);
+ WebKitGamepadList* webkitGamepads();
GamepadList* gamepads();
private:
@@ -48,6 +52,7 @@ private:
static const char* supplementName();
RefPtrWillBePersistent<GamepadList> m_gamepads;
+ RefPtrWillBePersistent<WebKitGamepadList> m_webkitGamepads;
};
} // namespace WebCore
« no previous file with comments | « Source/modules/gamepad/GamepadList.idl ('k') | Source/modules/gamepad/NavigatorGamepad.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698