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

Unified Diff: chrome/browser/ui/cocoa/location_bar/location_bar_decoration.mm

Issue 2289673003: a11y: use decoration tooltip for location bar decoration view a11y title (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/location_bar/location_bar_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.mm b/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.mm
index 3c7a0a85fb39382a97def596098632150ac67507..0c010f056896273eb9daaff64c76eaf34fe05859 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.mm
@@ -34,6 +34,7 @@ const CGFloat kMaterialDividerIncognitoGrayScale = 1.0;
- (BOOL)acceptsFirstResponder;
- (void)drawRect:(NSRect)dirtyRect;
- (NSView*)hitTest:(NSPoint)aPoint;
+- (NSString*)accessibilityLabel;
// This method is called when this DecorationAccessibilityView is activated.
- (void)actionDidHappen;
@@ -75,6 +76,10 @@ const CGFloat kMaterialDividerIncognitoGrayScale = 1.0;
owner_->OnAccessibilityViewAction();
}
+- (NSString*)accessibilityLabel {
+ return owner_->GetToolTip();
+}
+
@end
const CGFloat LocationBarDecoration::kOmittedWidth = 0.0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698