OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014, Google Inc. All rights reserved. | 2 * Copyright (C) 2014, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 AXObject* get(Widget*); | 127 AXObject* get(Widget*); |
128 AXObject* get(AbstractInlineTextBox*); | 128 AXObject* get(AbstractInlineTextBox*); |
129 | 129 |
130 AXObject* firstAccessibleObjectFromNode(const Node*); | 130 AXObject* firstAccessibleObjectFromNode(const Node*); |
131 | 131 |
132 void remove(AXID); | 132 void remove(AXID); |
133 void remove(AbstractInlineTextBox*); | 133 void remove(AbstractInlineTextBox*); |
134 | 134 |
135 void childrenChanged(AXObject*); | 135 void childrenChanged(AXObject*); |
136 void selectedChildrenChanged(LayoutObject*); | 136 void selectedChildrenChanged(LayoutObject*); |
| 137 void selectedChildrenChanged(AXObject*); |
137 | 138 |
138 void handleActiveDescendantChanged(Node*); | 139 void handleActiveDescendantChanged(Node*); |
139 void handleAriaRoleChanged(Node*); | 140 void handleAriaRoleChanged(Node*); |
140 void handleAriaExpandedChange(Node*); | 141 void handleAriaExpandedChange(Node*); |
141 | 142 |
142 void recomputeIsIgnored(LayoutObject*); | 143 void recomputeIsIgnored(LayoutObject*); |
143 | 144 |
144 bool accessibilityEnabled(); | 145 bool accessibilityEnabled(); |
145 bool inlineTextBoxAccessibilityEnabled(); | 146 bool inlineTextBoxAccessibilityEnabled(); |
146 | 147 |
147 void removeAXID(AXObject*); | 148 void removeAXID(AXObject*); |
148 bool isIDinUse(AXID id) const { return m_idsInUse.contains(id); } | 149 bool isIDinUse(AXID id) const { return m_idsInUse.contains(id); } |
149 | 150 |
150 AXID platformGenerateAXID() const; | 151 AXID platformGenerateAXID() const; |
151 | 152 |
152 // Counts the number of times the document has been modified. Some attribute
values are cached | 153 // Counts the number of times the document has been modified. Some attribute
values are cached |
153 // as long as the modification count hasn't changed. | 154 // as long as the modification count hasn't changed. |
154 int modificationCount() const { return m_modificationCount; } | 155 int modificationCount() const { return m_modificationCount; } |
155 | 156 |
156 void postNotification(LayoutObject*, AXNotification, bool postToElement); | 157 void postNotification(LayoutObject*, AXNotification); |
157 void postNotification(Node*, AXNotification, bool postToElement); | 158 void postNotification(Node*, AXNotification); |
158 void postNotification(AXObject*, AXNotification, bool postToElement); | 159 void postNotification(AXObject*, AXNotification); |
159 | 160 |
160 protected: | 161 protected: |
161 void postPlatformNotification(AXObject*, AXNotification); | 162 void postPlatformNotification(AXObject*, AXNotification); |
162 void textChanged(AXObject*); | 163 void textChanged(AXObject*); |
163 void labelChanged(Element*); | 164 void labelChanged(Element*); |
164 | 165 |
165 // This is a weak reference cache for knowing if Nodes used by TextMarkers a
re valid. | 166 // This is a weak reference cache for knowing if Nodes used by TextMarkers a
re valid. |
166 void setNodeInUse(Node* n) { m_textMarkerNodes.add(n); } | 167 void setNodeInUse(Node* n) { m_textMarkerNodes.add(n); } |
167 void removeNodeForUse(Node* n) { m_textMarkerNodes.remove(n); } | 168 void removeNodeForUse(Node* n) { m_textMarkerNodes.remove(n); } |
168 bool isNodeInUse(Node* n) { return m_textMarkerNodes.contains(n); } | 169 bool isNodeInUse(Node* n) { return m_textMarkerNodes.contains(n); } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // This is the only subclass of AXObjectCache. | 201 // This is the only subclass of AXObjectCache. |
201 DEFINE_TYPE_CASTS(AXObjectCacheImpl, AXObjectCache, cache, true, true); | 202 DEFINE_TYPE_CASTS(AXObjectCacheImpl, AXObjectCache, cache, true, true); |
202 | 203 |
203 bool nodeHasRole(Node*, const String& role); | 204 bool nodeHasRole(Node*, const String& role); |
204 // This will let you know if aria-hidden was explicitly set to false. | 205 // This will let you know if aria-hidden was explicitly set to false. |
205 bool isNodeAriaVisible(Node*); | 206 bool isNodeAriaVisible(Node*); |
206 | 207 |
207 } | 208 } |
208 | 209 |
209 #endif | 210 #endif |
OLD | NEW |