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

Issue 689833004: Auto-focus the first button in the App Info dialog (Closed)

Created:
6 years, 1 month ago by sashab
Modified:
6 years, 1 month ago
Reviewers:
benwells
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@accessibility_dialog
Project:
chromium
Visibility:
Public.

Description

Auto-focus the first button in the App Info dialog To make the dialog more accessible, auto-focus the first button in the dialog when it opens so focus is already on an element inside the dialog. This behaviour is more consistent with existing dialogs in Chrome, and helps users using screen-readers and similar with navigating the dialog after it opens. BUG=425311 Committed: https://crrev.com/1870b34b26ad58d36845e8932959f06350e1543c Cr-Commit-Position: refs/heads/master@{#302415}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Separated out focus actions into both the specific Pin/Unpin buttons and the generic dialog focus #

Patch Set 3 : Added some TODOs and override for GetInitiallyFocusedView in NativeDialogView #

Total comments: 2

Patch Set 4 : Removed TODOs #

Patch Set 5 : Removed new override to GetInitiallyFocusedView #

Total comments: 2

Patch Set 6 : Made the initially focused view return NULL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -6 lines) Patch
M chrome/browser/ui/views/app_list/app_list_dialog_container.cc View 1 2 3 4 5 2 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc View 1 2 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
sashab
6 years, 1 month ago (2014-10-30 04:31:08 UTC) #2
benwells
https://codereview.chromium.org/689833004/diff/1/chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc File chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc (right): https://codereview.chromium.org/689833004/diff/1/chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc#newcode129 chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc:129: UpdateButtonFocus(); This seems like a strange way to do ...
6 years, 1 month ago (2014-10-30 21:42:13 UTC) #3
benwells
On 2014/10/30 21:42:13, benwells wrote: > https://codereview.chromium.org/689833004/diff/1/chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc > File chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc > (right): > > https://codereview.chromium.org/689833004/diff/1/chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc#newcode129 ...
6 years, 1 month ago (2014-10-30 21:49:41 UTC) #4
sashab
https://codereview.chromium.org/689833004/diff/1/chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc File chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc (right): https://codereview.chromium.org/689833004/diff/1/chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc#newcode129 chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc:129: UpdateButtonFocus(); On 2014/10/30 21:42:12, benwells wrote: > This seems ...
6 years, 1 month ago (2014-10-31 02:03:04 UTC) #5
sashab
Added TODOs; I think this is the best way we're gonna get it to work ...
6 years, 1 month ago (2014-11-02 23:41:36 UTC) #6
benwells
Let's just remove the TODOs as I don't really know the best approach. https://codereview.chromium.org/689833004/diff/40001/chrome/browser/ui/views/app_list/app_list_dialog_container.cc File ...
6 years, 1 month ago (2014-11-03 00:11:10 UTC) #7
sashab
Removed TODOs. https://codereview.chromium.org/689833004/diff/40001/chrome/browser/ui/views/app_list/app_list_dialog_container.cc File chrome/browser/ui/views/app_list/app_list_dialog_container.cc (right): https://codereview.chromium.org/689833004/diff/40001/chrome/browser/ui/views/app_list/app_list_dialog_container.cc#newcode185 chrome/browser/ui/views/app_list/app_list_dialog_container.cc:185: views::View* GetInitiallyFocusedView() override { return GetContentsView(); } ...
6 years, 1 month ago (2014-11-03 00:14:46 UTC) #8
benwells
lgtm, but please remove both of those GetInitiallyFocusedView methods if they have no effect. I ...
6 years, 1 month ago (2014-11-03 02:22:35 UTC) #9
sashab
Ok, I've decided that the right way to fix the GetInitiallyFocusedView() overrides is to fix ...
6 years, 1 month ago (2014-11-03 03:23:24 UTC) #10
benwells
lgtm. yeah fixing that assumption in dialog_delegate.cc sounds wise.
6 years, 1 month ago (2014-11-03 04:29:46 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/689833004/100001
6 years, 1 month ago (2014-11-03 05:36:54 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years, 1 month ago (2014-11-03 06:17:55 UTC) #14
commit-bot: I haz the power
6 years, 1 month ago (2014-11-03 06:18:41 UTC) #15
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/1870b34b26ad58d36845e8932959f06350e1543c
Cr-Commit-Position: refs/heads/master@{#302415}

Powered by Google App Engine
This is Rietveld 408576698