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

Side by Side Diff: ui/accessibility/platform/ax_platform_node_delegate.h

Issue 2141013004: Mac a11y: Add Help, TopLevelUIElement, and Window accessibility attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use AX_ATTR_DESCRIPTION instead of adding AX_ATTR_HELP_TEXT, remove use of AX_ATTR_DESCRIPTION from… 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 unified diff | Download patch
« no previous file with comments | « ui/accessibility/ax_view_state.h ('k') | ui/accessibility/platform/ax_platform_node_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ 5 #ifndef UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_
6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ 6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_
7 7
8 #include "ui/accessibility/ax_enums.h" 8 #include "ui/accessibility/ax_enums.h"
9 #include "ui/accessibility/ax_export.h" 9 #include "ui/accessibility/ax_export.h"
10 #include "ui/gfx/geometry/vector2d.h" 10 #include "ui/gfx/geometry/vector2d.h"
(...skipping 17 matching lines...) Expand all
28 // native accessible if necessary, and AXPlatformNode::GetNativeViewAccessible 28 // native accessible if necessary, and AXPlatformNode::GetNativeViewAccessible
29 // otherwise. 29 // otherwise.
30 class AX_EXPORT AXPlatformNodeDelegate { 30 class AX_EXPORT AXPlatformNodeDelegate {
31 public: 31 public:
32 // Get the accessibility data that should be exposed for this node. 32 // Get the accessibility data that should be exposed for this node.
33 // Virtually all of the information is obtained from this structure 33 // Virtually all of the information is obtained from this structure
34 // (role, state, name, cursor position, etc.) - the rest of this interface 34 // (role, state, name, cursor position, etc.) - the rest of this interface
35 // is mostly to implement support for walking the accessibility tree. 35 // is mostly to implement support for walking the accessibility tree.
36 virtual const AXNodeData& GetData() = 0; 36 virtual const AXNodeData& GetData() = 0;
37 37
38 // Get the window the node is contained in.
39 virtual gfx::NativeWindow GetTopLevelWidget() = 0;
40
38 // Get the parent of the node, which may be an AXPlatformNode or it may 41 // Get the parent of the node, which may be an AXPlatformNode or it may
39 // be a native accessible object implemented by another class. 42 // be a native accessible object implemented by another class.
40 virtual gfx::NativeViewAccessible GetParent() = 0; 43 virtual gfx::NativeViewAccessible GetParent() = 0;
41 44
42 // Get the number of children of this node. 45 // Get the number of children of this node.
43 virtual int GetChildCount() = 0; 46 virtual int GetChildCount() = 0;
44 47
45 // Get the child of a node given a 0-based index. 48 // Get the child of a node given a 0-based index.
46 virtual gfx::NativeViewAccessible ChildAtIndex(int index) = 0; 49 virtual gfx::NativeViewAccessible ChildAtIndex(int index) = 0;
47 50
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // toggle a checkbox. 84 // toggle a checkbox.
82 virtual void DoDefaultAction() = 0; 85 virtual void DoDefaultAction() = 0;
83 86
84 // Change the value of a control, such as the text content of a text field. 87 // Change the value of a control, such as the text content of a text field.
85 virtual bool SetStringValue(const base::string16& new_value) = 0; 88 virtual bool SetStringValue(const base::string16& new_value) = 0;
86 }; 89 };
87 90
88 } // namespace ui 91 } // namespace ui
89 92
90 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ 93 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/accessibility/ax_view_state.h ('k') | ui/accessibility/platform/ax_platform_node_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698