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

Issue 2761233003: Adds ability for accelerators to add key/value pairs to KeyEvent (Closed)

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

Description

Adds ability for accelerators to add key/value pairs to KeyEvent pre-target accelerators are run before the KeyEvent is passed to the target. If the pre-target accelerator doesn't handle the event the event is passed to the target. This patch adds the ability for the window-manager to add key-value pairs to the KeyEvent during the pre-target phase. This will be used so that ash can inform chrome of state about the KeyEvent that is necessary during Chrome's processing the KeyEvent. BUG=701815 TEST=covered by tests R=erg@chromium.org, tsepez@chromium.org Review-Url: https://codereview.chromium.org/2761233003 Cr-Commit-Position: refs/heads/master@{#458752} Committed: https://chromium.googlesource.com/chromium/src/+/c0c862a8b28d6afe8880049610ecb2320fd2b5b3

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 4

Patch Set 3 : feedback and compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -47 lines) Patch
M ash/mus/accelerators/accelerator_controller_registrar.h View 1 chunk +5 lines, -2 lines 0 comments Download
M ash/mus/accelerators/accelerator_controller_registrar.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M ash/mus/accelerators/accelerator_handler.h View 1 2 chunks +11 lines, -2 lines 0 comments Download
M ash/mus/window_manager.h View 1 chunk +5 lines, -2 lines 0 comments Download
M ash/mus/window_manager.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M services/ui/demo/mus_demo_internal.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M services/ui/demo/mus_demo_internal.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M services/ui/public/interfaces/window_manager.mojom View 1 1 chunk +6 lines, -2 lines 0 comments Download
M services/ui/ws/test_change_tracker.h View 2 chunks +3 lines, -0 lines 0 comments Download
M services/ui/ws/test_change_tracker.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/ws/test_utils.h View 1 chunk +5 lines, -2 lines 0 comments Download
M services/ui/ws/window_manager_client_unittest.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M services/ui/ws/window_manager_state.h View 2 chunks +5 lines, -1 line 0 comments Download
M services/ui/ws/window_manager_state.cc View 3 chunks +7 lines, -2 lines 0 comments Download
M services/ui/ws/window_manager_state_unittest.cc View 3 chunks +76 lines, -2 lines 0 comments Download
M services/ui/ws/window_server_test_base.h View 1 chunk +5 lines, -2 lines 0 comments Download
M services/ui/ws/window_server_test_base.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M services/ui/ws/window_tree.h View 1 chunk +5 lines, -1 line 0 comments Download
M services/ui/ws/window_tree.cc View 1 2 6 chunks +9 lines, -2 lines 0 comments Download
M ui/aura/mus/window_manager_delegate.h View 1 2 chunks +11 lines, -2 lines 0 comments Download
M ui/aura/mus/window_manager_delegate.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M ui/aura/test/aura_test_base.h View 1 chunk +5 lines, -2 lines 0 comments Download
M ui/aura/test/aura_test_base.cc View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (14 generated)
sky
tsepez: mojom erg: the rest
3 years, 9 months ago (2017-03-21 23:20:23 UTC) #3
Elliot Glaysher
here is a string of letters for the commit queue: lgtm now that that's out ...
3 years, 9 months ago (2017-03-21 23:39:29 UTC) #8
Tom Sepez
mojom LGTM. This only happens from window manager, and we trust it, right?
3 years, 9 months ago (2017-03-21 23:46:49 UTC) #9
sky
That's right, only the window-manager can do this. On Tue, Mar 21, 2017 at 4:46 ...
3 years, 9 months ago (2017-03-21 23:49:14 UTC) #10
sky
https://codereview.chromium.org/2761233003/diff/20001/services/ui/ws/window_tree.cc File services/ui/ws/window_tree.cc (right): https://codereview.chromium.org/2761233003/diff/20001/services/ui/ws/window_tree.cc#newcode560 services/ui/ws/window_tree.cc:560: DVLOG(3) << "dispatching accelerator, client=" << id_; On 2017/03/21 ...
3 years, 9 months ago (2017-03-22 00:01:03 UTC) #11
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/2761233003/40001
3 years, 9 months ago (2017-03-22 00:01:53 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/405274)
3 years, 9 months ago (2017-03-22 00:30:20 UTC) #16
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/2761233003/40001
3 years, 9 months ago (2017-03-22 03:09:49 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/176995)
3 years, 9 months ago (2017-03-22 05:38:22 UTC) #20
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/2761233003/40001
3 years, 9 months ago (2017-03-22 15:05:20 UTC) #22
commit-bot: I haz the power
3 years, 9 months ago (2017-03-22 15:15:06 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/c0c862a8b28d6afe8880049610ec...

Powered by Google App Engine
This is Rietveld 408576698