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

Issue 203483004: events: Introduce PlatformEventDispatcher and PlatformEventSource. (Closed)

Created:
6 years, 9 months ago by sadrul
Modified:
6 years, 9 months ago
Reviewers:
sky
CC:
chromium-reviews
Visibility:
Public.

Description

events: Introduce PlatformEventDispatcher and PlatformEventSource. This patch introduces PlatformEventSource and PlatformEventDispatcher for dispatching events from native system. The event dispatch mechanism in message-pumps will be replaced by this. In brief: * PlatformEventSource is a singleton instance that receives events from the platform. * Any number of PlatformEventDispatcher can be installed on a source for receiving events from the source. The dispatchers can then choose to dispatch the event or not. PlatformEventDispatcher will replace MessagePumpDispatcher. * Any number of PlatformEventObserver can be installed on a source. PlatformEventObserver will replace MessagePumpObserver. The linked-to bug has a link to a more detail design doc. BUG=354062 R=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259417

Patch Set 1 #

Patch Set 2 : glib #

Patch Set 3 : . #

Patch Set 4 : cleanups #

Patch Set 5 : tests #

Total comments: 17

Patch Set 6 : . #

Patch Set 7 : tests #

Patch Set 8 : tot-merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1272 lines, -0 lines) Patch
M ui/events/events.gyp View 1 2 3 4 5 6 7 3 chunks +15 lines, -0 lines 0 comments Download
A ui/events/platform/platform_event_dispatcher.h View 1 2 3 4 5 1 chunk +47 lines, -0 lines 0 comments Download
A ui/events/platform/platform_event_observer.h View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
A ui/events/platform/platform_event_source.h View 1 2 3 4 5 1 chunk +88 lines, -0 lines 0 comments Download
A ui/events/platform/platform_event_source.cc View 1 2 3 4 5 6 1 chunk +135 lines, -0 lines 0 comments Download
A ui/events/platform/platform_event_source_unittest.cc View 1 2 3 4 5 6 1 chunk +609 lines, -0 lines 0 comments Download
A ui/events/platform/platform_event_types.h View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
A ui/events/platform/scoped_event_dispatcher.h View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
A ui/events/platform/scoped_event_dispatcher.cc View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
A ui/events/platform/x11/x11_event_source.h View 1 2 3 1 chunk +65 lines, -0 lines 0 comments Download
A ui/events/platform/x11/x11_event_source.cc View 1 2 3 1 chunk +201 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
sadrul
Hi. Sorry about the large size of the patch (although almost half of it is ...
6 years, 9 months ago (2014-03-24 05:15:11 UTC) #1
sky
https://codereview.chromium.org/203483004/diff/90001/ui/events/platform/platform_event_dispatcher.h File ui/events/platform/platform_event_dispatcher.h (right): https://codereview.chromium.org/203483004/diff/90001/ui/events/platform/platform_event_dispatcher.h#newcode27 ui/events/platform/platform_event_dispatcher.h:27: virtual ~PlatformEventDispatcher() {} protected? https://codereview.chromium.org/203483004/diff/90001/ui/events/platform/platform_event_observer.h File ui/events/platform/platform_event_observer.h (right): https://codereview.chromium.org/203483004/diff/90001/ui/events/platform/platform_event_observer.h#newcode17 ...
6 years, 9 months ago (2014-03-25 15:51:15 UTC) #2
sky
Also, this is intended to replace dispatching a NativeEvent (MessagePumpDispatcher::Dispatch(NativeEvent)). Maybe the names should better ...
6 years, 9 months ago (2014-03-25 15:51:50 UTC) #3
sadrul
On 2014/03/25 15:51:50, sky wrote: > Also, this is intended to replace dispatching a NativeEvent ...
6 years, 9 months ago (2014-03-25 18:33:15 UTC) #4
sky
All sounds good, LGTM
6 years, 9 months ago (2014-03-25 20:15:04 UTC) #5
sadrul
6 years, 9 months ago (2014-03-26 00:29:46 UTC) #6
Message was sent while issue was closed.
Committed patchset #8 manually as r259417 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698