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

Unified Diff: ui/base/cocoa/a11y_util.mm

Issue 2585953002: [UI Cocoa] Hide the global error bubble icon from accessibility (Closed)
Patch Set: . Created 4 years 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 | « ui/base/cocoa/a11y_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/cocoa/a11y_util.mm
diff --git a/ui/base/cocoa/a11y_util.mm b/ui/base/cocoa/a11y_util.mm
new file mode 100644
index 0000000000000000000000000000000000000000..37098eb6199c3ed850f91d809caff4ad854c9a4e
--- /dev/null
+++ b/ui/base/cocoa/a11y_util.mm
@@ -0,0 +1,19 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import "ui/base/cocoa/a11y_util.h"
+
+namespace ui {
+namespace a11y_util {
+
+void HideImageFromAccessibilityOrder(NSImageView* view) {
+ // This is the minimum change necessary to get VoiceOver to skip the image
+ // (instead of reading the word "image"). Accessibility mechanisms in OSX
+ // change once in a while, so this may be fragile.
+ [[view cell] accessibilitySetOverrideValue:@""
+ forAttribute:NSAccessibilityRoleAttribute];
+}
+
+} // namespace a11y_util
+} // namespace ui
« no previous file with comments | « ui/base/cocoa/a11y_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698