|
Refactors away method implementations in ui::EventTargeter
ui::EventTargeter is now a pure virtual interface with only two methods:
FindTargetForEvent
FindNextBestTarget.
Following methods are removed from ui::EventTargeter and got added (with implementations) to aura::WindowTargeter:
FindTargetForLocatedEvent
SubtreeCanAcceptEvent
EventLocationInsideBounds
SubtreeShouldBeExploredForEvent
Method implementations in aura::WindowTargeter that perform LocatedEvent targeting now take Window* instead of EventTarget*.
Tests moved out of EventProcessorTest into WindowTargeterTest:
+ Bounds
+ TargeterChecksOwningEventTarget
Those tests now require a bit less plumbing since a aura::Window implements coordinates based targeting.
EventProcessorTest tests now use TestEventTarget that provides bubbling behavior optionally and can have an event target changed at runtime with set_target().
BUG= 395388
TEST=EventProcessorTest, WindowTargeterTest
TBR=sky@chromium.org
Committed: https://crrev.com/9c6bcf714a44413a5bf00a4cd346197d854464e6
Cr-Commit-Position: refs/heads/master@{#333993}
Total comments: 4
Total comments: 9
Total comments: 24
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+447 lines, -413 lines) |
Patch |
 |
M |
ash/accelerators/magnifier_key_scroller.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ash/accelerators/magnifier_key_scroller_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ash/accelerators/spoken_feedback_toggler.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ash/display/mouse_cursor_event_filter.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ash/utility/partial_screenshot_controller.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ash/wm/cursor_manager_chromeos.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ash/wm/resize_handle_window_targeter.h
|
View
|
1
2
3
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ash/wm/resize_handle_window_targeter.cc
|
View
|
1
2
3
4
|
3 chunks |
+12 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/apps/app_window_easy_resize_window_targeter.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/apps/app_window_easy_resize_window_targeter.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/aura/overscroll_window_delegate.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/aura/window_targeter.h
|
View
|
1
2
3
4
|
2 chunks |
+42 lines, -8 lines |
0 comments
|
Download
|
 |
M |
ui/aura/window_targeter.cc
|
View
|
1
2
3
4
|
4 chunks |
+90 lines, -52 lines |
0 comments
|
Download
|
 |
M |
ui/aura/window_targeter_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+121 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/events/BUILD.gn
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/events/event_processor_unittest.cc
|
View
|
1
2
3
4
5
|
11 chunks |
+30 lines, -183 lines |
0 comments
|
Download
|
 |
M |
ui/events/event_targeter.h
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -41 lines |
0 comments
|
Download
|
 |
M |
ui/events/event_targeter.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -73 lines |
0 comments
|
Download
|
 |
M |
ui/events/events.gyp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/events/null_event_targeter.h
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/events/null_event_targeter.cc
|
View
|
1
2
3
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/events/test/test_event_target.h
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
A |
ui/events/test/test_event_targeter.h
|
View
|
1
2
3
4
5
|
1 chunk |
+44 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/events/test/test_event_targeter.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+37 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/test/event_generator_delegate_mac.mm
|
View
|
1
2
3
4
|
4 chunks |
+14 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/views/view_targeter.h
|
View
|
1
2
3
|
2 chunks |
+11 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/views/view_targeter.cc
|
View
|
|
1 chunk |
+0 lines, -14 lines |
0 comments
|
Download
|
 |
M |
ui/wm/core/easy_resize_window_targeter.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/wm/core/easy_resize_window_targeter.cc
|
View
|
1
2
3
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/wm/core/masked_window_targeter.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/wm/core/masked_window_targeter.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 92 (44 generated)
|