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

Issue 1671323002: [UI Views] Handle accelerators being pressed for buttons inside a menu (Closed)

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

Description

[UI Views] Handle accelerators being pressed for buttons inside a menu CustomButton::AcceleratorPressed checks that the button's widget is active, but this won't be true for a button hosted inside a menu. Add support for in-menu buttons being triggered by the keyboard, and add a test. BUG=584771 Committed: https://crrev.com/0cb6b42e4445363a5e89de6e8cf1ba15c46a0642 Cr-Commit-Position: refs/heads/master@{#374245}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : Latest master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -0 lines) Patch
M chrome/browser/ui/views/toolbar/toolbar_action_view_interactive_uitest.cc View 2 chunks +64 lines, -0 lines 0 comments Download
M ui/views/controls/button/menu_button.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/button/menu_button.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (11 generated)
Devlin
Scott, mind taking a look?
4 years, 10 months ago (2016-02-06 00:23:15 UTC) #2
varkha
https://codereview.chromium.org/1671323002/diff/20001/chrome/browser/ui/views/toolbar/toolbar_action_view_interactive_uitest.cc File chrome/browser/ui/views/toolbar/toolbar_action_view_interactive_uitest.cc (right): https://codereview.chromium.org/1671323002/diff/20001/chrome/browser/ui/views/toolbar/toolbar_action_view_interactive_uitest.cc#newcode77 chrome/browser/ui/views/toolbar/toolbar_action_view_interactive_uitest.cc:77: // TODO(devlin): Shouldn't this be one key down event? ...
4 years, 10 months ago (2016-02-06 00:58:09 UTC) #4
Devlin
https://codereview.chromium.org/1671323002/diff/20001/chrome/browser/ui/views/toolbar/toolbar_action_view_interactive_uitest.cc File chrome/browser/ui/views/toolbar/toolbar_action_view_interactive_uitest.cc (right): https://codereview.chromium.org/1671323002/diff/20001/chrome/browser/ui/views/toolbar/toolbar_action_view_interactive_uitest.cc#newcode77 chrome/browser/ui/views/toolbar/toolbar_action_view_interactive_uitest.cc:77: // TODO(devlin): Shouldn't this be one key down event? ...
4 years, 10 months ago (2016-02-06 02:04:23 UTC) #5
sky
Will https://codereview.chromium.org/1544803004/ fix this.
4 years, 10 months ago (2016-02-08 18:09:30 UTC) #7
Devlin
On 2016/02/08 18:09:30, sky wrote: > Will https://codereview.chromium.org/1544803004/ fix this. No - but close. https://codereview.chromium.org/1544803004/ ...
4 years, 10 months ago (2016-02-08 18:23:36 UTC) #8
Devlin
On 2016/02/08 18:23:36, Devlin wrote: > On 2016/02/08 18:09:30, sky wrote: > > Will https://codereview.chromium.org/1544803004/ ...
4 years, 10 months ago (2016-02-08 18:25:15 UTC) #9
sky
LGTM - Not sure on MenuButtonListener. If you can nuke it and use ButtonListener, go ...
4 years, 10 months ago (2016-02-08 20:24:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1671323002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1671323002/40001
4 years, 10 months ago (2016-02-08 22:35:04 UTC) #12
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary files are still unsupported ...
4 years, 10 months ago (2016-02-08 23:01:42 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1671323002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1671323002/40001
4 years, 10 months ago (2016-02-08 23:10:13 UTC) #16
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary files are still unsupported ...
4 years, 10 months ago (2016-02-08 23:20:31 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1671323002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1671323002/60001
4 years, 10 months ago (2016-02-08 23:34:24 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 10 months ago (2016-02-09 00:52:50 UTC) #23
commit-bot: I haz the power
4 years, 10 months ago (2016-02-09 00:54:19 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0cb6b42e4445363a5e89de6e8cf1ba15c46a0642
Cr-Commit-Position: refs/heads/master@{#374245}

Powered by Google App Engine
This is Rietveld 408576698