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

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

Issue 196503004: Share Gamepad and WebKitGamepad implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Compiles and links 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
Index: Source/modules/gamepad/NavigatorGamepad.h
diff --git a/Source/modules/gamepad/NavigatorGamepad.h b/Source/modules/gamepad/NavigatorGamepad.h
index 9144eccf53048671e56e53ac650fc3703c94bf27..eb68daed715d47a6eb3aae9174925fe4502b25aa 100644
--- a/Source/modules/gamepad/NavigatorGamepad.h
+++ b/Source/modules/gamepad/NavigatorGamepad.h
@@ -28,6 +28,7 @@
#include "heap/Handle.h"
#include "platform/Supplementable.h"
+#include "public/platform/WebGamepads.h"
namespace WebCore {
@@ -40,7 +41,9 @@ public:
static NavigatorGamepad& from(Navigator&);
static GamepadList* webkitGetGamepads(Navigator&);
+ static GamepadList* getGamepads(Navigator&);
+ GamepadList* webkitGamepads();
GamepadList* gamepads();
private:
@@ -48,6 +51,7 @@ private:
static const char* supplementName();
RefPtrWillBePersistent<GamepadList> m_gamepads;
+ RefPtrWillBePersistent<GamepadList> m_webkitGamepads;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698