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

Issue 2841963002: cocoa: fix a11y labeling & state on search icon (Closed)

Created:
3 years, 8 months ago by Elly Fong-Jones
Modified:
3 years, 8 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cocoa: fix a11y labeling & state on search icon When this icon is present, it means that there is no current page info to show, and so it has no tooltip and does not accept mouse presses. This change: 1) Makes the button always have its a11y label, even when it doesn't respond to mouse presses 2) Adds LocationBarDecoration::UpdateAccessibilityView to keep the a11y view's state synchronized with the decoration's state 3) Makes the Search icon actually reject mouse presses when they won't do anything A side-effect of (3) is that clicking the Search icon now acts as though the user had clicked the omnibox and focuses the omnibox, instead of doing nothing at all with no feedback. BUG=696232 Review-Url: https://codereview.chromium.org/2841963002 Cr-Commit-Position: refs/heads/master@{#467059} Committed: https://chromium.googlesource.com/chromium/src/+/39063b7bab59e08486157cf48cd6b159c50a677c

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -7 lines) Patch
M chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h View 3 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_decoration.mm View 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_icon_decoration.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm View 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 9 (5 generated)
Elly Fong-Jones
mark: ptal? :)
3 years, 8 months ago (2017-04-25 18:05:30 UTC) #3
Mark Mentovai
I think the stated side effect of (3) is positive. LGTM.
3 years, 8 months ago (2017-04-25 18:08:52 UTC) #4
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/2841963002/1
3 years, 8 months ago (2017-04-25 18:09:52 UTC) #6
commit-bot: I haz the power
3 years, 8 months ago (2017-04-25 18:37:08 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/39063b7bab59e08486157cf48cd6...

Powered by Google App Engine
This is Rietveld 408576698