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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXObjectImpl.h

Issue 2867073003: Name calculation should not include nameFrom:author descendants. (Closed)
Patch Set: Rebase Created 3 years, 7 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) 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nuanti Ltd. 3 * Copyright (C) 2008 Nuanti Ltd.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 class IntPoint; 52 class IntPoint;
53 class Node; 53 class Node;
54 class LayoutObject; 54 class LayoutObject;
55 class ScrollableArea; 55 class ScrollableArea;
56 56
57 enum class AOMStringProperty; 57 enum class AOMStringProperty;
58 58
59 typedef unsigned AXID; 59 typedef unsigned AXID;
60 60
61 enum AccessibilityRole { 61 enum AccessibilityRole {
62 kUnknownRole = 0, 62 kUnknownRole = 0, // Not mapped in platform APIs, generally indicates a bug
63 kAbbrRole, // No mapping to ARIA role. 63 kAbbrRole, // No mapping to ARIA role.
64 kAlertDialogRole, 64 kAlertDialogRole,
65 kAlertRole, 65 kAlertRole,
66 kAnchorRole, // No mapping to ARIA role. 66 kAnchorRole, // No mapping to ARIA role.
67 kAnnotationRole, // No mapping to ARIA role. 67 kAnnotationRole, // No mapping to ARIA role.
68 kApplicationRole, 68 kApplicationRole,
69 kArticleRole, 69 kArticleRole,
70 kAudioRole, // No mapping to ARIA role. 70 kAudioRole, // No mapping to ARIA role.
71 kBannerRole, 71 kBannerRole,
72 kBlockquoteRole, // No mapping to ARIA role. 72 kBlockquoteRole, // No mapping to ARIA role.
73 kBusyIndicatorRole, // No mapping to ARIA role. 73 kBusyIndicatorRole, // No mapping to ARIA role.
(...skipping 11 matching lines...) Expand all
85 kDateRole, // No mapping to ARIA role. 85 kDateRole, // No mapping to ARIA role.
86 kDateTimeRole, // No mapping to ARIA role. 86 kDateTimeRole, // No mapping to ARIA role.
87 kDefinitionRole, 87 kDefinitionRole,
88 kDescriptionListDetailRole, // No mapping to ARIA role. 88 kDescriptionListDetailRole, // No mapping to ARIA role.
89 kDescriptionListRole, // No mapping to ARIA role. 89 kDescriptionListRole, // No mapping to ARIA role.
90 kDescriptionListTermRole, // No mapping to ARIA role. 90 kDescriptionListTermRole, // No mapping to ARIA role.
91 kDetailsRole, // No mapping to ARIA role. 91 kDetailsRole, // No mapping to ARIA role.
92 kDialogRole, 92 kDialogRole,
93 kDirectoryRole, 93 kDirectoryRole,
94 kDisclosureTriangleRole, // No mapping to ARIA role. 94 kDisclosureTriangleRole, // No mapping to ARIA role.
95 kDivRole, // No mapping to ARIA role.
96 kDocumentRole, 95 kDocumentRole,
97 kEmbeddedObjectRole, // No mapping to ARIA role. 96 kEmbeddedObjectRole, // No mapping to ARIA role.
98 kFeedRole, 97 kFeedRole,
99 kFigcaptionRole, // No mapping to ARIA role. 98 kFigcaptionRole, // No mapping to ARIA role.
100 kFigureRole, 99 kFigureRole,
101 kFooterRole, 100 kFooterRole,
102 kFormRole, 101 kFormRole,
102 kGenericContainerRole, // No role was defined for this container
103 kGridRole, 103 kGridRole,
104 kGroupRole, 104 kGroupRole,
105 kHeadingRole, 105 kHeadingRole,
106 kIframePresentationalRole, // No mapping to ARIA role. 106 kIframePresentationalRole, // No mapping to ARIA role.
107 kIframeRole, // No mapping to ARIA role. 107 kIframeRole, // No mapping to ARIA role.
108 kIgnoredRole, // No mapping to ARIA role. 108 kIgnoredRole, // No mapping to ARIA role.
109 kImageMapLinkRole, // No mapping to ARIA role. 109 kImageMapLinkRole, // No mapping to ARIA role.
110 kImageMapRole, // No mapping to ARIA role. 110 kImageMapRole, // No mapping to ARIA role.
111 kImageRole, 111 kImageRole,
112 kInlineTextBoxRole, // No mapping to ARIA role. 112 kInlineTextBoxRole, // No mapping to ARIA role.
(...skipping 15 matching lines...) Expand all
128 kMenuBarRole, 128 kMenuBarRole,
129 kMenuButtonRole, 129 kMenuButtonRole,
130 kMenuItemRole, 130 kMenuItemRole,
131 kMenuItemCheckBoxRole, 131 kMenuItemCheckBoxRole,
132 kMenuItemRadioRole, 132 kMenuItemRadioRole,
133 kMenuListOptionRole, 133 kMenuListOptionRole,
134 kMenuListPopupRole, 134 kMenuListPopupRole,
135 kMenuRole, 135 kMenuRole,
136 kMeterRole, 136 kMeterRole,
137 kNavigationRole, 137 kNavigationRole,
138 kNoneRole, // No mapping to ARIA role. 138 kNoneRole, // ARIA role of "none"
139 kNoteRole, 139 kNoteRole,
140 kOutlineRole, // No mapping to ARIA role. 140 kOutlineRole, // No mapping to ARIA role.
141 kParagraphRole, // No mapping to ARIA role. 141 kParagraphRole, // No mapping to ARIA role.
142 kPopUpButtonRole, 142 kPopUpButtonRole,
143 kPreRole, // No mapping to ARIA role. 143 kPreRole, // No mapping to ARIA role.
144 kPresentationalRole, 144 kPresentationalRole,
145 kProgressIndicatorRole, 145 kProgressIndicatorRole,
146 kRadioButtonRole, 146 kRadioButtonRole,
147 kRadioGroupRole, 147 kRadioGroupRole,
148 kRegionRole, 148 kRegionRole,
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 const QualifiedName&) const; 1090 const QualifiedName&) const;
1091 void AriaLabelledbyElementVector(HeapVector<Member<Element>>& elements) const; 1091 void AriaLabelledbyElementVector(HeapVector<Member<Element>>& elements) const;
1092 String TextFromAriaLabelledby(AXObjectSet& visited, 1092 String TextFromAriaLabelledby(AXObjectSet& visited,
1093 AXRelatedObjectVector* related_objects) const; 1093 AXRelatedObjectVector* related_objects) const;
1094 String TextFromAriaDescribedby(AXRelatedObjectVector* related_objects) const; 1094 String TextFromAriaDescribedby(AXRelatedObjectVector* related_objects) const;
1095 1095
1096 virtual const AXObjectImpl* InheritsPresentationalRoleFrom() const { 1096 virtual const AXObjectImpl* InheritsPresentationalRoleFrom() const {
1097 return 0; 1097 return 0;
1098 } 1098 }
1099 1099
1100 virtual bool NameFromContents() const; 1100 bool CanReceiveAccessibilityFocus() const;
1101 bool NameFromContents(bool recursive) const;
1101 1102
1102 AccessibilityRole ButtonRoleType() const; 1103 AccessibilityRole ButtonRoleType() const;
1103 1104
1104 virtual LayoutObject* LayoutObjectForRelativeBounds() const { 1105 virtual LayoutObject* LayoutObjectForRelativeBounds() const {
1105 return nullptr; 1106 return nullptr;
1106 } 1107 }
1107 1108
1108 mutable Member<AXObjectImpl> parent_; 1109 mutable Member<AXObjectImpl> parent_;
1109 1110
1110 // The following cached attribute values (the ones starting with m_cached*) 1111 // The following cached attribute values (the ones starting with m_cached*)
(...skipping 27 matching lines...) Expand all
1138 1139
1139 DEFINE_TYPE_CASTS(AXObjectImpl, AXObject, obj, true, true); 1140 DEFINE_TYPE_CASTS(AXObjectImpl, AXObject, obj, true, true);
1140 1141
1141 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 1142 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
1142 DEFINE_TYPE_CASTS(thisType, AXObjectImpl, object, object->predicate, \ 1143 DEFINE_TYPE_CASTS(thisType, AXObjectImpl, object, object->predicate, \
1143 object.predicate) 1144 object.predicate)
1144 1145
1145 } // namespace blink 1146 } // namespace blink
1146 1147
1147 #endif // AXObjectImpl_h 1148 #endif // AXObjectImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698