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

Issue 446603002: Refactor code listening to platform events in content/renderer/. (Closed)

Created:
6 years, 4 months ago by mlamouri (slow - plz ping)
Modified:
6 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, jochen+watch_chromium.org, riju_, timvolodine, scottmg1
Base URL:
https://chromium.googlesource.com/chromium/src.git@webkitplatform_impl_start_stop
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288555 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290563

Patch Set 1 #

Patch Set 2 : cleanup device event pump ctors #

Patch Set 3 : cleaner #

Total comments: 13

Patch Set 4 : apply review comments #

Total comments: 18

Patch Set 5 : review comments #

Patch Set 6 : #

Patch Set 7 : fix unittests #

Patch Set 8 : fix exports #

Patch Set 9 : moar export fixes #

Patch Set 10 : pointer owning fix #

Patch Set 11 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+590 lines, -611 lines) Patch
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 4 chunks +3 lines, -3 lines 0 comments Download
A content/public/renderer/platform_event_observer.h View 1 2 3 4 1 chunk +125 lines, -0 lines 0 comments Download
M content/public/renderer/renderer_gamepad_provider.h View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -7 lines 0 comments Download
M content/public/test/layouttest_support.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/battery_status/battery_status_dispatcher.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -11 lines 0 comments Download
M content/renderer/battery_status/battery_status_dispatcher.cc View 1 2 3 3 chunks +11 lines, -18 lines 0 comments Download
M content/renderer/battery_status/battery_status_dispatcher_unittest.cc View 1 2 3 4 5 6 4 chunks +13 lines, -52 lines 0 comments Download
D content/renderer/battery_status/fake_battery_status_dispatcher.h View 1 2 1 chunk +0 lines, -32 lines 0 comments Download
D content/renderer/battery_status/fake_battery_status_dispatcher.cc View 1 2 1 chunk +0 lines, -28 lines 0 comments Download
M content/renderer/device_sensors/device_light_event_pump.h View 1 2 1 chunk +9 lines, -7 lines 0 comments Download
M content/renderer/device_sensors/device_light_event_pump.cc View 1 2 3 2 chunks +17 lines, -23 lines 0 comments Download
M content/renderer/device_sensors/device_light_event_pump_unittest.cc View 1 2 3 4 5 6 4 chunks +10 lines, -5 lines 0 comments Download
M content/renderer/device_sensors/device_motion_event_pump.h View 1 2 1 chunk +11 lines, -11 lines 0 comments Download
M content/renderer/device_sensors/device_motion_event_pump.cc View 1 2 3 3 chunks +14 lines, -18 lines 0 comments Download
M content/renderer/device_sensors/device_motion_event_pump_unittest.cc View 1 3 chunks +6 lines, -5 lines 0 comments Download
M content/renderer/device_sensors/device_orientation_event_pump.h View 1 2 1 chunk +11 lines, -11 lines 0 comments Download
M content/renderer/device_sensors/device_orientation_event_pump.cc View 1 2 3 3 chunks +15 lines, -18 lines 0 comments Download
M content/renderer/device_sensors/device_orientation_event_pump_unittest.cc View 1 2 3 4 5 6 6 chunks +13 lines, -6 lines 0 comments Download
M content/renderer/device_sensors/device_sensor_event_pump.h View 1 2 3 4 5 6 7 2 chunks +55 lines, -17 lines 0 comments Download
D content/renderer/device_sensors/device_sensor_event_pump.cc View 1 chunk +0 lines, -87 lines 0 comments Download
M content/renderer/gamepad_shared_memory_reader.h View 1 2 1 chunk +10 lines, -16 lines 0 comments Download
M content/renderer/gamepad_shared_memory_reader.cc View 1 2 3 4 chunks +20 lines, -42 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 6 7 8 9 5 chunks +0 lines, -12 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +1 line, -10 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +18 lines, -13 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 4 5 6 7 8 9 7 chunks +99 lines, -125 lines 0 comments Download
A content/renderer/screen_orientation/screen_orientation_observer.h View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
A content/renderer/screen_orientation/screen_orientation_observer.cc View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
M content/shell/renderer/test_runner/WebTestDelegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/shell/renderer/test_runner/gamepad_controller.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -6 lines 0 comments Download
M content/shell/renderer/test_runner/gamepad_controller.cc View 1 2 3 4 5 6 7 8 9 4 chunks +22 lines, -13 lines 0 comments Download
M content/shell/renderer/test_runner/test_interfaces.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M content/shell/renderer/test_runner/test_interfaces.cc View 1 2 3 4 5 6 7 8 9 5 chunks +6 lines, -5 lines 0 comments Download
M content/shell/renderer/webkit_test_runner.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/shell/renderer/webkit_test_runner.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M content/test/layouttest_support.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
mlamouri (slow - plz ping)
Jochen and Tim, could you have a look at this CL? It is not entirely ...
6 years, 4 months ago (2014-08-05 15:56:03 UTC) #1
mlamouri (slow - plz ping)
+scottmg
6 years, 4 months ago (2014-08-05 20:02:41 UTC) #2
scottmg
I don't think I'm an owner for anything here, but gamepad parts generally lg. +bajones ...
6 years, 4 months ago (2014-08-05 21:09:19 UTC) #3
bajones
Gamepad changes LGTM with scottmg@'s comments addressed.
6 years, 4 months ago (2014-08-05 21:19:56 UTC) #4
mlamouri (slow - plz ping)
Thanks for the reviews. Tim, could you have a look at the Device Event changes ...
6 years, 4 months ago (2014-08-05 21:32:37 UTC) #5
scottmg
https://codereview.chromium.org/446603002/diff/40001/content/public/renderer/platform_event_observer.h File content/public/renderer/platform_event_observer.h (right): https://codereview.chromium.org/446603002/diff/40001/content/public/renderer/platform_event_observer.h#newcode62 content/public/renderer/platform_event_observer.h:62: ~PlatformEventObserver() { On 2014/08/05 21:32:36, Mounir Lamouri wrote: > ...
6 years, 4 months ago (2014-08-05 21:33:31 UTC) #6
mlamouri (slow - plz ping)
+jam@ given that jochen@ is marked as "slow - soon OOO"
6 years, 4 months ago (2014-08-07 09:27:18 UTC) #7
mlamouri (slow - plz ping)
jam@ is busy. Moving this to avi@.
6 years, 4 months ago (2014-08-07 19:22:52 UTC) #8
Avi (use Gerrit)
https://codereview.chromium.org/446603002/diff/60001/content/public/renderer/platform_event_observer.h File content/public/renderer/platform_event_observer.h (right): https://codereview.chromium.org/446603002/diff/60001/content/public/renderer/platform_event_observer.h#newcode42 content/public/renderer/platform_event_observer.h:42: // Creates a PlatformEventObserver that doesn't listen to response ...
6 years, 4 months ago (2014-08-07 19:56:11 UTC) #9
mlamouri (slow - plz ping)
Avi, I've applied your comments and also rebased this on ToT, which means that it ...
6 years, 4 months ago (2014-08-08 18:08:36 UTC) #10
Avi (use Gerrit)
LGTM
6 years, 4 months ago (2014-08-08 18:13:15 UTC) #11
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 4 months ago (2014-08-08 21:37:25 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/446603002/160001
6 years, 4 months ago (2014-08-08 21:39:02 UTC) #13
mlamouri (slow - plz ping)
The CQ bit was unchecked by mlamouri@chromium.org
6 years, 4 months ago (2014-08-09 07:45:32 UTC) #14
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 4 months ago (2014-08-09 07:45:38 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/446603002/160001
6 years, 4 months ago (2014-08-09 07:47:17 UTC) #16
commit-bot: I haz the power
Change committed as 288555
6 years, 4 months ago (2014-08-09 10:32:25 UTC) #17
Michael van Ouwerkerk
Reverted here: https://codereview.chromium.org/470683002/
6 years, 4 months ago (2014-08-13 18:57:53 UTC) #18
mlamouri (slow - plz ping)
Michael, could you have a look at the changes I just made. I wasn't able ...
6 years, 4 months ago (2014-08-18 15:16:56 UTC) #19
mlamouri (slow - plz ping)
Michael can't review this and bajones@ didn't answer. I was able to reproduce the ASAN ...
6 years, 4 months ago (2014-08-19 09:33:10 UTC) #20
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 4 months ago (2014-08-19 09:33:16 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/446603002/180001
6 years, 4 months ago (2014-08-19 09:34:29 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-19 09:38:33 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-19 09:41:11 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/4744)
6 years, 4 months ago (2014-08-19 09:41:12 UTC) #25
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 4 months ago (2014-08-19 12:46:17 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/446603002/200001
6 years, 4 months ago (2014-08-19 12:46:48 UTC) #27
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel_swarming on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-19 14:07:05 UTC) #28
commit-bot: I haz the power
6 years, 4 months ago (2014-08-19 15:51:37 UTC) #29
Message was sent while issue was closed.
Committed patchset #11 (200001) as 290563

Powered by Google App Engine
This is Rietveld 408576698