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

Side by Side Diff: Source/modules/accessibility/AXObjectCacheImpl.h

Issue 1034493005: Fire AX notifications on list box options. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@menu_list_more
Patch Set: Rebase Created 5 years, 8 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
OLDNEW
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
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 AXObject* get(LayoutObject*); 128 AXObject* get(LayoutObject*);
127 AXObject* get(Widget*); 129 AXObject* get(Widget*);
128 AXObject* get(AbstractInlineTextBox*); 130 AXObject* get(AbstractInlineTextBox*);
129 131
130 AXObject* firstAccessibleObjectFromNode(const Node*); 132 AXObject* firstAccessibleObjectFromNode(const Node*);
131 133
132 void remove(AXID); 134 void remove(AXID);
133 void remove(AbstractInlineTextBox*); 135 void remove(AbstractInlineTextBox*);
134 136
135 void childrenChanged(AXObject*); 137 void childrenChanged(AXObject*);
136 void selectedChildrenChanged(LayoutObject*);
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*);
142 void handleAriaSelectedChanged(Node*);
141 143
142 void recomputeIsIgnored(LayoutObject*); 144 void recomputeIsIgnored(LayoutObject*);
143 145
144 bool accessibilityEnabled(); 146 bool accessibilityEnabled();
145 bool inlineTextBoxAccessibilityEnabled(); 147 bool inlineTextBoxAccessibilityEnabled();
146 148
147 void removeAXID(AXObject*); 149 void removeAXID(AXObject*);
148 bool isIDinUse(AXID id) const { return m_idsInUse.contains(id); } 150 bool isIDinUse(AXID id) const { return m_idsInUse.contains(id); }
149 151
150 AXID platformGenerateAXID() const; 152 AXID platformGenerateAXID() const;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // This is the only subclass of AXObjectCache. 202 // This is the only subclass of AXObjectCache.
201 DEFINE_TYPE_CASTS(AXObjectCacheImpl, AXObjectCache, cache, true, true); 203 DEFINE_TYPE_CASTS(AXObjectCacheImpl, AXObjectCache, cache, true, true);
202 204
203 bool nodeHasRole(Node*, const String& role); 205 bool nodeHasRole(Node*, const String& role);
204 // This will let you know if aria-hidden was explicitly set to false. 206 // This will let you know if aria-hidden was explicitly set to false.
205 bool isNodeAriaVisible(Node*); 207 bool isNodeAriaVisible(Node*);
206 208
207 } 209 }
208 210
209 #endif 211 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698