Index: content/renderer/render_thread_impl.h |
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h |
index 192cb8a8077e20edbcbf857b643ed450bd2982bb..815c3246be187348ab8ef08e7687a94aad22a9ae 100644 |
--- a/content/renderer/render_thread_impl.h |
+++ b/content/renderer/render_thread_impl.h |
@@ -34,6 +34,7 @@ struct WorkerProcessMsg_CreateWorker_Params; |
namespace blink { |
class WebGamepads; |
+class WebGamepadListener; |
class WebGraphicsContext3D; |
class WebMediaStreamCenter; |
class WebMediaStreamCenterClient; |
@@ -365,6 +366,9 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread, |
// Retrieve current gamepad data. |
void SampleGamepads(blink::WebGamepads* data); |
+ // Set a listener for gamepad connected/disconnected events |
+ void SetGamepadListener(blink::WebGamepadListener* listener); |
+ |
// Called by a RenderWidget when it is created or destroyed. This |
// allows the process to know when there are no visible widgets. |
void WidgetCreated(); |
@@ -521,7 +525,7 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread, |
scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; |
- scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
+ scoped_refptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
// TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from |
// multiple threads. Current allocation mechanism for IOSurface |