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

Issue 10332145: aura/ash split: Moves RootWindowEventFilter and InputMethodEventFilter to ui/aura/. (Closed)

Created:
8 years, 7 months ago by Elliot Glaysher
Modified:
8 years, 7 months ago
CC:
chromium-reviews, tfarina, sadrul, dcheng, ben+watch_chromium.org
Visibility:
Public.

Description

aura/ash split: Moves RootWindowEventFilter and InputMethodEventFilter to ui/aura/. All of InputMethodEventFilter and more than half of RootWindowEventFilter were copied verbatim to a DesktopRootWindowEventFilter. Instead of copying the other half for another patch, I'm just moving RWEF and deleting the desktop version. (InputMethodEventFilterUnittest was simple enough to move with the file, but RootWindowEventFilter seems to act more like an integraiton test of a lot of the stuff on Shell.) BUG=125106 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=137175

Patch Set 1 #

Patch Set 2 : Minimize TestEventFilter. #

Total comments: 2

Patch Set 3 : Moved to ui/aura/shared/ #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -849 lines) Patch
M ash/accelerators/accelerator_filter_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/ash.gyp View 3 chunks +0 lines, -5 lines 0 comments Download
M ash/drag_drop/drag_drop_controller_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
D ash/ime/input_method_event_filter.h View 1 chunk +0 lines, -59 lines 0 comments Download
D ash/ime/input_method_event_filter.cc View 1 chunk +0 lines, -91 lines 0 comments Download
D ash/ime/input_method_event_filter_unittest.cc View 1 chunk +0 lines, -80 lines 0 comments Download
M ash/shell.h View 1 2 6 chunks +8 lines, -6 lines 0 comments Download
M ash/shell.cc View 1 2 7 chunks +10 lines, -8 lines 1 comment Download
M ash/wm/default_window_resizer.h View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M ash/wm/default_window_resizer.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/power_button_controller.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
D ash/wm/root_window_event_filter.h View 1 chunk +0 lines, -108 lines 0 comments Download
D ash/wm/root_window_event_filter.cc View 1 chunk +0 lines, -230 lines 0 comments Download
M ash/wm/root_window_event_filter_unittest.cc View 1 2 5 chunks +9 lines, -7 lines 0 comments Download
M ash/wm/window_resizer.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/wm/workspace/multi_window_resize_controller.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer.h View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/aura.gyp View 1 2 4 chunks +6 lines, -3 lines 0 comments Download
D ui/aura/desktop/desktop_root_window_event_filter.h View 1 chunk +0 lines, -63 lines 0 comments Download
D ui/aura/desktop/desktop_root_window_event_filter.cc View 1 chunk +0 lines, -109 lines 0 comments Download
A ui/aura/shared/DEPS View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A + ui/aura/shared/input_method_event_filter.h View 1 2 3 chunks +14 lines, -10 lines 2 comments Download
A + ui/aura/shared/input_method_event_filter.cc View 1 2 3 chunks +12 lines, -13 lines 0 comments Download
A + ui/aura/shared/input_method_event_filter_unittest.cc View 1 2 2 chunks +40 lines, -22 lines 0 comments Download
A + ui/aura/shared/root_window_event_filter.h View 1 2 4 chunks +11 lines, -10 lines 1 comment Download
A + ui/aura/shared/root_window_event_filter.cc View 1 2 3 chunks +12 lines, -7 lines 0 comments Download
M ui/views/widget/desktop_native_widget_helper_aura.h View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_native_widget_helper_aura.cc View 1 2 3 chunks +17 lines, -4 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
Elliot Glaysher
Minimize TestEventFilter.
8 years, 7 months ago (2012-05-14 18:09:52 UTC) #1
Elliot Glaysher
ben: review move and possibly give advice if there's something I should do w/ root_window_event_filter_unittest.cc ...
8 years, 7 months ago (2012-05-14 19:00:18 UTC) #2
Ben Goodger (Google)
https://chromiumcodereview.appspot.com/10332145/diff/4001/ui/aura/ime/input_method_event_filter.h File ui/aura/ime/input_method_event_filter.h (right): https://chromiumcodereview.appspot.com/10332145/diff/4001/ui/aura/ime/input_method_event_filter.h#newcode5 ui/aura/ime/input_method_event_filter.h:5: #ifndef UI_AURA_IME_INPUT_METHOD_EVENT_FILTER_H_ same here, i'd like this to go ...
8 years, 7 months ago (2012-05-14 22:05:21 UTC) #3
Elliot Glaysher
Moved to ui/aura/shared/
8 years, 7 months ago (2012-05-14 22:55:01 UTC) #4
Ben Goodger (Google)
8 years, 7 months ago (2012-05-15 17:35:13 UTC) #5
Cool. Thanks for doing this. Just nits.

LGTM.

https://chromiumcodereview.appspot.com/10332145/diff/8001/ash/shell.cc
File ash/shell.cc (right):

https://chromiumcodereview.appspot.com/10332145/diff/8001/ash/shell.cc#newcod...
ash/shell.cc:519: Shell::TestApi::input_method_event_filter() {
nit indent 4 spaces

https://chromiumcodereview.appspot.com/10332145/diff/8001/ui/aura/shared/inpu...
File ui/aura/shared/input_method_event_filter.h (right):

https://chromiumcodereview.appspot.com/10332145/diff/8001/ui/aura/shared/inpu...
ui/aura/shared/input_method_event_filter.h:31:
InputMethodEventFilter(RootWindow* root_window);
explicit

https://chromiumcodereview.appspot.com/10332145/diff/8001/ui/aura/shared/inpu...
ui/aura/shared/input_method_event_filter.h:55: RootWindow* root_window_;   //
weak ptr
such ptrs are assumed weak unless scoped or otherwise noted.

https://chromiumcodereview.appspot.com/10332145/diff/8001/ui/aura/shared/root...
File ui/aura/shared/root_window_event_filter.h (right):

https://chromiumcodereview.appspot.com/10332145/diff/8001/ui/aura/shared/root...
ui/aura/shared/root_window_event_filter.h:23: // Additional event filters can be
added to RootWIndowEventFilter. Events will
RootWindowEventFilter

https://chromiumcodereview.appspot.com/10332145/diff/8001/ui/views/widget/des...
File ui/views/widget/desktop_native_widget_helper_aura.cc (right):

https://chromiumcodereview.appspot.com/10332145/diff/8001/ui/views/widget/des...
ui/views/widget/desktop_native_widget_helper_aura.cc:30: if
(root_window_event_filter_) {
nit no braces

Powered by Google App Engine
This is Rietveld 408576698