diff options
author | mlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-09 10:31:55 +0000 |
---|---|---|
committer | mlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-09 10:31:55 +0000 |
commit | fb12e3a64e9ae18a1f2fbe9817b0ee01cd53f57e (patch) | |
tree | b330238afd726a3c6250312e9c2ea88e7a354075 /content/renderer/render_thread_impl.h | |
parent | f20fa2317a58644a518c6e57b29309a3b7bfca57 (diff) | |
download | chromium_src-fb12e3a64e9ae18a1f2fbe9817b0ee01cd53f57e.zip chromium_src-fb12e3a64e9ae18a1f2fbe9817b0ee01cd53f57e.tar.gz chromium_src-fb12e3a64e9ae18a1f2fbe9817b0ee01cd53f57e.tar.bz2 |
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
Diffstat (limited to 'content/renderer/render_thread_impl.h')
-rw-r--r-- | content/renderer/render_thread_impl.h | 12 |
1 files changed, 0 insertions, 12 deletions
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<WebRTCIdentityService> webrtc_identity_service_; - scoped_ptr<GamepadSharedMemoryReader> 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 |