From fb12e3a64e9ae18a1f2fbe9817b0ee01cd53f57e Mon Sep 17 00:00:00 2001 From: "mlamouri@chromium.org" Date: Sat, 9 Aug 2014 10:31:55 +0000 Subject: Refactor code listening to platform events in content/renderer/. This is introducing PlatformEventObserver, being used by code observing and requesting platform events like Gamepad, Device Motion, Device Orientation, Device Light and Battery. BUG=400158 Review URL: https://codereview.chromium.org/446603002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288555 0039d316-1c4b-4281-b951-d872f2087c98 --- content/renderer/render_thread_impl.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'content/renderer/render_thread_impl.h') diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h index d5cdab0..421850e 100644 --- a/content/renderer/render_thread_impl.h +++ b/content/renderer/render_thread_impl.h @@ -36,7 +36,6 @@ struct WorkerProcessMsg_CreateWorker_Params; namespace blink { class WebGamepads; -class WebGamepadListener; class WebGraphicsContext3D; class WebMediaStreamCenter; class WebMediaStreamCenterClient; @@ -84,7 +83,6 @@ class DBMessageFilter; class DevToolsAgentFilter; class DomStorageDispatcher; class EmbeddedWorkerDispatcher; -class GamepadSharedMemoryReader; class GpuChannelHost; class IndexedDBDispatcher; class InputEventFilter; @@ -288,10 +286,6 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread, return vc_manager_.get(); } - GamepadSharedMemoryReader* gamepad_shared_memory_reader() const { - return gamepad_shared_memory_reader_.get(); - } - // Get the GPU channel. Returns NULL if the channel is not established or // has been lost. GpuChannelHost* GetGpuChannel(); @@ -389,10 +383,6 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread, // Retrieve current gamepad data. void SampleGamepads(blink::WebGamepads* data); - // Set a listener for gamepad connected/disconnected events. - // A non-null listener must be set first before calling SampleGamepads. - 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(); @@ -563,8 +553,6 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread, scoped_ptr webrtc_identity_service_; - scoped_ptr gamepad_shared_memory_reader_; - // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from // multiple threads. Current allocation mechanism for IOSurface // backed GpuMemoryBuffers prevent this. crbug.com/325045 -- cgit v1.1