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

Unified Diff: ui/accessibility/platform/ax_platform_node_delegate.h

Issue 2474363002: MacViews/a11y: Accessibility actions use AXActionData in AXPlatformNodeDelegate. (Closed)
Patch Set: Review comments. Created 4 years, 1 month 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/accessibility/ax_enums.idl ('k') | ui/accessibility/platform/ax_platform_node_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/platform/ax_platform_node_delegate.h
diff --git a/ui/accessibility/platform/ax_platform_node_delegate.h b/ui/accessibility/platform/ax_platform_node_delegate.h
index 8569e7ff52d493855f96ecc696b6ccf56cb0d752..f727fd00cc72d5d6aaf1968f4936246a4259b009 100644
--- a/ui/accessibility/platform/ax_platform_node_delegate.h
+++ b/ui/accessibility/platform/ax_platform_node_delegate.h
@@ -12,6 +12,7 @@
namespace ui {
+struct AXActionData;
struct AXNodeData;
class AXPlatformNode;
@@ -80,23 +81,13 @@ class AX_EXPORT AXPlatformNodeDelegate {
// Actions.
//
+ // Calls one of the methods below to perform an accessibility action,
+ // switching on the ui::AXAction provided in |data|.
+ virtual bool AccessibilityPerformAction(const ui::AXActionData& data) = 0;
+
// Perform the default action, e.g. click a button, follow a link, or
// toggle a checkbox.
virtual void DoDefaultAction() = 0;
-
- // Change the value of a control, such as the text content of a text field.
- // If |clear_first| is true, this replaces all text with the |new_value|.
- // Otherwise this inserts |new_value| at the cursor position, replacing any
- // selected text. The cursor is placed at the end of |new_value|.
- virtual bool SetStringValue(const base::string16& new_value,
- bool clear_first) = 0;
-
- // Whether SetStringValue() is callable, i.e. if the string value is not read
- // only and if the callback exists.
- virtual bool CanSetStringValue() = 0;
-
- // Focus or unfocus a View, checking if the View is focusable first.
- virtual bool SetFocused(bool focused) = 0;
};
} // namespace ui
« no previous file with comments | « ui/accessibility/ax_enums.idl ('k') | ui/accessibility/platform/ax_platform_node_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698