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

Issue 10908127: events: Move EventTarget into Event. (Closed)

Created:
8 years, 3 months ago by sadrul
Modified:
8 years, 3 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, ben+watch_chromium.org, tfarina, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

events: Move EventTarget into Event. More notable changes: * Event::EventTarget is set from EventDispatcher::ProcessEvent (and in RootWindow for touch-events) * Remove the existing aura::WindowDelegate::OnXXXEvent interface, and update the implementations to override the EventHandler interface instead. Return ER_HANDLED when previously returning true (and ER_UNHANDLED for false). * Kept the stub implementation for OnScrollEvent in WindowDelegate (we may end up not needing OnScrollEvent after all). BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=155293

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 4

Patch Set 4 : . #

Total comments: 2

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+404 lines, -1253 lines) Patch
M content/browser/renderer_host/render_widget_host_view_aura.h View 2 chunks +6 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 5 chunks +78 lines, -75 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.h View 2 chunks +6 lines, -5 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 3 chunks +34 lines, -31 lines 0 comments Download
M ui/aura/demo/demo_main.cc View 3 chunks +14 lines, -13 lines 0 comments Download
M ui/aura/event_filter.h View 1 chunk +6 lines, -10 lines 0 comments Download
M ui/aura/event_filter.cc View 2 chunks +10 lines, -14 lines 0 comments Download
M ui/aura/event_filter_unittest.cc View 1 chunk +11 lines, -25 lines 0 comments Download
M ui/aura/gestures/gesture_recognizer_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/aura/root_window.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/root_window_unittest.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M ui/aura/shared/compound_event_filter.h View 2 chunks +7 lines, -13 lines 0 comments Download
M ui/aura/shared/compound_event_filter.cc View 5 chunks +16 lines, -23 lines 0 comments Download
M ui/aura/test/test_event_filter.h View 1 chunk +5 lines, -10 lines 0 comments Download
M ui/aura/test/test_event_filter.cc View 1 chunk +5 lines, -10 lines 0 comments Download
M ui/aura/test/test_window_delegate.h View 4 chunks +9 lines, -8 lines 0 comments Download
M ui/aura/test/test_window_delegate.cc View 6 chunks +34 lines, -34 lines 0 comments Download
M ui/aura/window_delegate.h View 3 chunks +2 lines, -18 lines 0 comments Download
M ui/aura/window_delegate.cc View 1 2 3 1 chunk +1 line, -22 lines 0 comments Download
M ui/aura/window_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
D ui/base/event.cc View 1 chunk +0 lines, -498 lines 0 comments Download
D ui/base/event_unittest.cc View 1 chunk +0 lines, -290 lines 0 comments Download
M ui/base/events/event.h View 1 2 3 4 3 chunks +19 lines, -0 lines 0 comments Download
A + ui/base/events/event.cc View 1 3 chunks +6 lines, -3 lines 0 comments Download
M ui/base/events/event_dispatcher.h View 1 2 3 4 chunks +13 lines, -17 lines 0 comments Download
M ui/base/events/event_handler.h View 1 chunk +5 lines, -10 lines 0 comments Download
M ui/base/events/event_target.h View 1 chunk +5 lines, -10 lines 0 comments Download
M ui/base/events/event_target.cc View 2 chunks +16 lines, -23 lines 0 comments Download
A + ui/base/events/event_unittest.cc View 0 chunks +-1 lines, --1 lines 0 comments Download
M ui/ui.gyp View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/ui_unittests.gypi View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/widget/desktop_native_widget_aura.h View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M ui/views/widget/desktop_native_widget_aura.cc View 1 2 3 3 chunks +20 lines, -17 lines 0 comments Download
M ui/views/widget/native_widget_aura.h View 2 chunks +6 lines, -5 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 3 chunks +47 lines, -45 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
sadrul
8 years, 3 months ago (2012-09-06 19:54:40 UTC) #1
Ben Goodger (Google)
http://codereview.chromium.org/10908127/diff/35/ui/aura/window_delegate.cc File ui/aura/window_delegate.cc (right): http://codereview.chromium.org/10908127/diff/35/ui/aura/window_delegate.cc#newcode9 ui/aura/window_delegate.cc:9: #if 0 que? http://codereview.chromium.org/10908127/diff/35/ui/base/events/event.h File ui/base/events/event.h (right): http://codereview.chromium.org/10908127/diff/35/ui/base/events/event.h#newcode52 ui/base/events/event.h:52: ...
8 years, 3 months ago (2012-09-06 21:39:15 UTC) #2
sadrul
http://codereview.chromium.org/10908127/diff/35/ui/aura/window_delegate.cc File ui/aura/window_delegate.cc (right): http://codereview.chromium.org/10908127/diff/35/ui/aura/window_delegate.cc#newcode9 ui/aura/window_delegate.cc:9: #if 0 On 2012/09/06 21:39:15, Ben Goodger (Google) wrote: ...
8 years, 3 months ago (2012-09-06 21:44:59 UTC) #3
Ben Goodger (Google)
yeah sg. On Thu, Sep 6, 2012 at 2:44 PM, <sadrul@chromium.org> wrote: > > http://codereview.chromium.**org/10908127/diff/35/ui/aura/** ...
8 years, 3 months ago (2012-09-06 22:01:57 UTC) #4
sadrul
On 2012/09/06 22:01:57, Ben Goodger (Google) wrote: > yeah sg. Done.
8 years, 3 months ago (2012-09-06 22:08:33 UTC) #5
Ben Goodger (Google)
lgtm http://codereview.chromium.org/10908127/diff/8003/ui/base/events/event.h File ui/base/events/event.h (right): http://codereview.chromium.org/10908127/diff/8003/ui/base/events/event.h#newcode39 ui/base/events/event.h:39: }; disallow_copy..
8 years, 3 months ago (2012-09-06 22:19:56 UTC) #6
sadrul
8 years, 3 months ago (2012-09-06 23:04:46 UTC) #7
http://codereview.chromium.org/10908127/diff/8003/ui/base/events/event.h
File ui/base/events/event.h (right):

http://codereview.chromium.org/10908127/diff/8003/ui/base/events/event.h#newc...
ui/base/events/event.h:39: };
On 2012/09/06 22:19:57, Ben Goodger (Google) wrote:
> disallow_copy..

Done.

Powered by Google App Engine
This is Rietveld 408576698