Implement the content/renderer and content/browser part of the Device Motion API.
commit876526aa519026f4328af16f2fb3a778bcb0fb16
authortimvolodine@chromium.org <timvolodine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 11 Jul 2013 08:00:57 +0000 (11 08:00 +0000)
committertimvolodine@chromium.org <timvolodine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 11 Jul 2013 08:00:57 +0000 (11 08:00 +0000)
tree09176ae22e1f23c4e2790360cdfe47b3081f6198
parentede840c16352588eb01cd75761d614b20cfe92fc
Implement the content/renderer and content/browser part of the Device Motion API.
This patch has a partial implementation of provider and does not include any device motion fetchers.

The patch features:
- chromium-side event pump
- shared memory reader and buffer representation
- IPC messages and filters for shared memory communication
- service class to keep track of listening renderers

BUG=135804

Review URL: https://chromiumcodereview.appspot.com/14678012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211043 0039d316-1c4b-4281-b951-d872f2087c98
26 files changed:
content/browser/browser_main_loop.cc
content/browser/device_orientation/device_motion_provider.cc [new file with mode: 0644]
content/browser/device_orientation/device_motion_provider.h [new file with mode: 0644]
content/browser/device_orientation/device_motion_service.cc [new file with mode: 0644]
content/browser/device_orientation/device_motion_service.h [new file with mode: 0644]
content/browser/renderer_host/device_motion_browser_message_filter.cc [new file with mode: 0644]
content/browser/renderer_host/device_motion_browser_message_filter.h [new file with mode: 0644]
content/browser/renderer_host/render_process_host_impl.cc
content/common/device_motion_hardware_buffer.h [new file with mode: 0644]
content/common/device_motion_messages.h
content/common/gamepad_hardware_buffer.h
content/common/one_writer_seqlock.cc [moved from content/common/gamepad_seqlock.cc with 77% similarity]
content/common/one_writer_seqlock.h [moved from content/common/gamepad_seqlock.h with 70% similarity]
content/common/shared_memory_seqlock_buffer.h [new file with mode: 0644]
content/content_browser.gypi
content/content_common.gypi
content/content_renderer.gypi
content/content_tests.gypi
content/renderer/device_orientation/OWNERS [new file with mode: 0644]
content/renderer/device_orientation/device_motion_event_pump.cc [new file with mode: 0644]
content/renderer/device_orientation/device_motion_event_pump.h [new file with mode: 0644]
content/renderer/device_orientation/device_motion_event_pump_unittest.cc [new file with mode: 0644]
content/renderer/renderer_webkitplatformsupport_impl.cc
content/renderer/renderer_webkitplatformsupport_impl.h
content/renderer/shared_memory_seqlock_reader.cc [new file with mode: 0644]
content/renderer/shared_memory_seqlock_reader.h [new file with mode: 0644]