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

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

Issue 2973973002: Implement AccessibleNode.hasPopUp for Accessibility Object Model phase 1 (Closed)
Patch Set: Fix handling of aria-haspopup=false Created 3 years, 5 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"
11 #include "platform/wtf/HashMap.h" 11 #include "platform/wtf/HashMap.h"
12 #include "platform/wtf/HashSet.h" 12 #include "platform/wtf/HashSet.h"
13 #include "platform/wtf/text/AtomicString.h" 13 #include "platform/wtf/text/AtomicString.h"
14 #include "platform/wtf/text/AtomicStringHash.h" 14 #include "platform/wtf/text/AtomicStringHash.h"
15 15
16 namespace blink { 16 namespace blink {
17 17
18 class AccessibleNodeList; 18 class AccessibleNodeList;
19 class AXObjectCache; 19 class AXObjectCache;
20 class Element; 20 class Element;
21 class QualifiedName; 21 class QualifiedName;
22 22
23 // All of the properties of AccessibleNode that have type "string". 23 // All of the properties of AccessibleNode that have type "string".
24 enum class AOMStringProperty { 24 enum class AOMStringProperty {
25 kAutocomplete, 25 kAutocomplete,
26 kChecked, 26 kChecked,
27 kCurrent, 27 kCurrent,
28 kHasPopUp,
28 kInvalid, 29 kInvalid,
29 kKeyShortcuts, 30 kKeyShortcuts,
30 kLabel, 31 kLabel,
31 kLive, 32 kLive,
32 kOrientation, 33 kOrientation,
33 kPlaceholder, 34 kPlaceholder,
34 kPressed, 35 kPressed,
35 kRelevant, 36 kRelevant,
36 kRole, 37 kRole,
37 kRoleDescription, 38 kRoleDescription,
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 222
222 AccessibleNode* errorMessage() const; 223 AccessibleNode* errorMessage() const;
223 void setErrorMessage(AccessibleNode*); 224 void setErrorMessage(AccessibleNode*);
224 225
225 bool expanded(bool& is_null) const; 226 bool expanded(bool& is_null) const;
226 void setExpanded(bool, bool is_null); 227 void setExpanded(bool, bool is_null);
227 228
228 AccessibleNodeList* flowTo() const; 229 AccessibleNodeList* flowTo() const;
229 void setFlowTo(AccessibleNodeList*); 230 void setFlowTo(AccessibleNodeList*);
230 231
232 AtomicString hasPopUp() const;
233 void setHasPopUp(const AtomicString&);
234
231 bool hidden(bool& is_null) const; 235 bool hidden(bool& is_null) const;
232 void setHidden(bool, bool is_null); 236 void setHidden(bool, bool is_null);
233 237
234 AtomicString invalid() const; 238 AtomicString invalid() const;
235 void setInvalid(const AtomicString&); 239 void setInvalid(const AtomicString&);
236 240
237 AtomicString keyShortcuts() const; 241 AtomicString keyShortcuts() const;
238 void setKeyShortcuts(const AtomicString&); 242 void setKeyShortcuts(const AtomicString&);
239 243
240 AtomicString label() const; 244 AtomicString label() const;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 HeapVector<std::pair<AOMRelationListProperty, Member<AccessibleNodeList>>> 349 HeapVector<std::pair<AOMRelationListProperty, Member<AccessibleNodeList>>>
346 relation_list_properties_; 350 relation_list_properties_;
347 351
348 // This object's owner Element. 352 // This object's owner Element.
349 Member<Element> element_; 353 Member<Element> element_;
350 }; 354 };
351 355
352 } // namespace blink 356 } // namespace blink
353 357
354 #endif // AccessibleNode_h 358 #endif // AccessibleNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698