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

Issue 349033010: Implement accessible states and notifications for the tab strip. (Closed)

Created:
6 years, 5 months ago by dmazzoni
Modified:
6 years, 5 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, yusukes+watch_chromium.org, plundblad+watch_chromium.org, yukishiino+watch_chromium.org, aboxhall+watch_chromium.org, tfarina, penghuang+watch_chromium.org, yuzo+watch_chromium.org, nona+watch_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, chromium-apps-reviews_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@nvda_load_fix_3
Project:
chromium
Visibility:
Public.

Description

Implement accessible states and notifications for the tab strip. This change just exposes information about what tabs are selected and fires proper notifications when tab selection changes. This will allow screen readers to announce when switching tabs even if the web content doesn't have focus. It's also a good first step towards making the tab strip fully accessible too (e.g. making it possible to perform operations on multiple tabs with just the keyboard). As part of this change I renamed the "selection changed" event to "text selection changed" so that there's no confusion between the text-selection-related events, and tab/list selection events. BUG=100412 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282396

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 10

Patch Set 3 : Rebase #

Patch Set 4 : Address feedback #

Patch Set 5 : Clean up some events #

Patch Set 6 : Clarified that selected_indices is sorted #

Total comments: 2

Patch Set 7 : Fix compile on other platforms #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -70 lines) Patch
M chrome/browser/accessibility/accessibility_extension_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/accessibility/accessibility_event_router_views.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 3 4 5 1 chunk +19 lines, -1 line 0 comments Download
M chrome/common/extensions/api/automation.idl View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_android.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_mac.mm View 1 2 3 4 5 6 2 chunks +1 line, -13 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_win.cc View 1 2 3 4 1 chunk +2 lines, -8 lines 0 comments Download
M content/renderer/accessibility/blink_ax_enum_conversion.cc View 1 2 3 4 2 chunks +1 line, -11 lines 0 comments Download
M ui/accessibility/ax_enums.idl View 1 2 3 4 1 chunk +43 lines, -30 lines 0 comments Download
M ui/views/accessibility/native_view_accessibility_win.cc View 2 chunks +9 lines, -1 line 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
dmazzoni
6 years, 5 months ago (2014-06-30 21:57:51 UTC) #1
Ben Goodger (Google)
lgtm
6 years, 5 months ago (2014-07-07 19:46:30 UTC) #2
dtseng
https://codereview.chromium.org/349033010/diff/20001/chrome/browser/ui/views/tabs/tab_strip.cc File chrome/browser/ui/views/tabs/tab_strip.cc (right): https://codereview.chromium.org/349033010/diff/20001/chrome/browser/ui/views/tabs/tab_strip.cc#newcode793 chrome/browser/ui/views/tabs/tab_strip.cc:793: Are these sorted? https://codereview.chromium.org/349033010/diff/20001/ui/accessibility/ax_enums.idl File ui/accessibility/ax_enums.idl (left): https://codereview.chromium.org/349033010/diff/20001/ui/accessibility/ax_enums.idl#oldcode34 ui/accessibility/ax_enums.idl:34: ...
6 years, 5 months ago (2014-07-08 17:29:08 UTC) #3
dmazzoni
https://codereview.chromium.org/349033010/diff/20001/chrome/browser/ui/views/tabs/tab_strip.cc File chrome/browser/ui/views/tabs/tab_strip.cc (right): https://codereview.chromium.org/349033010/diff/20001/chrome/browser/ui/views/tabs/tab_strip.cc#newcode793 chrome/browser/ui/views/tabs/tab_strip.cc:793: On 2014/07/08 17:29:08, dtseng wrote: > Are these sorted? ...
6 years, 5 months ago (2014-07-08 20:45:47 UTC) #4
David Tseng
https://codereview.chromium.org/349033010/diff/20001/chrome/browser/ui/views/tabs/tab_strip.cc File chrome/browser/ui/views/tabs/tab_strip.cc (right): https://codereview.chromium.org/349033010/diff/20001/chrome/browser/ui/views/tabs/tab_strip.cc#newcode793 chrome/browser/ui/views/tabs/tab_strip.cc:793: On 2014/07/08 20:45:47, dmazzoni wrote: > On 2014/07/08 17:29:08, ...
6 years, 5 months ago (2014-07-08 20:57:43 UTC) #5
David Tseng
https://codereview.chromium.org/349033010/diff/20001/ui/accessibility/ax_enums.idl File ui/accessibility/ax_enums.idl (left): https://codereview.chromium.org/349033010/diff/20001/ui/accessibility/ax_enums.idl#oldcode36 ui/accessibility/ax_enums.idl:36: On 2014/07/08 20:57:43, David Tseng wrote: > On 2014/07/08 ...
6 years, 5 months ago (2014-07-08 21:01:27 UTC) #6
dmazzoni
I filed a couple of new bugs, deleted some events, and commented the rest. Have ...
6 years, 5 months ago (2014-07-09 17:10:36 UTC) #7
dmazzoni
On Tue, Jul 8, 2014 at 2:01 PM, <dtseng@chromium.org> wrote: > Another idea: maybe even ...
6 years, 5 months ago (2014-07-09 17:19:43 UTC) #8
David Tseng
https://codereview.chromium.org/349033010/diff/20001/chrome/browser/ui/views/tabs/tab_strip.cc File chrome/browser/ui/views/tabs/tab_strip.cc (right): https://codereview.chromium.org/349033010/diff/20001/chrome/browser/ui/views/tabs/tab_strip.cc#newcode793 chrome/browser/ui/views/tabs/tab_strip.cc:793: On 2014/07/08 20:57:43, David Tseng wrote: > On 2014/07/08 ...
6 years, 5 months ago (2014-07-09 18:07:35 UTC) #9
dmazzoni
On Wed, Jul 9, 2014 at 11:07 AM, <dtseng@chromium.org> wrote: > FYI. Took a look ...
6 years, 5 months ago (2014-07-09 18:13:01 UTC) #10
dmazzoni
Added some comments to tab_strip.cc, PTAL On Wed, Jul 9, 2014 at 11:12 AM, Dominic ...
6 years, 5 months ago (2014-07-09 18:27:09 UTC) #11
David Tseng
https://codereview.chromium.org/349033010/diff/100001/ui/accessibility/ax_enums.idl File ui/accessibility/ax_enums.idl (right): https://codereview.chromium.org/349033010/diff/100001/ui/accessibility/ax_enums.idl#newcode31 ui/accessibility/ax_enums.idl:31: checked_state_changed, // Implicit Can we group with major headings ...
6 years, 5 months ago (2014-07-09 18:41:44 UTC) #12
David Tseng
lgtm
6 years, 5 months ago (2014-07-09 18:41:55 UTC) #13
dmazzoni
https://codereview.chromium.org/349033010/diff/100001/ui/accessibility/ax_enums.idl File ui/accessibility/ax_enums.idl (right): https://codereview.chromium.org/349033010/diff/100001/ui/accessibility/ax_enums.idl#newcode31 ui/accessibility/ax_enums.idl:31: checked_state_changed, // Implicit On 2014/07/09 18:41:44, David Tseng wrote: ...
6 years, 5 months ago (2014-07-09 19:14:48 UTC) #14
chromium-reviews
On Wed, Jul 9, 2014 at 12:14 PM, <dmazzoni@chromium.org> wrote: > > https://codereview.chromium.org/349033010/diff/100001/ui/ > accessibility/ax_enums.idl ...
6 years, 5 months ago (2014-07-09 20:19:50 UTC) #15
dmazzoni
The CQ bit was checked by dmazzoni@chromium.org
6 years, 5 months ago (2014-07-10 17:35:05 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/349033010/120001
6 years, 5 months ago (2014-07-10 17:36:03 UTC) #17
commit-bot: I haz the power
Change committed as 282396
6 years, 5 months ago (2014-07-10 19:29:01 UTC) #18
David Tseng
FYI; this causes a DCHECK in accessibility_event_router_views.cc:226 because the tabs role isn't handled. On Tue, ...
6 years, 5 months ago (2014-07-11 19:28:09 UTC) #19
dmazzoni
6 years, 5 months ago (2014-07-11 19:45:17 UTC) #20
Thanks, I'll upload a fix for that.


On Fri, Jul 11, 2014 at 12:28 PM, David Tseng <dtseng@chromium.org> wrote:

> FYI; this causes a DCHECK in accessibility_event_router_views.cc:226
> because the tabs role isn't handled.
>
>
> On Tue, Jul 8, 2014 at 10:29 AM, <dtseng@google.com> wrote:
>
>>
>> https://codereview.chromium.org/349033010/diff/20001/
>> chrome/browser/ui/views/tabs/tab_strip.cc
>> File chrome/browser/ui/views/tabs/tab_strip.cc (right):
>>
>> https://codereview.chromium.org/349033010/diff/20001/
>> chrome/browser/ui/views/tabs/tab_strip.cc#newcode793
>> chrome/browser/ui/views/tabs/tab_strip.cc:793:
>> Are these sorted?
>>
>> https://codereview.chromium.org/349033010/diff/20001/ui/
>> accessibility/ax_enums.idl
>> File ui/accessibility/ax_enums.idl (left):
>>
>> https://codereview.chromium.org/349033010/diff/20001/ui/
>> accessibility/ax_enums.idl#oldcode34
>> ui/accessibility/ax_enums.idl:34:
>> See comment above:
>>   // For new entries to the following three enums, also add to
>>
>>   // chrome/common/extensions/apis/automation.idl.
>>
>> https://codereview.chromium.org/349033010/diff/20001/ui/
>> accessibility/ax_enums.idl#oldcode36
>> ui/accessibility/ax_enums.idl:36:
>> Seems like we're getting pretty loose with these? Can we consolidate?
>>
>> https://codereview.chromium.org/349033010/
>>
>
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698