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

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

Issue 2788523002: Finish all string attributes for Accessibility Object Model Phase 1. (Closed)
Patch Set: Rebase Created 3 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 // 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 "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "wtf/HashMap.h" 10 #include "wtf/HashMap.h"
11 #include "wtf/text/AtomicString.h" 11 #include "wtf/text/AtomicString.h"
12 #include "wtf/text/AtomicStringHash.h" 12 #include "wtf/text/AtomicStringHash.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class Element; 16 class Element;
17 17
18 // All of the properties of AccessibleNode that have type "string". 18 // All of the properties of AccessibleNode that have type "string".
19 // TODO(dmazzoni): Add similar enums for all of the properties with 19 // TODO(dmazzoni): Add similar enums for all of the properties with
20 // type bool, float, reference, and reference list. 20 // type bool, float, reference, and reference list.
21 enum class AOMStringProperty { kRole, kLabel }; 21 enum class AOMStringProperty {
22 kAutocomplete,
23 kChecked,
24 kCurrent,
25 kInvalid,
26 kKeyShortcuts,
27 kLabel,
28 kLive,
29 kOrientation,
30 kPlaceholder,
31 kRelevant,
32 kRole,
33 kRoleDescription,
34 kSort,
35 kValueText
36 };
22 37
23 // Accessibility Object Model node 38 // Accessibility Object Model node
24 // Explainer: https://github.com/WICG/aom/blob/master/explainer.md 39 // Explainer: https://github.com/WICG/aom/blob/master/explainer.md
25 // Spec: https://wicg.github.io/aom/spec/ 40 // Spec: https://wicg.github.io/aom/spec/
26 class CORE_EXPORT AccessibleNode 41 class CORE_EXPORT AccessibleNode
27 : public GarbageCollectedFinalized<AccessibleNode>, 42 : public GarbageCollectedFinalized<AccessibleNode>,
28 public ScriptWrappable { 43 public ScriptWrappable {
29 DEFINE_WRAPPERTYPEINFO(); 44 DEFINE_WRAPPERTYPEINFO();
30 45
31 public: 46 public:
(...skipping 17 matching lines...) Expand all
49 64
50 Vector<std::pair<AOMStringProperty, AtomicString>> m_stringProperties; 65 Vector<std::pair<AOMStringProperty, AtomicString>> m_stringProperties;
51 66
52 // This object's owner Element. 67 // This object's owner Element.
53 Member<Element> m_element; 68 Member<Element> m_element;
54 }; 69 };
55 70
56 } // namespace blink 71 } // namespace blink
57 72
58 #endif // AccessibleNode_h 73 #endif // AccessibleNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698