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

Unified Diff: ui/views/view.h

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (Closed)
Patch Set: Fix test 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/views/controls/webview/webview.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index 572d3a55f0487c33d11ef164b203bcb513cce133..050548f0120ac7c90a3e5630966e5177208db8cf 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -53,7 +53,8 @@ class Transform;
}
namespace ui {
-struct AXViewState;
+struct AXActionData;
+struct AXNodeData;
class Compositor;
class InputMethod;
class Layer;
@@ -945,8 +946,15 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// Accessibility -------------------------------------------------------------
- // Modifies |state| to reflect the current accessible state of this view.
- virtual void GetAccessibleState(ui::AXViewState* state) { }
+ // Modifies |node_data| to reflect the current accessible state of this view.
+ virtual void GetAccessibleNodeData(ui::AXNodeData* node_data) {}
+
+ // Handle a request from assistive technology to perform an action on this
+ // view. Returns true on success, but note that the success/failure is
+ // not propagated to the client that requested the action, since the
+ // request is sometimes asynchronous. The right way to send a response is
+ // via NotifyAccessibilityEvent(), below.
+ virtual bool HandleAccessibleAction(const ui::AXActionData& action_data);
// Returns an instance of the native accessibility interface for this view.
virtual gfx::NativeViewAccessible GetNativeViewAccessible();
« no previous file with comments | « ui/views/controls/webview/webview.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698