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

Issue 10916210: events: Inlcude the event-phase and event-result in Event. (Closed)

Created:
8 years, 3 months ago by sadrul
Modified:
8 years, 3 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

events: Inlcude the event-phase and event-result in Event. An event-handler can be installed on a target as both a pre-target and a post-target handler. In such cases, it will be necessary to know the phase of the event-dispatch. So add EventPhase. Also, from a handler, it may be necessary to know whether the event has been handled by any other handlers before this. So include EventResult in the event too. BUG=none. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=155825 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=155957

Patch Set 1 #

Patch Set 2 : test #

Total comments: 10

Patch Set 3 : . #

Patch Set 4 : clang-fix #

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -33 lines) Patch
M ui/base/events/event.h View 3 chunks +9 lines, -0 lines 0 comments Download
M ui/base/events/event.cc View 1 2 3 chunks +9 lines, -3 lines 0 comments Download
M ui/base/events/event_constants.h View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M ui/base/events/event_dispatcher.h View 1 2 3 4 3 chunks +17 lines, -2 lines 0 comments Download
M ui/base/events/event_dispatcher.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M ui/base/events/event_dispatcher_unittest.cc View 1 2 6 chunks +51 lines, -28 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
sadrul
8 years, 3 months ago (2012-09-10 17:39:24 UTC) #1
Ben Goodger (Google)
http://codereview.chromium.org/10916210/diff/7001/ui/base/events/event.h File ui/base/events/event.h (right): http://codereview.chromium.org/10916210/diff/7001/ui/base/events/event.h#newcode30 ui/base/events/event.h:30: explicit DispatcherApi(Event* event) : event_(event) {} should this be ...
8 years, 3 months ago (2012-09-10 18:07:14 UTC) #2
sadrul
http://codereview.chromium.org/10916210/diff/7001/ui/base/events/event.h File ui/base/events/event.h (right): http://codereview.chromium.org/10916210/diff/7001/ui/base/events/event.h#newcode30 ui/base/events/event.h:30: explicit DispatcherApi(Event* event) : event_(event) {} On 2012/09/10 18:07:14, ...
8 years, 3 months ago (2012-09-10 18:35:24 UTC) #3
Ben Goodger (Google)
8 years, 3 months ago (2012-09-10 19:23:30 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698