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

Issue 1230163004: Selects last item in a menu when pressing 'up' initially (Closed)

Created:
5 years, 5 months ago by varkha
Modified:
5 years, 5 months ago
Reviewers:
sadrul
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

Selects last item in a menu when pressing 'up' initially This makes the behavior match native platforms. BUG=376384 TEST=On linux - press Alt+F, then Up Arrow key, then Enter. Expected: The last item "Exit" was selected and invoked, quitting Chrome. Committed: https://crrev.com/52eb03bee6e55a7fdbbb049a3977a6a2000046ec Cr-Commit-Position: refs/heads/master@{#339761}

Patch Set 1 : Selects last item in a menu when pressing 'up' initially #

Total comments: 2

Patch Set 2 : Selects last item in a menu when pressing 'up' initially (comments) #

Total comments: 5

Patch Set 3 : Selects last item in a menu when pressing 'up' initially (comments) #

Patch Set 4 : Selects last item in a menu when pressing 'up' initially (comments) #

Patch Set 5 : Selects last item in a menu when pressing 'up' initially (comments) #

Total comments: 2

Patch Set 6 : Selects last item in a menu when pressing 'up' initially (nits) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -61 lines) Patch
M ui/views/controls/menu/menu_controller.h View 1 2 3 4 5 4 chunks +29 lines, -12 lines 0 comments Download
M ui/views/controls/menu/menu_controller.cc View 1 2 3 4 5 9 chunks +31 lines, -23 lines 0 comments Download
M ui/views/controls/menu/menu_controller_unittest.cc View 1 2 3 4 5 8 chunks +151 lines, -25 lines 0 comments Download
M ui/views/controls/menu/menu_item_view.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M ui/views/controls/menu/submenu_view.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 41 (20 generated)
varkha
sadrul@, can you please take a look? Noticed another discrepancy following up on https://codereview.chromium.org/1129203003/. Thanks!
5 years, 5 months ago (2015-07-13 18:19:33 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230163004/20001
5 years, 5 months ago (2015-07-13 18:20:09 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230163004/40001
5 years, 5 months ago (2015-07-13 18:23:54 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/77726) (exceeded global ...
5 years, 5 months ago (2015-07-13 18:47:40 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230163004/60001
5 years, 5 months ago (2015-07-13 19:02:32 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-13 20:41:50 UTC) #15
sadrul
https://codereview.chromium.org/1230163004/diff/60001/ui/views/controls/menu/menu_controller.cc File ui/views/controls/menu/menu_controller.cc (right): https://codereview.chromium.org/1230163004/diff/60001/ui/views/controls/menu/menu_controller.cc#newcode1907 ui/views/controls/menu/menu_controller.cc:1907: MenuItemView* to_select = FindFirstSelectableMenuItem(item); Hm. Perhaps we could add ...
5 years, 5 months ago (2015-07-14 04:17:41 UTC) #16
varkha
PTAL. I have also added test for a few corner cases. Not sure if it ...
5 years, 5 months ago (2015-07-14 16:22:54 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230163004/80001
5 years, 5 months ago (2015-07-14 16:38:04 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/78140) win8_chromium_ng on ...
5 years, 5 months ago (2015-07-14 16:47:11 UTC) #21
sadrul
On 2015/07/14 16:22:54, varkha wrote: > ... I could replace int delta with an up ...
5 years, 5 months ago (2015-07-15 19:21:53 UTC) #22
varkha
> +1 That would be great! Sure, will do that. An answer and a question ...
5 years, 5 months ago (2015-07-15 19:51:34 UTC) #23
varkha
https://codereview.chromium.org/1230163004/diff/80001/ui/views/controls/menu/menu_controller_unittest.cc File ui/views/controls/menu/menu_controller_unittest.cc (right): https://codereview.chromium.org/1230163004/diff/80001/ui/views/controls/menu/menu_controller_unittest.cc#newcode61 ui/views/controls/menu/menu_controller_unittest.cc:61: TestMenuItemViewShown() : MenuItemView(nullptr) {} On 2015/07/15 19:51:34, varkha wrote: ...
5 years, 5 months ago (2015-07-16 16:32:33 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230163004/160001
5 years, 5 months ago (2015-07-16 16:37:14 UTC) #28
sadrul
lgtm https://codereview.chromium.org/1230163004/diff/180001/ui/views/controls/menu/menu_item_view.h File ui/views/controls/menu/menu_item_view.h (right): https://codereview.chromium.org/1230163004/diff/180001/ui/views/controls/menu/menu_item_view.h#newcode38 ui/views/controls/menu/menu_item_view.h:38: class TestMenuItemViewShown; namespace test?
5 years, 5 months ago (2015-07-19 01:11:49 UTC) #29
varkha
https://codereview.chromium.org/1230163004/diff/180001/ui/views/controls/menu/menu_item_view.h File ui/views/controls/menu/menu_item_view.h (right): https://codereview.chromium.org/1230163004/diff/180001/ui/views/controls/menu/menu_item_view.h#newcode38 ui/views/controls/menu/menu_item_view.h:38: class TestMenuItemViewShown; On 2015/07/19 01:11:49, sadrul wrote: > namespace ...
5 years, 5 months ago (2015-07-21 20:00:44 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230163004/240001
5 years, 5 months ago (2015-07-21 20:00:53 UTC) #34
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-21 22:14:29 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230163004/240001
5 years, 5 months ago (2015-07-21 22:16:03 UTC) #39
commit-bot: I haz the power
Committed patchset #6 (id:240001)
5 years, 5 months ago (2015-07-21 22:22:32 UTC) #40
commit-bot: I haz the power
5 years, 5 months ago (2015-07-21 22:24:26 UTC) #41
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/52eb03bee6e55a7fdbbb049a3977a6a2000046ec
Cr-Commit-Position: refs/heads/master@{#339761}

Powered by Google App Engine
This is Rietveld 408576698