OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 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 CONTENT_GAMEPAD_RENDERER_PROVIDER_H_ | |
6 #define CONTENT_GAMEPAD_RENDERER_PROVIDER_H_ | |
7 | |
8 namespace blink { | |
9 class WebGamepadListener; | |
10 class WebGamepads; | |
11 } | |
12 | |
13 namespace content { | |
14 | |
15 // Provides gamepad data and events for blink. | |
16 class RendererGamepadProvider { | |
17 public: | |
18 // Provides latest snapshot of gamepads. | |
19 virtual void SampleGamepads(blink::WebGamepads& gamepads) = 0; | |
20 // Registers listener for be notified of events. | |
jam
2014/06/19 16:21:10
nit: blank line above
| |
21 virtual void SetGamepadListener(blink::WebGamepadListener* listener) = 0; | |
22 protected: | |
jam
2014/06/19 16:21:10
also above this
| |
23 virtual ~RendererGamepadProvider() {} | |
24 }; | |
25 | |
26 } // namespace content | |
27 | |
28 #endif | |
OLD | NEW |