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

Side by Side Diff: Source/modules/gamepad/WebKitGamepad.h

Issue 183313003: Added non-prefixed navigator.getGamepads() with updated API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added LayoutTests 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebKitGamepad_h
6 #define WebKitGamepad_h
7
8 #include "modules/gamepad/GamepadBase.h"
9
10 namespace WebCore {
11
12 class WebKitGamepad FINAL: public GamepadBase {
eseidel 2014/03/06 01:56:16 I'm not even sure we need to use two classes to im
Nils Barth (inactive) 2014/03/06 02:14:33 You can haz 2 IDL files with t3h same kla55: inter
bajones 2014/03/06 18:52:25 I would very much like to do this as it seems much
13 public:
14 static PassRefPtrWillBeRawPtr<WebKitGamepad> create()
15 {
16 return adoptRefWillBeNoop(new WebKitGamepad);
17 }
18 virtual ~WebKitGamepad();
19
20 const FloatVector& buttons() const { return m_buttons; }
21 virtual void buttons(unsigned count, const blink::WebGamepadButton* data);
Inactive 2014/03/06 02:54:00 OVERRIDE
22
23 private:
24 WebKitGamepad();
25 FloatVector m_buttons;
26 };
27
28 } // namespace WebCore
29
30 #endif // WebKitGamepad_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698