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

Issue 10960015: aura: Start converting event-filters into event-handlers. (Closed)

Created:
8 years, 3 months ago by sadrul
Modified:
8 years, 3 months ago
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, ben+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

aura: Start converting event-filters into event-handlers. As a first step, add pre-target and post-target event handlers in aura::Env. The EventFilters added in the CompoundEventFilter will be eventually converted to EventHandlers, and installed on the Env as pre- or post-target handlers. The RootWindow makes sure that the correct event-handlers from the env gets added to the appropriate handlers list. This will let us get rid of the event-dispatching logic in CompoundEventFilter. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=158037

Patch Set 1 : . #

Patch Set 2 : leak #

Total comments: 2

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : tot-merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -50 lines) Patch
M ash/extended_desktop_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ash/shell.h View 1 3 chunks +4 lines, -4 lines 0 comments Download
M ash/shell.cc View 1 2 4 chunks +4 lines, -14 lines 0 comments Download
M ash/wm/system_modal_container_layout_manager.cc View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M ui/aura/env.h View 1 2 5 chunks +8 lines, -7 lines 0 comments Download
M ui/aura/env.cc View 1 2 2 chunks +11 lines, -4 lines 0 comments Download
M ui/aura/root_window.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/root_window.cc View 1 2 5 chunks +23 lines, -7 lines 0 comments Download
M ui/aura/shared/compound_event_filter.h View 1 chunk +2 lines, -1 line 0 comments Download
M ui/aura/shared/compound_event_filter.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ui/aura/shared/compound_event_filter_unittest.cc View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M ui/base/events/event_target.h View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M ui/base/events/event_target.cc View 1 2 2 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
sadrul
8 years, 3 months ago (2012-09-20 19:57:12 UTC) #1
Ben Goodger (Google)
http://codereview.chromium.org/10960015/diff/5002/ui/aura/env.h File ui/aura/env.h (right): http://codereview.chromium.org/10960015/diff/5002/ui/aura/env.h#newcode85 ui/aura/env.h:85: void AddPreTargetEventHandler(ui::EventHandler* handler); qq: could Env be an EventTarget ...
8 years, 3 months ago (2012-09-20 21:29:48 UTC) #2
sadrul
http://codereview.chromium.org/10960015/diff/5002/ui/aura/env.h File ui/aura/env.h (right): http://codereview.chromium.org/10960015/diff/5002/ui/aura/env.h#newcode85 ui/aura/env.h:85: void AddPreTargetEventHandler(ui::EventHandler* handler); On 2012/09/20 21:29:48, Ben Goodger (Google) ...
8 years, 3 months ago (2012-09-20 22:33:30 UTC) #3
sadrul
ping!
8 years, 3 months ago (2012-09-21 17:05:11 UTC) #4
Ben Goodger (Google)
lgtm http://codereview.chromium.org/10960015/diff/9001/ui/aura/root_window.cc File ui/aura/root_window.cc (right): http://codereview.chromium.org/10960015/diff/9001/ui/aura/root_window.cc#newcode815 ui/aura/root_window.cc:815: void RootWindow::ProcessPostTargetList(ui::EventHandlerList* list) { seems like you could ...
8 years, 3 months ago (2012-09-21 18:09:18 UTC) #5
sadrul
8 years, 3 months ago (2012-09-21 19:05:36 UTC) #6
http://codereview.chromium.org/10960015/diff/9001/ui/aura/root_window.cc
File ui/aura/root_window.cc (right):

http://codereview.chromium.org/10960015/diff/9001/ui/aura/root_window.cc#newc...
ui/aura/root_window.cc:815: void
RootWindow::ProcessPostTargetList(ui::EventHandlerList* list) {
On 2012/09/21 18:09:18, Ben Goodger (Google) wrote:
> seems like you could also nix this api now, since this was all it was used
for.

Good point. But I am going to keep this for now since there is a test that uses
this API to make sure the handlers receive events in the correct phase. The test
can probably be made to work without this, though. I will clean up in a follow
up CL.

Powered by Google App Engine
This is Rietveld 408576698