Index: content/public/renderer/renderer_gamepad_provider.h |
diff --git a/content/public/renderer/renderer_gamepad_provider.h b/content/public/renderer/renderer_gamepad_provider.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2dca42081f2c6e5e8a3111f9971415dff29f7715 |
--- /dev/null |
+++ b/content/public/renderer/renderer_gamepad_provider.h |
@@ -0,0 +1,28 @@ |
+// Copyright (c) 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_GAMEPAD_RENDERER_PROVIDER_H_ |
+#define CONTENT_GAMEPAD_RENDERER_PROVIDER_H_ |
+ |
+namespace blink { |
+class WebGamepadListener; |
+class WebGamepads; |
+} |
+ |
+namespace content { |
+ |
+// Provides gamepad data and events for blink. |
+class RendererGamepadProvider { |
+ public: |
+ // Provides latest snapshot of gamepads. |
+ virtual void SampleGamepads(blink::WebGamepads& gamepads) = 0; |
+ // Registers listener for be notified of events. |
jam
2014/06/19 16:21:10
nit: blank line above
|
+ virtual void SetGamepadListener(blink::WebGamepadListener* listener) = 0; |
+ protected: |
jam
2014/06/19 16:21:10
also above this
|
+ virtual ~RendererGamepadProvider() {} |
+}; |
+ |
+} // namespace content |
+ |
+#endif |