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

Issue 165463002: event-rewrite: Clean up how events are rewritten. (Closed)

Created:
6 years, 10 months ago by sadrul
Modified:
6 years, 10 months ago
CC:
chromium-reviews, dtseng+watch_chromium.org, nkostylev+watch_chromium.org, plundblad+watch_chromium.org, aboxhall+watch_chromium.org, yuzo+watch_chromium.org, ben+ash_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, dmazzoni+watch_chromium.org
Visibility:
Public.

Description

event-rewrite: Clean up how events are rewritten. Notable changes: * Make the EventRewriter a MessagePumpObserver. This is necessary to make sure that the event-rewrite happens before the event is dispatched. * Move the EventRewriter in chrome/browser/chromeos (and in chromeos namespace), since it does nothing on other platforms. * Get rid of the event-rewrite code from ash, since it just adds an extra layer of abstraction for no added value. BUG=343639 R=derat@chromium.org, sky@chromium.org, stevenjb@chromium.org Previously landed in r251382, but reverted in r251433 because it broke debug builds. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251607

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 8

Patch Set 4 : . #

Patch Set 5 : fix-debug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+332 lines, -4438 lines) Patch
M ash/accelerators/accelerator_dispatcher.cc View 1 2 chunks +0 lines, -10 lines 0 comments Download
M ash/ash.gyp View 1 2 3 4 2 chunks +0 lines, -3 lines 0 comments Download
D ash/event_rewriter_delegate.h View 1 chunk +0 lines, -34 lines 0 comments Download
M ash/shell.h View 1 2 3 4 2 chunks +0 lines, -6 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 3 chunks +0 lines, -4 lines 0 comments Download
D ash/wm/event_rewriter_event_filter.h View 1 chunk +0 lines, -41 lines 0 comments Download
D ash/wm/event_rewriter_event_filter.cc View 1 chunk +0 lines, -56 lines 0 comments Download
M chrome/browser/chromeos/accessibility/accessibility_manager.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 3 chunks +4 lines, -0 lines 0 comments Download
A + chrome/browser/chromeos/event_rewriter.h View 1 10 chunks +38 lines, -66 lines 0 comments Download
A + chrome/browser/chromeos/event_rewriter.cc View 1 2 3 4 20 chunks +217 lines, -374 lines 0 comments Download
A + chrome/browser/chromeos/event_rewriter_unittest.cc View 1 2 3 17 chunks +48 lines, -45 lines 0 comments Download
M chrome/browser/chromeos/keyboard_driven_event_rewriter.h View 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/keyboard_driven_event_rewriter.cc View 1 2 3 4 2 chunks +15 lines, -16 lines 0 comments Download
M chrome/browser/chromeos/keyboard_driven_event_rewriter_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/ash_init.cc View 2 chunks +0 lines, -4 lines 0 comments Download
D chrome/browser/ui/ash/event_rewriter.h View 1 chunk +0 lines, -242 lines 0 comments Download
D chrome/browser/ui/ash/event_rewriter.cc View 1 chunk +0 lines, -1064 lines 0 comments Download
D chrome/browser/ui/ash/event_rewriter_unittest.cc View 1 chunk +0 lines, -2462 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
sadrul
I haven't had a chance to test it on a device yet, but the related ...
6 years, 10 months ago (2014-02-14 02:11:22 UTC) #1
Daniel Erat
nice cleanup! adding steven in case he has opinions about where this code should be. ...
6 years, 10 months ago (2014-02-14 15:56:29 UTC) #2
sky
LGTM
6 years, 10 months ago (2014-02-14 16:51:03 UTC) #3
sadrul
Addressed the comments, and tested on device. Seems to be working correctly. I moved the ...
6 years, 10 months ago (2014-02-14 17:23:14 UTC) #4
Daniel Erat
lgtm
6 years, 10 months ago (2014-02-14 17:33:23 UTC) #5
oshima
On 2014/02/14 17:23:14, sadrul wrote: > Addressed the comments, and tested on device. Seems to ...
6 years, 10 months ago (2014-02-14 17:36:07 UTC) #6
sadrul
On 2014/02/14 17:36:07, oshima wrote: > On 2014/02/14 17:23:14, sadrul wrote: > > Addressed the ...
6 years, 10 months ago (2014-02-14 17:44:41 UTC) #7
stevenjb
Does it make sense to create a c/b/chromeos/events subdirectory for event_rewriter*, keyboard_driven_event_rewriter*, and maybe ximput_hierarch_changed_event_listener*?
6 years, 10 months ago (2014-02-14 17:47:28 UTC) #8
sadrul
On 2014/02/14 17:47:28, stevenjb wrote: > Does it make sense to create a c/b/chromeos/events subdirectory ...
6 years, 10 months ago (2014-02-14 17:48:51 UTC) #9
stevenjb
Sounds good, lgtm
6 years, 10 months ago (2014-02-14 17:52:17 UTC) #10
sadrul
Committed patchset #4 manually as r251382 (presubmit successful).
6 years, 10 months ago (2014-02-14 19:10:28 UTC) #11
brianderson
This patch broke the linux chrome os build. After lauching, the following error shows up ...
6 years, 10 months ago (2014-02-14 21:58:12 UTC) #12
oshima
On 2014/02/14 21:58:12, Brian Anderson wrote: > This patch broke the linux chrome os build. ...
6 years, 10 months ago (2014-02-14 22:31:10 UTC) #13
sadrul
6 years, 10 months ago (2014-02-16 04:22:07 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 manually as r251607 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698