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

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

Issue 15232002: Make remaining modules/ objects ScriptWrappable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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/Gamepad.cpp ('k') | Source/modules/geolocation/Coordinates.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/gamepad/GamepadList.h
diff --git a/Source/modules/gamepad/GamepadList.h b/Source/modules/gamepad/GamepadList.h
index 3518b70035c529604243c9013d1eeb23ed8a39ca..2f36298149fba0700ace6ed46c0849793bec450d 100644
--- a/Source/modules/gamepad/GamepadList.h
+++ b/Source/modules/gamepad/GamepadList.h
@@ -26,6 +26,7 @@
#ifndef GamepadList_h
#define GamepadList_h
+#include "bindings/v8/ScriptWrappable.h"
#include "modules/gamepad/Gamepad.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
@@ -35,7 +36,7 @@ namespace WebCore {
typedef Vector<RefPtr<Gamepad> > GamepadVector;
-class GamepadList : public RefCounted<GamepadList> {
+class GamepadList : public RefCounted<GamepadList>, public ScriptWrappable {
public:
static PassRefPtr<GamepadList> create() { return adoptRef(new GamepadList); }
~GamepadList();
@@ -46,7 +47,11 @@ public:
private:
enum { kMaximumGamepads = 4 };
- GamepadList() { }
+ GamepadList()
+ {
+ ScriptWrappable::init(this);
+ }
+
RefPtr<Gamepad> m_items[kMaximumGamepads];
};
« no previous file with comments | « Source/modules/gamepad/Gamepad.cpp ('k') | Source/modules/geolocation/Coordinates.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698