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

Issue 1660273003: Keep focus on Find-In-Page buttons when using the keyboard to navigate. (Closed)

Created:
4 years, 10 months ago by Mario Pistrich
Modified:
4 years, 10 months ago
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

Keep focus on Find-In-Page buttons when using the keyboard to navigate. The focus was incorrectly moved to the textfield after using the keyboard. This makes it awkward to search for the previous occurrence using only the keyboard. The focus still moves to the textbox when using the mouse so that the user is still able to type different search terms. BUG=537714 R=msw@chromium.org TEST=Press CTRL+F to open the Find-In-Page box. Enter random text. Press TAB to focus previous or next button. Press ENTER or SPACE. The button should still be focused. Committed: https://crrev.com/f1777a5bee5a24d196deab700bf4c4a5e118a156 Cr-Commit-Position: refs/heads/master@{#374578}

Patch Set 1 #

Total comments: 17

Patch Set 2 : Use view IDs instead of tags; Fix view IDs in uitests. #

Patch Set 3 : Add reference to issue in TODO comment. #

Patch Set 4 : Add view IDs for cocoa find bar UI. #

Total comments: 1

Patch Set 5 : Remove redundant comment in cocoa findbar controller. #

Patch Set 6 : Add missing import of view_id_util.h. #

Patch Set 7 : Set viewID of findbar after it is loaded. #

Patch Set 8 : Unset viewID before browser is set to nullptr. #

Total comments: 2

Patch Set 9 : Remove viewIDs for findbar and add them to the exception list. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -26 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/view_id_util_browsertest.mm View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/view_ids.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/find_bar_view.h View 1 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/find_bar_view.cc View 1 5 chunks +19 lines, -13 lines 0 comments Download
M chrome/browser/ui/views/find_bar_views_interactive_uitest.cc View 1 2 1 chunk +37 lines, -5 lines 0 comments Download

Messages

Total messages: 44 (20 generated)
Mario Pistrich
4 years, 10 months ago (2016-02-03 19:43:27 UTC) #1
msw
Thanks for submitting this CL! https://codereview.chromium.org/1660273003/diff/1/AUTHORS File AUTHORS (right): https://codereview.chromium.org/1660273003/diff/1/AUTHORS#newcode379 AUTHORS:379: Mario Pistrich <m.pistrich@gmail.com> Have ...
4 years, 10 months ago (2016-02-03 19:58:02 UTC) #2
Mario Pistrich
I've changed the usage of view IDs, but I am not sure about ClickOnView (see ...
4 years, 10 months ago (2016-02-03 20:41:59 UTC) #3
msw
https://codereview.chromium.org/1660273003/diff/1/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/1660273003/diff/1/chrome/browser/ui/views/find_bar_view.cc#newcode611 chrome/browser/ui/views/find_bar_view.cc:611: bool enable_buttons = !match_count_text_->text().empty() || !no_match; On 2016/02/03 20:41:59, ...
4 years, 10 months ago (2016-02-03 21:43:34 UTC) #4
Mario Pistrich
PTAL https://codereview.chromium.org/1660273003/diff/1/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/1660273003/diff/1/chrome/browser/ui/views/find_bar_view.cc#newcode611 chrome/browser/ui/views/find_bar_view.cc:611: bool enable_buttons = !match_count_text_->text().empty() || !no_match; On 2016/02/03 ...
4 years, 10 months ago (2016-02-03 23:32:54 UTC) #5
msw
lgtm https://codereview.chromium.org/1660273003/diff/1/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/1660273003/diff/1/chrome/browser/ui/views/find_bar_view.cc#newcode611 chrome/browser/ui/views/find_bar_view.cc:611: bool enable_buttons = !match_count_text_->text().empty() || !no_match; On 2016/02/03 ...
4 years, 10 months ago (2016-02-04 00:35:20 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1660273003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1660273003/40001
4 years, 10 months ago (2016-02-04 01:23:55 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/174931)
4 years, 10 months ago (2016-02-04 02:40:18 UTC) #10
Mario Pistrich
On 2016/02/04 02:40:18, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 10 months ago (2016-02-04 03:30:23 UTC) #13
Mario Pistrich
tapted can you please take a look at the view IDs for the cocoa UI?
4 years, 10 months ago (2016-02-08 23:27:11 UTC) #15
tapted
chrome/browser/ui/cocoa/ lgtm with the redundant comment removed https://codereview.chromium.org/1660273003/diff/60001/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm File chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm (right): https://codereview.chromium.org/1660273003/diff/60001/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm#newcode112 chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm:112: // Set ...
4 years, 10 months ago (2016-02-09 02:41:24 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1660273003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1660273003/80001
4 years, 10 months ago (2016-02-09 07:25:41 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/156682)
4 years, 10 months ago (2016-02-09 07:46:47 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1660273003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1660273003/100001
4 years, 10 months ago (2016-02-09 17:50:01 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/177373)
4 years, 10 months ago (2016-02-09 19:26:14 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1660273003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1660273003/120001
4 years, 10 months ago (2016-02-09 20:26:27 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/177544)
4 years, 10 months ago (2016-02-09 22:25:58 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1660273003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1660273003/140001
4 years, 10 months ago (2016-02-09 23:39:21 UTC) #34
tapted
https://codereview.chromium.org/1660273003/diff/140001/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm File chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm (right): https://codereview.chromium.org/1660273003/diff/140001/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm#newcode103 chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm:103: view_id_util::UnsetID(closeButton_); I don't think this will fix the problem. ...
4 years, 10 months ago (2016-02-10 00:56:01 UTC) #35
Mario Pistrich
Thanks, I've added the viewIDs to the exception list. PTAL. https://codereview.chromium.org/1660273003/diff/140001/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm File chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm (right): https://codereview.chromium.org/1660273003/diff/140001/chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm#newcode103 ...
4 years, 10 months ago (2016-02-10 01:14:29 UTC) #36
tapted
lgtm if the tests are happy
4 years, 10 months ago (2016-02-10 01:33:28 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1660273003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1660273003/160001
4 years, 10 months ago (2016-02-10 01:36:36 UTC) #40
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 10 months ago (2016-02-10 02:20:30 UTC) #42
commit-bot: I haz the power
4 years, 10 months ago (2016-02-10 02:21:41 UTC) #44
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/f1777a5bee5a24d196deab700bf4c4a5e118a156
Cr-Commit-Position: refs/heads/master@{#374578}

Powered by Google App Engine
This is Rietveld 408576698