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

Issue 2980713002: Views a11y: Obey DialogDelegate::GetAccessibleWindowRole() rather than making a dialog-within-a-dia… (Closed)

Created:
3 years, 5 months ago by tapted
Modified:
3 years, 5 months ago
Reviewers:
msw
CC:
chromium-reviews, tfarina, groby+bubble_chromium.org, rouslan+bubble_chromium.org, hcarmona+bubble_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Views a11y: Obey DialogDelegate::GetAccessibleWindowRole() rather than making a dialog-within-a-dialog Currently both views::RootView and a dialog's ContentsView() are populating AX_ROLE_DIALOG. This sets up a weird dialog-within-a-dialog. Also, since the ContentsView doesn't include the title and dialog buttons, it creates a nested group that excludes the dialog buttons and is hard to navigate with a11y tools since it hides the dialog contents inside the group. To fix, just rely on views::RootView to populate the window role, and obey GetAccessibleWindowRole() when deciding whether to notify a11y tools of the window appearance. BUG=741285 Review-Url: https://codereview.chromium.org/2980713002 Cr-Commit-Position: refs/heads/master@{#486153} Committed: https://chromium.googlesource.com/chromium/src/+/df3bc2070765d8e38fd47850ad0c112e128e5933

Patch Set 1 #

Patch Set 2 : fix win #

Patch Set 3 : Fire on RootView #

Patch Set 4 : Fix test #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -26 lines) Patch
M chrome/browser/ui/views/conflicting_module_view_win.h View 1 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/conflicting_module_view_win.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_message_bubble_view_browsertest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/permission_bubble/permission_prompt_impl.cc View 3 chunks +6 lines, -7 lines 0 comments Download
M ui/views/bubble/bubble_dialog_delegate.cc View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M ui/views/window/dialog_delegate.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/window/dialog_delegate.cc View 1 chunk +0 lines, -5 lines 2 comments Download

Messages

Total messages: 24 (19 generated)
tapted
Hi Mike, please take a look
3 years, 5 months ago (2017-07-12 11:09:15 UTC) #17
msw
lgtm with a q https://codereview.chromium.org/2980713002/diff/60001/ui/views/window/dialog_delegate.cc File ui/views/window/dialog_delegate.cc (left): https://codereview.chromium.org/2980713002/diff/60001/ui/views/window/dialog_delegate.cc#oldcode261 ui/views/window/dialog_delegate.cc:261: node_data->SetName(GetWindowTitle()); Where does the window ...
3 years, 5 months ago (2017-07-12 17:14:34 UTC) #18
tapted
https://codereview.chromium.org/2980713002/diff/60001/ui/views/window/dialog_delegate.cc File ui/views/window/dialog_delegate.cc (left): https://codereview.chromium.org/2980713002/diff/60001/ui/views/window/dialog_delegate.cc#oldcode261 ui/views/window/dialog_delegate.cc:261: node_data->SetName(GetWindowTitle()); On 2017/07/12 17:14:34, msw wrote: > Where does ...
3 years, 5 months ago (2017-07-12 23:29:57 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2980713002/60001
3 years, 5 months ago (2017-07-12 23:32:23 UTC) #21
commit-bot: I haz the power
3 years, 5 months ago (2017-07-12 23:37:55 UTC) #24
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/df3bc2070765d8e38fd47850ad0c...

Powered by Google App Engine
This is Rietveld 408576698