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

Issue 2091063002: Location bar: make decorations accessible (Closed)

Created:
4 years, 6 months ago by Elly Fong-Jones
Modified:
4 years, 6 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Location bar: make decorations accessible This is somewhat tricky, since decorations are not NSViews themselves, but are NSImages that LocationBarViewMac draws over the AutocompleteTextFieldCell. To be focusable and visible to VoiceOver, these decorations need corresponding NSViews, but since LocationBarDecoration is deliberately Views-like instead of Cocoa-like, converting LocationBarDecoration to be an NSView subclass is infeasible. Instead, this CL adds the notion of an "accessibility view", which is a fully transparent but focusable and activateable NSView that is positioned over the LocationBarDecoration's drawn image. The accessibility views appear in the VoiceOver heirarchy and are focusable and useable by keyboard users. BUG=613019 Committed: https://crrev.com/cb2b2ec44ef20413e122ae374477a2327bef7dff Cr-Commit-Position: refs/heads/master@{#401882}

Patch Set 1 #

Total comments: 8

Patch Set 2 : first round #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -5 lines) Patch
M chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h View 5 chunks +15 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_decoration.mm View 1 2 chunks +74 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h View 1 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm View 1 2 chunks +36 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm View 1 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
Elly Fong-Jones
mark: ptal? :)
4 years, 6 months ago (2016-06-23 19:22:44 UTC) #3
Mark Mentovai
It does appear that this would work. https://codereview.chromium.org/2091063002/diff/1/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h File chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h (right): https://codereview.chromium.org/2091063002/diff/1/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h#newcode135 chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h:135: bool visible_ ...
4 years, 6 months ago (2016-06-23 19:30:56 UTC) #4
Elly Fong-Jones
mark: ptal? :) https://codereview.chromium.org/2091063002/diff/1/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h File chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h (right): https://codereview.chromium.org/2091063002/diff/1/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h#newcode135 chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h:135: bool visible_ = false; On 2016/06/23 ...
4 years, 6 months ago (2016-06-23 20:25:58 UTC) #5
Mark Mentovai
LGTM
4 years, 6 months ago (2016-06-23 20:52:30 UTC) #6
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/2091063002/20001
4 years, 6 months ago (2016-06-24 16:07:51 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-24 16:50:01 UTC) #10
commit-bot: I haz the power
4 years, 6 months ago (2016-06-24 16:51:15 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/cb2b2ec44ef20413e122ae374477a2327bef7dff
Cr-Commit-Position: refs/heads/master@{#401882}

Powered by Google App Engine
This is Rietveld 408576698