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

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

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/BUILD.gn ('k') | ui/base/cocoa/a11y_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/cocoa/a11y_util.h
diff --git a/ui/base/cocoa/a11y_util.h b/ui/base/cocoa/a11y_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..df0e5bb4624dc890ab70220eac941192985f1ed1
--- /dev/null
+++ b/ui/base/cocoa/a11y_util.h
@@ -0,0 +1,23 @@
+// 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.
+
+#ifndef UI_BASE_COCOA_A11Y_UTIL_H
+#define UI_BASE_COCOA_A11Y_UTIL_H
+
+#import <Cocoa/Cocoa.h>
+
+#include "ui/base/ui_base_export.h"
+
+namespace ui {
+namespace a11y_util {
+
+// Hides the given |view| from the accessibility order for Voice Over. This
+// should be used when the view provides no additional information with
+// voice over (i.e., an icon next to a written description of the icon).
+UI_BASE_EXPORT void HideImageFromAccessibilityOrder(NSImageView* view);
+
+} // namespace a11y_util
+} // namespace ui
+
+#endif // UI_BASE_COCOA_A11Y_UTIL_H
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/base/cocoa/a11y_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698