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

Issue 2125883003: Adds ability for pre-target accelerators to not consume events (Closed)

Created:
4 years, 5 months ago by sky
Modified:
4 years, 5 months ago
Reviewers:
sadrul, dcheng
CC:
chromium-reviews, rjkroege, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tdresser+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, kalyank, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds ability for pre-target accelerators to not consume events Prior to this change if you registered an accelerator for a key event then only the accelerator got the event. After this change the tree that registered the accelerator (wm) need not consume the event. If the wm doesn't consume the event it'll be processed normally. BUG=612331 TEST=covered by tests R=sadrul@chromium.org, dcheng@chromium.org Committed: https://crrev.com/76d46665b53e76c0d8c2e6a642ae686ef2b44048 Cr-Commit-Position: refs/heads/master@{#404450}

Patch Set 1 #

Total comments: 4

Patch Set 2 : merge #

Patch Set 3 : comments #

Patch Set 4 : comments #

Total comments: 6

Patch Set 5 : comments #

Total comments: 12

Patch Set 6 : feedback #

Patch Set 7 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+503 lines, -136 lines) Patch
M ash/accelerators/accelerator_delegate.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/mus/window_manager.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M ash/mus/window_manager.cc View 1 2 chunks +14 lines, -12 lines 0 comments Download
M services/ui/demo/mus_demo.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/demo/mus_demo.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M services/ui/public/cpp/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/public/cpp/lib/window_tree_client.cc View 1 1 chunk +6 lines, -2 lines 0 comments Download
M services/ui/public/cpp/tests/window_server_test_base.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M services/ui/public/cpp/tests/window_server_test_base.cc View 1 2 3 4 5 6 2 chunks +7 lines, -5 lines 0 comments Download
M services/ui/public/cpp/window_manager_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
A services/ui/public/cpp/window_manager_delegate.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M services/ui/public/cpp/window_tree_client.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M services/ui/public/interfaces/event_matcher.mojom View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/public/interfaces/window_manager.mojom View 1 2 3 chunks +10 lines, -2 lines 0 comments Download
M services/ui/public/interfaces/window_tree.mojom View 1 2 3 4 2 chunks +15 lines, -0 lines 0 comments Download
M services/ui/test_wm/test_wm.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M services/ui/ws/event_dispatcher.h View 1 2 3 4 5 5 chunks +22 lines, -5 lines 0 comments Download
M services/ui/ws/event_dispatcher.cc View 1 2 3 4 5 4 chunks +26 lines, -8 lines 0 comments Download
M services/ui/ws/event_dispatcher_delegate.h View 1 chunk +8 lines, -1 line 0 comments Download
M services/ui/ws/event_dispatcher_unittest.cc View 48 chunks +156 lines, -56 lines 0 comments Download
M services/ui/ws/test_utils.h View 1 2 3 4 5 6 3 chunks +11 lines, -1 line 0 comments Download
M services/ui/ws/test_utils.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M services/ui/ws/window_manager_client_unittest.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/ws/window_manager_state.h View 4 chunks +25 lines, -1 line 0 comments Download
M services/ui/ws/window_manager_state.cc View 6 chunks +65 lines, -17 lines 0 comments Download
M services/ui/ws/window_manager_state_unittest.cc View 3 chunks +67 lines, -0 lines 0 comments Download
M services/ui/ws/window_tree.h View 1 3 chunks +11 lines, -1 line 0 comments Download
M services/ui/ws/window_tree.cc View 1 2 3 4 5 6 4 chunks +27 lines, -5 lines 0 comments Download
M services/ui/ws/window_tree_client_unittest.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
A + ui/events/mojo/OWNERS View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M ui/events/mojo/event_constants.mojom View 1 2 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
sky
4 years, 5 months ago (2016-07-06 23:45:45 UTC) #1
dcheng
https://codereview.chromium.org/2125883003/diff/1/services/ui/ws/window_tree.cc File services/ui/ws/window_tree.cc (right): https://codereview.chromium.org/2125883003/diff/1/services/ui/ws/window_tree.cc#newcode970 services/ui/ws/window_tree.cc:970: event_ack_id_ = 0x1000000 | (rand() & 0xffffff); Out of ...
4 years, 5 months ago (2016-07-07 04:04:21 UTC) #2
sky
https://codereview.chromium.org/2125883003/diff/1/services/ui/ws/window_tree.cc File services/ui/ws/window_tree.cc (right): https://codereview.chromium.org/2125883003/diff/1/services/ui/ws/window_tree.cc#newcode970 services/ui/ws/window_tree.cc:970: event_ack_id_ = 0x1000000 | (rand() & 0xffffff); On 2016/07/07 ...
4 years, 5 months ago (2016-07-07 13:38:38 UTC) #3
sadrul
I think we should allow this only for key-events, because for mouse/touch-event based accelerators, we ...
4 years, 5 months ago (2016-07-07 20:04:42 UTC) #4
sky
On Thu, Jul 7, 2016 at 1:04 PM, <sadrul@chromium.org> wrote: > > I think we ...
4 years, 5 months ago (2016-07-07 21:51:09 UTC) #5
sky
https://codereview.chromium.org/2125883003/diff/60001/services/ui/public/interfaces/window_tree.mojom File services/ui/public/interfaces/window_tree.mojom (right): https://codereview.chromium.org/2125883003/diff/60001/services/ui/public/interfaces/window_tree.mojom#newcode36 services/ui/public/interfaces/window_tree.mojom:36: // processing stops. If the EventMatcher does not consume ...
4 years, 5 months ago (2016-07-07 21:55:43 UTC) #6
sadrul
Mostly nits. Left some comments about using ui::EventResult and ui::EventPhase where possible. Otherwise, lgtm https://codereview.chromium.org/2125883003/diff/80001/services/ui/public/cpp/window_manager_delegate.h ...
4 years, 5 months ago (2016-07-08 15:40:45 UTC) #7
sky
https://codereview.chromium.org/2125883003/diff/80001/services/ui/public/cpp/window_manager_delegate.h File services/ui/public/cpp/window_manager_delegate.h (right): https://codereview.chromium.org/2125883003/diff/80001/services/ui/public/cpp/window_manager_delegate.h#newcode109 services/ui/public/cpp/window_manager_delegate.h:109: virtual mojom::EventResult OnAccelerator(uint32_t id, const ui::Event& event); On 2016/07/08 ...
4 years, 5 months ago (2016-07-08 16:23:51 UTC) #8
dcheng
LGTM. Thanks for writing up some docs! As discussed offline: - in the future, consider ...
4 years, 5 months ago (2016-07-08 17:12:13 UTC) #9
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/2125883003/120001
4 years, 5 months ago (2016-07-08 17:28:42 UTC) #12
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-08 18:43:23 UTC) #13
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 18:45:05 UTC) #15
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/76d46665b53e76c0d8c2e6a642ae686ef2b44048
Cr-Commit-Position: refs/heads/master@{#404450}

Powered by Google App Engine
This is Rietveld 408576698