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

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

Issue 195993007: Factor out GamepadCommon base class from Gamepad and WebKitGamepad (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove excess header 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/GamepadCommon.cpp ('k') | Source/modules/gamepad/GamepadList.cpp » ('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 b19e6afc5c042d2e2ff471da76bf39ceb9734733..363e5b9de05605bf559cbf4d60660835d394af8c 100644
--- a/Source/modules/gamepad/GamepadList.h
+++ b/Source/modules/gamepad/GamepadList.h
@@ -36,23 +36,22 @@
namespace WebCore {
-class GamepadList : public RefCountedWillBeGarbageCollectedFinalized<GamepadList>, public ScriptWrappable {
+class GamepadList FINAL : public RefCountedWillBeGarbageCollectedFinalized<GamepadList>, public ScriptWrappable {
public:
- static PassRefPtrWillBeRawPtr<GamepadList> create() { return adoptRefWillBeNoop(new GamepadList); }
+ static PassRefPtrWillBeRawPtr<GamepadList> create()
+ {
+ return adoptRefWillBeNoop(new GamepadList);
+ }
~GamepadList();
void set(unsigned index, PassRefPtrWillBeRawPtr<Gamepad>);
Gamepad* item(unsigned index);
- unsigned length() const;
+ unsigned length() const { return blink::WebGamepads::itemsLengthCap; }
void trace(Visitor*);
private:
- GamepadList()
- {
- ScriptWrappable::init(this);
- }
-
+ GamepadList();
RefPtrWillBeMember<Gamepad> m_items[blink::WebGamepads::itemsLengthCap];
};
« no previous file with comments | « Source/modules/gamepad/GamepadCommon.cpp ('k') | Source/modules/gamepad/GamepadList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698