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

Issue 2184613005: Fixes bug in accelerator handling in mus (Closed)

Created:
4 years, 4 months ago by sky
Modified:
4 years, 4 months ago
Reviewers:
sadrul
CC:
chromium-reviews, rjkroege
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixes bug in accelerator handling in mus Here's the problematic case: . Add a post accelerator. . Event comes in matching accelerator. * Target window responds with handled. . Different event comes in. . Target window response with unhandled. . Accelerator matching earlier event is notified. The accelerator should not have been notified at that last step. Things went wrong at * because post_target_accelerator_ was not getting reset. BUG=612331 TEST=covered by tests R=sadrul@chromium.org Committed: https://crrev.com/99106ee359c78c25120afe69e2d6964a3cd8a593 Cr-Commit-Position: refs/heads/master@{#408170}

Patch Set 1 #

Total comments: 4

Patch Set 2 : always reset #

Patch Set 3 : tweak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -6 lines) Patch
M services/ui/ws/window_manager_state.cc View 1 2 2 chunks +9 lines, -6 lines 0 comments Download
M services/ui/ws/window_manager_state_unittest.cc View 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
sky
4 years, 4 months ago (2016-07-26 22:02:26 UTC) #1
sadrul
https://codereview.chromium.org/2184613005/diff/1/services/ui/ws/window_manager_state.cc File services/ui/ws/window_manager_state.cc (right): https://codereview.chromium.org/2184613005/diff/1/services/ui/ws/window_manager_state.cc#newcode222 services/ui/ws/window_manager_state.cc:222: std::unique_ptr<ui::Event> event = std::move(event_awaiting_input_ack_); Should we always reset |event_awaiting_input_ack_| ...
4 years, 4 months ago (2016-07-27 16:31:47 UTC) #6
sky
https://codereview.chromium.org/2184613005/diff/1/services/ui/ws/window_manager_state.cc File services/ui/ws/window_manager_state.cc (right): https://codereview.chromium.org/2184613005/diff/1/services/ui/ws/window_manager_state.cc#newcode222 services/ui/ws/window_manager_state.cc:222: std::unique_ptr<ui::Event> event = std::move(event_awaiting_input_ack_); On 2016/07/27 16:31:47, sadrul wrote: ...
4 years, 4 months ago (2016-07-27 16:34:49 UTC) #7
sadrul
https://codereview.chromium.org/2184613005/diff/1/services/ui/ws/window_manager_state.cc File services/ui/ws/window_manager_state.cc (right): https://codereview.chromium.org/2184613005/diff/1/services/ui/ws/window_manager_state.cc#newcode222 services/ui/ws/window_manager_state.cc:222: std::unique_ptr<ui::Event> event = std::move(event_awaiting_input_ack_); On 2016/07/27 16:34:49, sky wrote: ...
4 years, 4 months ago (2016-07-27 16:36:01 UTC) #8
sky
https://codereview.chromium.org/2184613005/diff/1/services/ui/ws/window_manager_state.cc File services/ui/ws/window_manager_state.cc (right): https://codereview.chromium.org/2184613005/diff/1/services/ui/ws/window_manager_state.cc#newcode222 services/ui/ws/window_manager_state.cc:222: std::unique_ptr<ui::Event> event = std::move(event_awaiting_input_ack_); On 2016/07/27 16:36:01, sadrul wrote: ...
4 years, 4 months ago (2016-07-27 16:46:01 UTC) #11
sadrul
lgtm
4 years, 4 months ago (2016-07-27 16:48:04 UTC) #12
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/2184613005/40001
4 years, 4 months ago (2016-07-27 16:50:30 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-07-27 17:41:17 UTC) #16
commit-bot: I haz the power
4 years, 4 months ago (2016-07-27 17:43:33 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/99106ee359c78c25120afe69e2d6964a3cd8a593
Cr-Commit-Position: refs/heads/master@{#408170}

Powered by Google App Engine
This is Rietveld 408576698