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

Issue 417213002: Introduce PlatformEvent to handle Device events, Battery events and Gamepad events. (Closed)

Created:
6 years, 5 months ago by mlamouri (slow - plz ping)
Modified:
6 years, 4 months ago
CC:
blink-reviews, Inactive, dglazkov+blink, jamesr, mvanouwerkerk+watch_chromium.org, timvolodine
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Introduce PlatformEvent to handle Device events, Battery events and Gamepad events. BUG=None Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179596

Patch Set 1 #

Patch Set 2 : fix build #

Patch Set 3 : with backward compatibility #

Total comments: 6

Patch Set 4 : review comments #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -350 lines) Patch
M Source/core/core.gypi View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
D Source/core/frame/DeviceEventControllerBase.h View 1 2 3 4 1 chunk +0 lines, -50 lines 0 comments Download
D Source/core/frame/DeviceEventControllerBase.cpp View 1 chunk +0 lines, -70 lines 0 comments Download
D Source/core/frame/DeviceEventDispatcherBase.h View 1 chunk +0 lines, -37 lines 0 comments Download
D Source/core/frame/DeviceEventDispatcherBase.cpp View 1 chunk +0 lines, -87 lines 0 comments Download
M Source/core/frame/DeviceSingleWindowEventController.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/frame/DeviceSingleWindowEventController.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A + Source/core/frame/PlatformEventController.h View 1 2 3 4 4 chunks +8 lines, -8 lines 0 comments Download
A + Source/core/frame/PlatformEventController.cpp View 4 chunks +8 lines, -8 lines 0 comments Download
A + Source/core/frame/PlatformEventDispatcher.h View 2 chunks +10 lines, -10 lines 0 comments Download
A + Source/core/frame/PlatformEventDispatcher.cpp View 4 chunks +8 lines, -8 lines 0 comments Download
M Source/modules/battery/BatteryDispatcher.h View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/battery/BatteryDispatcher.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/battery/BatteryManager.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/battery/BatteryManager.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/device_light/DeviceLightDispatcher.h View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/device_light/DeviceLightDispatcher.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/device_orientation/DeviceMotionDispatcher.h View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/device_orientation/DeviceMotionDispatcher.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/device_orientation/DeviceOrientationDispatcher.h View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/device_orientation/DeviceOrientationDispatcher.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/gamepad/GamepadDispatcher.h View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/gamepad/GamepadDispatcher.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/gamepad/NavigatorGamepad.h View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/gamepad/NavigatorGamepad.cpp View 1 chunk +1 line, -1 line 0 comments Download
M public/platform/Platform.h View 1 2 3 4 6 chunks +61 lines, -22 lines 0 comments Download
M public/platform/WebBatteryStatusListener.h View 1 chunk +2 lines, -1 line 0 comments Download
M public/platform/WebDeviceLightListener.h View 1 chunk +3 lines, -1 line 0 comments Download
M public/platform/WebDeviceMotionListener.h View 1 chunk +3 lines, -1 line 0 comments Download
M public/platform/WebDeviceOrientationListener.h View 1 chunk +3 lines, -1 line 0 comments Download
M public/platform/WebGamepadListener.h View 1 chunk +3 lines, -1 line 0 comments Download
A + public/platform/WebPlatformEventListener.h View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
A public/platform/WebPlatformEventType.h View 2 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
mlamouri (slow - plz ping)
6 years, 4 months ago (2014-07-29 13:48:55 UTC) #1
abarth-chromium
https://codereview.chromium.org/417213002/diff/40001/public/platform/Platform.h File public/platform/Platform.h (right): https://codereview.chromium.org/417213002/diff/40001/public/platform/Platform.h#newcode604 public/platform/Platform.h:604: virtual void startListening(blink::WebPlatformEventType type, blink::WebPlatformEventListener* listener) Why virtual? It ...
6 years, 4 months ago (2014-07-29 22:24:38 UTC) #2
mlamouri (slow - plz ping)
https://codereview.chromium.org/417213002/diff/40001/public/platform/Platform.h File public/platform/Platform.h (right): https://codereview.chromium.org/417213002/diff/40001/public/platform/Platform.h#newcode604 public/platform/Platform.h:604: virtual void startListening(blink::WebPlatformEventType type, blink::WebPlatformEventListener* listener) On 2014/07/29 22:24:38, ...
6 years, 4 months ago (2014-07-29 22:27:54 UTC) #3
abarth-chromium
On 2014/07/29 at 22:27:54, mlamouri wrote: > The only intent is to not break Chromium ...
6 years, 4 months ago (2014-07-30 05:55:28 UTC) #4
abarth-chromium
https://codereview.chromium.org/417213002/diff/40001/public/platform/Platform.h File public/platform/Platform.h (right): https://codereview.chromium.org/417213002/diff/40001/public/platform/Platform.h#newcode648 public/platform/Platform.h:648: // Deprecated: remove when content/ is updated. I see, ...
6 years, 4 months ago (2014-07-30 05:56:23 UTC) #5
abarth-chromium
Ok, LGTM
6 years, 4 months ago (2014-07-30 05:58:43 UTC) #6
timvolodine
lgtm, looking forward to further cleanups :) https://codereview.chromium.org/417213002/diff/40001/public/platform/Platform.h File public/platform/Platform.h (right): https://codereview.chromium.org/417213002/diff/40001/public/platform/Platform.h#newcode602 public/platform/Platform.h:602: // Request ...
6 years, 4 months ago (2014-07-30 12:56:41 UTC) #7
mlamouri (slow - plz ping)
https://codereview.chromium.org/417213002/diff/40001/public/platform/Platform.h File public/platform/Platform.h (right): https://codereview.chromium.org/417213002/diff/40001/public/platform/Platform.h#newcode602 public/platform/Platform.h:602: // Request the platform to start listening to the ...
6 years, 4 months ago (2014-08-01 10:21:05 UTC) #8
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 4 months ago (2014-08-05 20:13:31 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/417213002/80001
6 years, 4 months ago (2014-08-05 20:16:03 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-06 00:09:42 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-06 00:48:41 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/21175)
6 years, 4 months ago (2014-08-06 00:48:42 UTC) #13
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 4 months ago (2014-08-06 07:53:19 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/417213002/80001
6 years, 4 months ago (2014-08-06 07:55:29 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-06 08:57:05 UTC) #16
commit-bot: I haz the power
6 years, 4 months ago (2014-08-06 10:04:27 UTC) #17
Message was sent while issue was closed.
Change committed as 179596

Powered by Google App Engine
This is Rietveld 408576698