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

Issue 1544803004: Fix accelerator handling for in-menu buttons in the app menu. (Closed)

Created:
5 years ago by meacer
Modified:
4 years, 10 months ago
Reviewers:
msw, sadrul, 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

Fix accelerator handling for in-menu buttons in the app menu. BUG=557558 Committed: https://crrev.com/ac440714860679857517ac7dd4c6282acbfa4033 Cr-Commit-Position: refs/heads/master@{#374787}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : msw comments #

Patch Set 4 : sadrul comments: Move accelerator handling logic from CustomButton to View #

Patch Set 5 : Add back the unit test, disable logic on ChromeOS #

Total comments: 9

Patch Set 6 : Build a proper view hierarchy for the test, remove virtuals #

Patch Set 7 : Replace ChromeOS check with Aura check #

Total comments: 8

Patch Set 8 : Disable the check on ChromeOS (again). Accelerator handling in extension popups is different betwee… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -77 lines) Patch
M ui/views/controls/button/custom_button.h View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M ui/views/controls/button/custom_button.cc View 1 2 3 4 2 chunks +0 lines, -17 lines 0 comments Download
M ui/views/controls/button/custom_button_unittest.cc View 1 2 3 4 chunks +3 lines, -54 lines 0 comments Download
M ui/views/view.cc View 1 2 3 4 5 6 7 1 chunk +19 lines, -1 line 0 comments Download
M ui/views/view_unittest.cc View 1 2 3 4 5 6 7 1 chunk +74 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (9 generated)
meacer
msw: Can you PTAL?
5 years ago (2015-12-22 23:23:53 UTC) #2
msw
Won't other menus (context, bookmark, etc.) require similar fixes? lgtm as a temporary workaround, but ...
5 years ago (2015-12-23 04:06:25 UTC) #3
meacer
> Won't other menus (context, bookmark, etc.) require similar fixes? lgtm as a temporary workaround, ...
4 years, 12 months ago (2015-12-24 21:40:02 UTC) #5
meacer
sadrul: PTAL at ui/views/controls/button/custom_button.cc/h as owner
4 years, 12 months ago (2015-12-24 21:40:37 UTC) #6
sadrul
On 2015/12/24 21:40:02, Mustafa Emre Acer wrote: > > Won't other menus (context, bookmark, etc.) ...
4 years, 11 months ago (2016-01-04 20:26:06 UTC) #7
Mustafa Acer
On 2016/01/04 20:26:06, sadrul wrote: > On 2015/12/24 21:40:02, Mustafa Emre Acer wrote: > > ...
4 years, 11 months ago (2016-01-20 23:19:59 UTC) #8
meacer
On 2016/01/20 23:19:59, Mustafa Acer wrote: > On 2016/01/04 20:26:06, sadrul wrote: > > On ...
4 years, 11 months ago (2016-01-22 00:25:32 UTC) #9
sadrul
On 2016/01/20 23:19:59, Mustafa Acer wrote: > On 2016/01/04 20:26:06, sadrul wrote: > > On ...
4 years, 11 months ago (2016-01-22 05:05:37 UTC) #10
meacer
On 2016/01/22 05:05:37, sadrul wrote: > On 2016/01/20 23:19:59, Mustafa Acer wrote: > > On ...
4 years, 11 months ago (2016-01-22 22:12:00 UTC) #11
sadrul
Looks like we are losing test-coverage? Can we have an equivalent test for the new ...
4 years, 11 months ago (2016-01-26 17:21:49 UTC) #12
meacer
On 2016/01/26 17:21:49, sadrul wrote: > Looks like we are losing test-coverage? Can we have ...
4 years, 11 months ago (2016-01-26 17:59:08 UTC) #13
meacer
sadrul: Can you PTAL? I've added the tests back. The test failure on ChromeOS was ...
4 years, 10 months ago (2016-01-28 00:37:38 UTC) #14
sadrul
+sky@ as well https://codereview.chromium.org/1544803004/diff/80001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/1544803004/diff/80001/ui/views/view.cc#newcode1162 ui/views/view.cc:1162: #endif I don't think this behaviour ...
4 years, 10 months ago (2016-01-28 08:11:00 UTC) #16
sky
On 2016/01/28 00:37:38, Mustafa Emre Acer wrote: > sadrul: Can you PTAL? I've added the ...
4 years, 10 months ago (2016-01-28 16:23:41 UTC) #17
sky
https://codereview.chromium.org/1544803004/diff/80001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/1544803004/diff/80001/ui/views/view.cc#newcode1158 ui/views/view.cc:1158: if ((IsChildWidget() && !FocusInChildWidget()) || I wouldn't bother with ...
4 years, 10 months ago (2016-01-28 16:23:46 UTC) #18
meacer
https://codereview.chromium.org/1544803004/diff/80001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/1544803004/diff/80001/ui/views/view.cc#newcode1158 ui/views/view.cc:1158: if ((IsChildWidget() && !FocusInChildWidget()) || On 2016/01/28 16:23:45, sky ...
4 years, 10 months ago (2016-01-28 18:39:26 UTC) #19
sky
https://codereview.chromium.org/1544803004/diff/80001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/1544803004/diff/80001/ui/views/view.cc#newcode1162 ui/views/view.cc:1162: #endif On 2016/01/28 18:39:26, Mustafa Emre Acer wrote: > ...
4 years, 10 months ago (2016-01-28 21:18:38 UTC) #20
meacer
https://codereview.chromium.org/1544803004/diff/80001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/1544803004/diff/80001/ui/views/view.cc#newcode1162 ui/views/view.cc:1162: #endif On 2016/01/28 21:18:38, sky wrote: > https://codereview.chromium.org/1544803004/diff/80001/ui/views/view.cc > ...
4 years, 10 months ago (2016-01-29 00:14:22 UTC) #21
meacer
https://codereview.chromium.org/1544803004/diff/80001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/1544803004/diff/80001/ui/views/view.cc#newcode1158 ui/views/view.cc:1158: if ((IsChildWidget() && !FocusInChildWidget()) || On 2016/01/28 18:39:26, Mustafa ...
4 years, 10 months ago (2016-01-29 00:37:36 UTC) #22
sky
On Thu, Jan 28, 2016 at 4:14 PM, <meacer@chromium.org> wrote: > > > https://codereview.chromium.org/1544803004/diff/80001/ui/views/view.cc > ...
4 years, 10 months ago (2016-01-29 17:29:39 UTC) #23
meacer
On 2016/01/29 17:29:39, sky wrote: > On Thu, Jan 28, 2016 at 4:14 PM, <mailto:meacer@chromium.org> ...
4 years, 10 months ago (2016-02-03 02:04:46 UTC) #24
sky
On Tue, Feb 2, 2016 at 6:04 PM, <meacer@chromium.org> wrote: > On 2016/01/29 17:29:39, sky ...
4 years, 10 months ago (2016-02-03 16:46:38 UTC) #25
meacer
On 2016/02/03 16:46:38, sky wrote: > On Tue, Feb 2, 2016 at 6:04 PM, <mailto:meacer@chromium.org> ...
4 years, 10 months ago (2016-02-03 20:04:57 UTC) #26
sky
I think this is working around what I suggested in the earlier patch. In particular ...
4 years, 10 months ago (2016-02-03 22:07:55 UTC) #27
meacer
On 2016/02/03 22:07:55, sky wrote: > I think this is working around what I suggested ...
4 years, 10 months ago (2016-02-03 22:46:54 UTC) #28
sky
Ok, what you have is the right approach. My only remaining concern is the ifdef. ...
4 years, 10 months ago (2016-02-04 03:45:03 UTC) #29
meacer
It's actually the other way: the extra logic and the ifdef is necessary only on ...
4 years, 10 months ago (2016-02-04 20:46:04 UTC) #30
sky
LGTM
4 years, 10 months ago (2016-02-04 22:40:25 UTC) #31
msw
lgtm with nits and a q. https://codereview.chromium.org/1544803004/diff/120001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/1544803004/diff/120001/ui/views/view.cc#newcode1150 ui/views/view.cc:1150: if (!enabled() || ...
4 years, 10 months ago (2016-02-04 22:45:36 UTC) #32
meacer
Quick update: The one test broken on ChromeOS before is still broken. The test sends ...
4 years, 10 months ago (2016-02-06 01:39:39 UTC) #33
meacer
Added back the ChromeOS check, because widget->IsActive is different on ChromeOS vs Linux when a ...
4 years, 10 months ago (2016-02-09 20:33:32 UTC) #34
sky
SLGTM
4 years, 10 months ago (2016-02-09 21:20:25 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1544803004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1544803004/140001
4 years, 10 months ago (2016-02-10 18:23:49 UTC) #38
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-10 19:08:12 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1544803004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1544803004/140001
4 years, 10 months ago (2016-02-10 23:33:58 UTC) #43
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 10 months ago (2016-02-10 23:43:29 UTC) #44
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:32:45 UTC) #46
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/ac440714860679857517ac7dd4c6282acbfa4033
Cr-Commit-Position: refs/heads/master@{#374787}

Powered by Google App Engine
This is Rietveld 408576698