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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 explicit AXObjectCacheImpl(Document&); | 61 explicit AXObjectCacheImpl(Document&); |
62 ~AXObjectCacheImpl(); | 62 ~AXObjectCacheImpl(); |
63 | 63 |
64 AXObject* focusedUIElementForPage(const Page*); | 64 AXObject* focusedUIElementForPage(const Page*); |
65 | 65 |
66 virtual void selectionChanged(Node*) override; | 66 virtual void selectionChanged(Node*) override; |
67 virtual void childrenChanged(Node*) override; | 67 virtual void childrenChanged(Node*) override; |
68 virtual void childrenChanged(LayoutObject*) override; | 68 virtual void childrenChanged(LayoutObject*) override; |
69 virtual void checkedStateChanged(Node*) override; | 69 virtual void checkedStateChanged(Node*) override; |
70 virtual void selectedChildrenChanged(Node*) override; | 70 virtual void listboxOptionStateChanged(HTMLOptionElement*); |
| 71 virtual void listboxSelectedChildrenChanged(HTMLSelectElement*); |
| 72 virtual void listboxActiveIndexChanged(HTMLSelectElement*); |
71 | 73 |
72 virtual void remove(LayoutObject*) override; | 74 virtual void remove(LayoutObject*) override; |
73 virtual void remove(Node*) override; | 75 virtual void remove(Node*) override; |
74 virtual void remove(Widget*) override; | 76 virtual void remove(Widget*) override; |
75 | 77 |
76 virtual const Element* rootAXEditableElement(const Node*) override; | 78 virtual const Element* rootAXEditableElement(const Node*) override; |
77 | 79 |
78 // Called by a node when text or a text equivalent (e.g. alt) attribute is c
hanged. | 80 // Called by a node when text or a text equivalent (e.g. alt) attribute is c
hanged. |
79 virtual void textChanged(LayoutObject*) override; | 81 virtual void textChanged(LayoutObject*) override; |
80 // Called when a node has just been attached, so we can make sure we have th
e right subclass of AXObject. | 82 // Called when a node has just been attached, so we can make sure we have th
e right subclass of AXObject. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 AXObject* get(LayoutObject*); | 130 AXObject* get(LayoutObject*); |
129 AXObject* get(Widget*); | 131 AXObject* get(Widget*); |
130 AXObject* get(AbstractInlineTextBox*); | 132 AXObject* get(AbstractInlineTextBox*); |
131 | 133 |
132 AXObject* firstAccessibleObjectFromNode(const Node*); | 134 AXObject* firstAccessibleObjectFromNode(const Node*); |
133 | 135 |
134 void remove(AXID); | 136 void remove(AXID); |
135 void remove(AbstractInlineTextBox*); | 137 void remove(AbstractInlineTextBox*); |
136 | 138 |
137 void childrenChanged(AXObject*); | 139 void childrenChanged(AXObject*); |
138 void selectedChildrenChanged(LayoutObject*); | |
139 void selectedChildrenChanged(AXObject*); | |
140 | 140 |
141 void handleActiveDescendantChanged(Node*); | 141 void handleActiveDescendantChanged(Node*); |
142 void handleAriaRoleChanged(Node*); | 142 void handleAriaRoleChanged(Node*); |
143 void handleAriaExpandedChange(Node*); | 143 void handleAriaExpandedChange(Node*); |
| 144 void handleAriaSelectedChanged(Node*); |
144 | 145 |
145 void recomputeIsIgnored(LayoutObject*); | 146 void recomputeIsIgnored(LayoutObject*); |
146 | 147 |
147 bool accessibilityEnabled(); | 148 bool accessibilityEnabled(); |
148 bool inlineTextBoxAccessibilityEnabled(); | 149 bool inlineTextBoxAccessibilityEnabled(); |
149 | 150 |
150 void removeAXID(AXObject*); | 151 void removeAXID(AXObject*); |
151 bool isIDinUse(AXID id) const { return m_idsInUse.contains(id); } | 152 bool isIDinUse(AXID id) const { return m_idsInUse.contains(id); } |
152 | 153 |
153 AXID platformGenerateAXID() const; | 154 AXID platformGenerateAXID() const; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 // This is the only subclass of AXObjectCache. | 204 // This is the only subclass of AXObjectCache. |
204 DEFINE_TYPE_CASTS(AXObjectCacheImpl, AXObjectCache, cache, true, true); | 205 DEFINE_TYPE_CASTS(AXObjectCacheImpl, AXObjectCache, cache, true, true); |
205 | 206 |
206 bool nodeHasRole(Node*, const String& role); | 207 bool nodeHasRole(Node*, const String& role); |
207 // This will let you know if aria-hidden was explicitly set to false. | 208 // This will let you know if aria-hidden was explicitly set to false. |
208 bool isNodeAriaVisible(Node*); | 209 bool isNodeAriaVisible(Node*); |
209 | 210 |
210 } | 211 } |
211 | 212 |
212 #endif | 213 #endif |
OLD | NEW |