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

Side by Side Diff: third_party/WebKit/Source/core/dom/AccessibleNode.h

Issue 2957973003: Automatically fire AX events on Win based on tree changes (Closed)
Patch Set: Audit all events, manually test with JAWS and NVDA Created 3 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 AccessibleNode_h 5 #ifndef AccessibleNode_h
6 #define AccessibleNode_h 6 #define AccessibleNode_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/dom/QualifiedName.h" 9 #include "core/dom/QualifiedName.h"
10 #include "platform/bindings/ScriptWrappable.h" 10 #include "platform/bindings/ScriptWrappable.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 static bool IsUndefinedAttrValue(const AtomicString&); 145 static bool IsUndefinedAttrValue(const AtomicString&);
146 146
147 // Returns the value of the given string property if the 147 // Returns the value of the given string property if the
148 // Element has an AccessibleNode, otherwise returns the equivalent 148 // Element has an AccessibleNode, otherwise returns the equivalent
149 // ARIA attribute. 149 // ARIA attribute.
150 static const AtomicString& GetPropertyOrARIAAttribute(Element*, 150 static const AtomicString& GetPropertyOrARIAAttribute(Element*,
151 AOMStringProperty); 151 AOMStringProperty);
152 152
153 // Returns the given relation property if the Element has an AccessibleNode, 153 // Returns the given relation property if the Element has an AccessibleNode,
154 // otherwise returns the equivalent ARIA attribute. 154 // otherwise returns the equivalent ARIA attribute.
155 static AccessibleNode* GetPropertyOrARIAAttribute(Element*, 155 static Element* GetPropertyOrARIAAttribute(Element*, AOMRelationProperty);
156 AOMRelationProperty);
157 156
158 // Returns true and provides the the value of the given relation 157 // Returns true and provides the the value of the given relation
159 // list property if the Element has an AccessibleNode, or if it has 158 // list property if the Element has an AccessibleNode, or if it has
160 // the equivalent ARIA attribute. Otherwise returns false. 159 // the equivalent ARIA attribute. Otherwise returns false.
161 static bool GetPropertyOrARIAAttribute(Element*, 160 static bool GetPropertyOrARIAAttribute(Element*,
162 AOMRelationListProperty, 161 AOMRelationListProperty,
163 HeapVector<Member<Element>>&); 162 HeapVector<Member<Element>>&);
164 163
165 // Returns the value of the given property if the 164 // Returns the value of the given property if the
166 // Element has an AccessibleNode, otherwise returns the equivalent 165 // Element has an AccessibleNode, otherwise returns the equivalent
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 HeapVector<std::pair<AOMRelationListProperty, Member<AccessibleNodeList>>> 356 HeapVector<std::pair<AOMRelationListProperty, Member<AccessibleNodeList>>>
358 relation_list_properties_; 357 relation_list_properties_;
359 358
360 // This object's owner Element. 359 // This object's owner Element.
361 Member<Element> element_; 360 Member<Element> element_;
362 }; 361 };
363 362
364 } // namespace blink 363 } // namespace blink
365 364
366 #endif // AccessibleNode_h 365 #endif // AccessibleNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698