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

Issue 2497373003: Add tab status to accessibility labels (Closed)

Created:
4 years, 1 month ago by edwardjung
Modified:
4 years ago
Reviewers:
dmazzoni, sky
CC:
chromium-reviews, tfarina, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add tab status to accessibility labels We display various visual tab indicators but there is no corresponding indicator for accessible labels. The updated accessible label is in the format of: Page title - Tab status For tabs in incognito this is a format: Page title - Tab status (incognito) BUG=635610 Committed: https://crrev.com/e67fb93083c60c0189cb06f272eca9c1672f62a8 Cr-Commit-Position: refs/heads/master@{#438128}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add ax label to broser window title #

Patch Set 3 : Remove tooltip update for separate CL #

Patch Set 4 : clean up #

Patch Set 5 : Merge branch 'master' of https://chromium.googlesource.com/chromium/src into neterror #

Patch Set 6 : Merge #

Patch Set 7 : Fix linux compile errors #

Patch Set 8 : Formatting and style #

Total comments: 2

Patch Set 9 : Move GetAccessibleTabLabel() to BrowserView #

Total comments: 2

Patch Set 10 : Add GetAccessibleTabName to TabController #

Patch Set 11 : Fix unit tests #

Total comments: 22

Patch Set 12 : Address review comments #

Patch Set 13 :  #

Patch Set 14 : Add examples to new strings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -14 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +54 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.h View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc View 1 2 3 4 5 6 7 8 9 3 chunks +18 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 2 3 4 5 6 7 8 9 7 chunks +17 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_controller.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_renderer_data.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip_controller.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 58 (40 generated)
dmazzoni
Overall this approach seems reasonable to me, you should probably reach out to other owners ...
4 years, 1 month ago (2016-11-14 21:59:02 UTC) #2
edwardjung
@sky PTAL, let me know if this approach is reasonable. Thanks. https://codereview.chromium.org/2497373003/diff/1/chrome/browser/ui/tabs/tab_utils.cc File chrome/browser/ui/tabs/tab_utils.cc (right): ...
4 years ago (2016-11-24 11:36:43 UTC) #20
sky
https://codereview.chromium.org/2497373003/diff/140001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (left): https://codereview.chromium.org/2497373003/diff/140001/chrome/browser/ui/views/frame/browser_view.cc#oldcode1603 chrome/browser/ui/views/frame/browser_view.cc:1603: return browser_->GetWindowTitleForCurrentTab(include_app_name); GetWindowTitleForCurrentTab() has a couple of heuristics for ...
4 years ago (2016-11-26 17:19:33 UTC) #22
edwardjung
On 2016/11/26 17:19:33, sky wrote: > https://codereview.chromium.org/2497373003/diff/140001/chrome/browser/ui/views/frame/browser_view.cc > File chrome/browser/ui/views/frame/browser_view.cc (left): > > https://codereview.chromium.org/2497373003/diff/140001/chrome/browser/ui/views/frame/browser_view.cc#oldcode1603 > ...
4 years ago (2016-12-05 19:02:21 UTC) #23
sky
It'll be a couple of hops. Tab has a TabController (that is the TabStrip) and ...
4 years ago (2016-12-05 22:37:13 UTC) #24
edwardjung
Thanks for the pointers, I've made the change. One think I'm not having a problem ...
4 years ago (2016-12-06 20:23:16 UTC) #29
sky
https://codereview.chromium.org/2497373003/diff/160001/chrome/browser/ui/views/tabs/tab.cc File chrome/browser/ui/views/tabs/tab.cc (right): https://codereview.chromium.org/2497373003/diff/160001/chrome/browser/ui/views/tabs/tab.cc#newcode1108 chrome/browser/ui/views/tabs/tab.cc:1108: BrowserTabStripController* browser_tab_strip_controller = You shouldn't directly extract these values, ...
4 years ago (2016-12-06 23:18:33 UTC) #30
edwardjung
https://codereview.chromium.org/2497373003/diff/160001/chrome/browser/ui/views/tabs/tab.cc File chrome/browser/ui/views/tabs/tab.cc (right): https://codereview.chromium.org/2497373003/diff/160001/chrome/browser/ui/views/tabs/tab.cc#newcode1108 chrome/browser/ui/views/tabs/tab.cc:1108: BrowserTabStripController* browser_tab_strip_controller = Done, thanks for the pointers. On ...
4 years ago (2016-12-12 16:50:43 UTC) #39
sky
https://codereview.chromium.org/2497373003/diff/200001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/2497373003/diff/200001/chrome/browser/ui/views/frame/browser_view.cc#newcode1650 chrome/browser/ui/views/frame/browser_view.cc:1650: default: You shouldn't need the default state. https://codereview.chromium.org/2497373003/diff/200001/chrome/browser/ui/views/frame/browser_view.h File ...
4 years ago (2016-12-12 17:25:09 UTC) #40
dmazzoni
https://codereview.chromium.org/2497373003/diff/200001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2497373003/diff/200001/chrome/app/generated_resources.grd#newcode14283 chrome/app/generated_resources.grd:14283: + <ph name="WINDOW_TITLE">$1</ph> - Camera or microphone recording It ...
4 years ago (2016-12-12 18:26:01 UTC) #41
dmazzoni
I'm just thinking of the potential for error for translating the strings with hyphens and ...
4 years ago (2016-12-12 18:32:18 UTC) #42
edwardjung
> How about a bunch of strings for the tab status, like > "Network error" ...
4 years ago (2016-12-12 19:16:21 UTC) #43
dmazzoni
lgtm https://codereview.chromium.org/2497373003/diff/200001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2497373003/diff/200001/chrome/app/generated_resources.grd#newcode14283 chrome/app/generated_resources.grd:14283: + <ph name="WINDOW_TITLE">$1</ph> - Camera or microphone recording ...
4 years ago (2016-12-12 19:22:46 UTC) #44
edwardjung
https://codereview.chromium.org/2497373003/diff/200001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2497373003/diff/200001/chrome/app/generated_resources.grd#newcode14283 chrome/app/generated_resources.grd:14283: + <ph name="WINDOW_TITLE">$1</ph> - Camera or microphone recording On ...
4 years ago (2016-12-12 19:43:00 UTC) #45
sky
LGTM
4 years ago (2016-12-12 21:06:00 UTC) #46
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/2497373003/260001
4 years ago (2016-12-13 11:30:31 UTC) #53
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years ago (2016-12-13 11:37:42 UTC) #56
commit-bot: I haz the power
4 years ago (2016-12-13 11:39:10 UTC) #58
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/e67fb93083c60c0189cb06f272eca9c1672f62a8
Cr-Commit-Position: refs/heads/master@{#438128}

Powered by Google App Engine
This is Rietveld 408576698