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

Issue 2667073002: mash: changes can_accept_events to an enum (Closed)

Created:
3 years, 10 months ago by sky
Modified:
3 years, 10 months ago
Reviewers:
Tom Sepez, sadrul
CC:
chromium-reviews, rjkroege, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tfarina, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, kalyank, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: changes can_accept_events to an enum And renames it to EventTargetingPolicy. Additionally this makes checking the non-client area have precedence of children. Without this if a child filled the bounds of the parent it would be the hit target when we want the window with the non-client area to be the target. BUG=548435 TEST=covered by test. R=sadrul@chromium.org, tsepez@chromium.org Review-Url: https://codereview.chromium.org/2667073002 Cr-Commit-Position: refs/heads/master@{#447636} Committed: https://chromium.googlesource.com/chromium/src/+/f9646dc93e6b087a251688952dd8ccc6ae856adc

Patch Set 1 #

Total comments: 5

Patch Set 2 : merge #

Patch Set 3 : feedback #

Patch Set 4 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -119 lines) Patch
M ash/root_window_controller.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M services/ui/public/interfaces/window_tree.mojom View 1 chunk +2 lines, -3 lines 0 comments Download
M services/ui/public/interfaces/window_tree_constants.mojom View 1 chunk +15 lines, -0 lines 0 comments Download
M services/ui/ws/access_policy.h View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/default_access_policy.h View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/default_access_policy.cc View 1 chunk +2 lines, -1 line 0 comments Download
M services/ui/ws/display.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/ws/event_dispatcher_unittest.cc View 1 2 6 chunks +8 lines, -7 lines 0 comments Download
M services/ui/ws/server_window.h View 2 chunks +8 lines, -3 lines 0 comments Download
M services/ui/ws/server_window.cc View 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/ws/server_window_compositor_frame_sink_manager_test_api.h View 2 chunks +0 lines, -6 lines 0 comments Download
M services/ui/ws/server_window_compositor_frame_sink_manager_test_api.cc View 1 chunk +0 lines, -12 lines 0 comments Download
M services/ui/ws/test_utils.h View 1 chunk +3 lines, -2 lines 0 comments Download
M services/ui/ws/test_utils.cc View 2 chunks +2 lines, -1 line 0 comments Download
M services/ui/ws/window_finder.cc View 3 chunks +37 lines, -41 lines 0 comments Download
M services/ui/ws/window_finder_unittest.cc View 7 chunks +33 lines, -11 lines 0 comments Download
M services/ui/ws/window_manager_access_policy.h View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/window_manager_access_policy.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/window_manager_display_root.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/ws/window_tree.h View 1 chunk +2 lines, -2 lines 0 comments Download
M services/ui/ws/window_tree.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M services/ui/ws/window_tree_unittest.cc View 5 chunks +13 lines, -8 lines 0 comments Download
M ui/aura/mus/window_port_mus.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ui/aura/mus/window_port_mus.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M ui/aura/mus/window_tree_client.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M ui/aura/test/mus/test_window_tree.h View 1 chunk +2 lines, -1 line 0 comments Download
M ui/aura/test/mus/test_window_tree.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
sky
3 years, 10 months ago (2017-02-01 05:08:52 UTC) #1
sky
tsepez: mojom sadrul: the rest
3 years, 10 months ago (2017-02-01 05:09:06 UTC) #3
Tom Sepez
lgtm
3 years, 10 months ago (2017-02-01 16:25:11 UTC) #7
sadrul
https://codereview.chromium.org/2667073002/diff/1/services/ui/ws/event_dispatcher_unittest.cc File services/ui/ws/event_dispatcher_unittest.cc (right): https://codereview.chromium.org/2667073002/diff/1/services/ui/ws/event_dispatcher_unittest.cc#newcode326 services/ui/ws/event_dispatcher_unittest.cc:326: mojom::EventTargetingPolicy::TARGET_AND_DESCENDANTS); Probably not needed since the default? https://codereview.chromium.org/2667073002/diff/1/services/ui/ws/window_finder.cc File ...
3 years, 10 months ago (2017-02-01 20:42:00 UTC) #8
sky
https://codereview.chromium.org/2667073002/diff/1/services/ui/ws/event_dispatcher_unittest.cc File services/ui/ws/event_dispatcher_unittest.cc (right): https://codereview.chromium.org/2667073002/diff/1/services/ui/ws/event_dispatcher_unittest.cc#newcode326 services/ui/ws/event_dispatcher_unittest.cc:326: mojom::EventTargetingPolicy::TARGET_AND_DESCENDANTS); On 2017/02/01 20:42:00, sadrul wrote: > Probably not ...
3 years, 10 months ago (2017-02-01 21:13:52 UTC) #9
sadrul
lgtm https://codereview.chromium.org/2667073002/diff/1/services/ui/ws/window_finder.cc File services/ui/ws/window_finder.cc (right): https://codereview.chromium.org/2667073002/diff/1/services/ui/ws/window_finder.cc#newcode52 services/ui/ws/window_finder.cc:52: return false; On 2017/02/01 21:13:50, sky wrote: > ...
3 years, 10 months ago (2017-02-01 21:28:29 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2667073002/60001
3 years, 10 months ago (2017-02-01 22:09:47 UTC) #13
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 23:13:10 UTC) #16
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/f9646dc93e6b087a251688952dd8...

Powered by Google App Engine
This is Rietveld 408576698