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

Side by Side 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: Add ABC FIXME 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, Google Inc. All rights reserved. 2 * Copyright (C) 2011, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met: 5 * modification, are permitted provided that the following conditions are met:
6 * 6 *
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 29 matching lines...) Expand all
40 public: 40 public:
41 static PassRefPtrWillBeRawPtr<GamepadList> create() { return adoptRefWillBeN oop(new GamepadList); } 41 static PassRefPtrWillBeRawPtr<GamepadList> create() { return adoptRefWillBeN oop(new GamepadList); }
42 ~GamepadList(); 42 ~GamepadList();
43 43
44 void set(unsigned index, PassRefPtrWillBeRawPtr<Gamepad>); 44 void set(unsigned index, PassRefPtrWillBeRawPtr<Gamepad>);
45 Gamepad* item(unsigned index); 45 Gamepad* item(unsigned index);
46 unsigned length() const; 46 unsigned length() const;
47 47
48 void trace(Visitor*); 48 void trace(Visitor*);
49 49
50 private: 50 protected:
51 // inherited by WebKitGamepadList
51 GamepadList() 52 GamepadList()
52 { 53 {
53 ScriptWrappable::init(this); 54 ScriptWrappable::init(this);
54 } 55 }
55 56
57 private:
58 // WebKitGamepadList items are of type WebKitGamepad, not Gamepad
haraken 2014/03/13 07:08:50 Remove this comment. Or move the comment to WebKit
56 RefPtrWillBeMember<Gamepad> m_items[blink::WebGamepads::itemsLengthCap]; 59 RefPtrWillBeMember<Gamepad> m_items[blink::WebGamepads::itemsLengthCap];
57 }; 60 };
58 61
59 } // namespace WebCore 62 } // namespace WebCore
60 63
61 #endif // GamepadList_h 64 #endif // GamepadList_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698