Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Issue 20707002: Implement Device Orientation using shared memory in content/renderer. (Closed)

Created:
7 years, 5 months ago by timvolodine
Modified:
7 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Michael van Ouwerkerk, Miguel Garcia
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Implement Device Orientation using shared memory in content/renderer. This CL features: - extracted code in base class device_sensor_event_pump - implementation of device_motion_event_pump and device_orientation_event_pump - new unit test for device_orientation_event_pump - added device_orientation_event_pump to platform, i.e. can be activated using SetDeviceOrientationListener(). - IPC messages, corresponding filter and hardware buffer implementation. BUG=261165 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215680

Patch Set 1 #

Total comments: 12

Patch Set 2 : fixed comments #

Patch Set 3 : rebased, fixed some headers, added OWNERS #

Patch Set 4 : fixed owners #

Total comments: 4

Patch Set 5 : rebased and fixed comments #

Patch Set 6 : added include <cmath> #

Patch Set 7 : removed in-class static initializer #

Patch Set 8 : removed another in-class static initializer #

Patch Set 9 : added CONTENT_EXPORT to device_sensor_event_pump.h #

Patch Set 10 : excluded orientation pump tests on win bots #

Unified diffs Side-by-side diffs Delta from patch set Stats (+833 lines, -367 lines) Patch
A content/browser/device_orientation/device_motion_message_filter.h View 1 1 chunk +38 lines, -0 lines 0 comments Download
A content/browser/device_orientation/device_motion_message_filter.cc View 1 1 chunk +61 lines, -0 lines 0 comments Download
A content/browser/device_orientation/device_orientation_message_filter.h View 1 1 chunk +37 lines, -0 lines 0 comments Download
A content/browser/device_orientation/device_orientation_message_filter.cc View 1 1 chunk +70 lines, -0 lines 0 comments Download
M content/browser/device_orientation/message_filter.h View 1 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/device_orientation/message_filter.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/device_orientation/orientation.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/device_orientation/orientation_message_filter.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/device_orientation/orientation_message_filter.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
D content/browser/renderer_host/device_motion_browser_message_filter.h View 1 1 chunk +0 lines, -39 lines 0 comments Download
D content/browser/renderer_host/device_motion_browser_message_filter.cc View 1 1 chunk +0 lines, -61 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 3 chunks +4 lines, -2 lines 0 comments Download
M content/common/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/common/content_message_generator.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/device_motion_hardware_buffer.h View 1 1 chunk +1 line, -0 lines 0 comments Download
D content/common/device_motion_messages.h View 1 1 chunk +0 lines, -68 lines 0 comments Download
A content/common/device_orientation/OWNERS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A + content/common/device_orientation/device_motion_messages.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A content/common/device_orientation/device_orientation_hardware_buffer.h View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A content/common/device_orientation/device_orientation_messages.h View 1 2 3 4 1 chunk +54 lines, -0 lines 0 comments Download
M content/common/device_orientation_messages.h View 1 1 chunk +0 lines, -38 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/device_orientation/device_motion_event_pump.h View 2 chunks +9 lines, -34 lines 0 comments Download
M content/renderer/device_orientation/device_motion_event_pump.cc View 1 3 chunks +22 lines, -77 lines 0 comments Download
M content/renderer/device_orientation/device_motion_event_pump_unittest.cc View 3 chunks +10 lines, -31 lines 0 comments Download
A content/renderer/device_orientation/device_orientation_event_pump.h View 1 2 3 4 5 6 7 1 chunk +54 lines, -0 lines 0 comments Download
A content/renderer/device_orientation/device_orientation_event_pump.cc View 1 2 3 4 5 6 7 1 chunk +88 lines, -0 lines 0 comments Download
A content/renderer/device_orientation/device_orientation_event_pump_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +178 lines, -0 lines 0 comments Download
A content/renderer/device_orientation/device_sensor_event_pump.h View 1 2 3 4 5 6 7 8 1 chunk +60 lines, -0 lines 0 comments Download
A content/renderer/device_orientation/device_sensor_event_pump.cc View 1 2 3 4 5 6 1 chunk +84 lines, -0 lines 0 comments Download
M content/renderer/device_orientation_dispatcher.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.h View 1 2 3 4 3 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 4 3 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
timvolodine
Hi Darin, Would you mind having a look at this CL? It is a migration ...
7 years, 5 months ago (2013-07-26 11:01:36 UTC) #1
Michael van Ouwerkerk
https://chromiumcodereview.appspot.com/20707002/diff/1/content/browser/renderer_host/device_orientation_browser_message_filter.cc File content/browser/renderer_host/device_orientation_browser_message_filter.cc (right): https://chromiumcodereview.appspot.com/20707002/diff/1/content/browser/renderer_host/device_orientation_browser_message_filter.cc#newcode16 content/browser/renderer_host/device_orientation_browser_message_filter.cc:16: DeviceOrientationBrowserMessageFilter:: You can shorten this class name to DeviceOrientationMessageFilter ...
7 years, 5 months ago (2013-07-26 15:14:33 UTC) #2
timvolodine
https://chromiumcodereview.appspot.com/20707002/diff/1/content/browser/renderer_host/device_orientation_browser_message_filter.cc File content/browser/renderer_host/device_orientation_browser_message_filter.cc (right): https://chromiumcodereview.appspot.com/20707002/diff/1/content/browser/renderer_host/device_orientation_browser_message_filter.cc#newcode16 content/browser/renderer_host/device_orientation_browser_message_filter.cc:16: DeviceOrientationBrowserMessageFilter:: On 2013/07/26 15:14:33, Michael van Ouwerkerk wrote: > ...
7 years, 4 months ago (2013-07-30 15:14:08 UTC) #3
timvolodine
Hi Darin, Any chance you could have a look at this CL? thanks, Tim
7 years, 4 months ago (2013-07-30 16:19:39 UTC) #4
darin (slow to review)
https://chromiumcodereview.appspot.com/20707002/diff/1/content/browser/renderer_host/device_orientation_browser_message_filter.h File content/browser/renderer_host/device_orientation_browser_message_filter.h (right): https://chromiumcodereview.appspot.com/20707002/diff/1/content/browser/renderer_host/device_orientation_browser_message_filter.h#newcode6 content/browser/renderer_host/device_orientation_browser_message_filter.h:6: #define CONTENT_BROWSER_RENDERER_HOST_DEVICE_ORIENTATION_BROWSER_MESSAGE_FILTER_H_ is there a reason why this file ...
7 years, 4 months ago (2013-07-31 19:27:28 UTC) #5
timvolodine
https://chromiumcodereview.appspot.com/20707002/diff/1/content/browser/renderer_host/device_orientation_browser_message_filter.h File content/browser/renderer_host/device_orientation_browser_message_filter.h (right): https://chromiumcodereview.appspot.com/20707002/diff/1/content/browser/renderer_host/device_orientation_browser_message_filter.h#newcode6 content/browser/renderer_host/device_orientation_browser_message_filter.h:6: #define CONTENT_BROWSER_RENDERER_HOST_DEVICE_ORIENTATION_BROWSER_MESSAGE_FILTER_H_ On 2013/07/31 19:27:28, darin wrote: > is ...
7 years, 4 months ago (2013-08-01 15:31:36 UTC) #6
darin (slow to review)
On 2013/08/01 15:31:36, timvolodine wrote: > https://chromiumcodereview.appspot.com/20707002/diff/1/content/browser/renderer_host/device_orientation_browser_message_filter.h > File content/browser/renderer_host/device_orientation_browser_message_filter.h > (right): > > https://chromiumcodereview.appspot.com/20707002/diff/1/content/browser/renderer_host/device_orientation_browser_message_filter.h#newcode6 ...
7 years, 4 months ago (2013-08-01 15:57:07 UTC) #7
darin (slow to review)
LGTM
7 years, 4 months ago (2013-08-01 16:00:36 UTC) #8
timvolodine
On 2013/08/01 15:57:07, darin wrote: > On 2013/08/01 15:31:36, timvolodine wrote: > > > https://chromiumcodereview.appspot.com/20707002/diff/1/content/browser/renderer_host/device_orientation_browser_message_filter.h ...
7 years, 4 months ago (2013-08-01 16:00:45 UTC) #9
timvolodine
+Chris for IPC security review.
7 years, 4 months ago (2013-08-02 13:51:06 UTC) #10
palmer
LGTM https://chromiumcodereview.appspot.com/20707002/diff/20001/content/browser/device_orientation/message_filter.h File content/browser/device_orientation/message_filter.h (right): https://chromiumcodereview.appspot.com/20707002/diff/20001/content/browser/device_orientation/message_filter.h#newcode5 content/browser/device_orientation/message_filter.h:5: #ifndef CONTENT_BROWSER_DEVICE_ORIENTATION_MESSAGE_FILTER_OLD_H_ But file name has not changed? ...
7 years, 4 months ago (2013-08-02 19:10:37 UTC) #11
timvolodine
https://codereview.chromium.org/20707002/diff/20001/content/browser/device_orientation/message_filter.h File content/browser/device_orientation/message_filter.h (right): https://codereview.chromium.org/20707002/diff/20001/content/browser/device_orientation/message_filter.h#newcode5 content/browser/device_orientation/message_filter.h:5: #ifndef CONTENT_BROWSER_DEVICE_ORIENTATION_MESSAGE_FILTER_OLD_H_ On 2013/08/02 19:10:37, Chromium Palmer wrote: > ...
7 years, 4 months ago (2013-08-05 15:26:47 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timvolodine@chromium.org/20707002/56001
7 years, 4 months ago (2013-08-05 19:56:42 UTC) #13
commit-bot: I haz the power
7 years, 4 months ago (2013-08-05 21:17:20 UTC) #14
Message was sent while issue was closed.
Change committed as 215680

Powered by Google App Engine
This is Rietveld 408576698