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

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: Single quote 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 class IntPoint; 51 class IntPoint;
52 class Node; 52 class Node;
53 class LayoutObject; 53 class LayoutObject;
54 class ScrollableArea; 54 class ScrollableArea;
55 55
56 enum class AOMStringProperty; 56 enum class AOMStringProperty;
57 57
58 typedef unsigned AXID; 58 typedef unsigned AXID;
59 59
60 enum AccessibilityRole { 60 enum AccessibilityRole {
61 kUnknownRole = 0, 61 kUnknownRole = 0, // Not mapped in platform APIs, generally indicates a bug
62 kAbbrRole, // No mapping to ARIA role. 62 kAbbrRole, // No mapping to ARIA role.
63 kAlertDialogRole, 63 kAlertDialogRole,
64 kAlertRole, 64 kAlertRole,
65 kAnchorRole, // No mapping to ARIA role. 65 kAnchorRole, // No mapping to ARIA role.
66 kAnnotationRole, // No mapping to ARIA role. 66 kAnnotationRole, // No mapping to ARIA role.
67 kApplicationRole, 67 kApplicationRole,
68 kArticleRole, 68 kArticleRole,
69 kAudioRole, // No mapping to ARIA role. 69 kAudioRole, // No mapping to ARIA role.
70 kBannerRole, 70 kBannerRole,
71 kBlockquoteRole, // No mapping to ARIA role. 71 kBlockquoteRole, // No mapping to ARIA role.
72 kBusyIndicatorRole, // No mapping to ARIA role. 72 kBusyIndicatorRole, // No mapping to ARIA role.
(...skipping 11 matching lines...) Expand all
84 kDateRole, // No mapping to ARIA role. 84 kDateRole, // No mapping to ARIA role.
85 kDateTimeRole, // No mapping to ARIA role. 85 kDateTimeRole, // No mapping to ARIA role.
86 kDefinitionRole, 86 kDefinitionRole,
87 kDescriptionListDetailRole, // No mapping to ARIA role. 87 kDescriptionListDetailRole, // No mapping to ARIA role.
88 kDescriptionListRole, // No mapping to ARIA role. 88 kDescriptionListRole, // No mapping to ARIA role.
89 kDescriptionListTermRole, // No mapping to ARIA role. 89 kDescriptionListTermRole, // No mapping to ARIA role.
90 kDetailsRole, // No mapping to ARIA role. 90 kDetailsRole, // No mapping to ARIA role.
91 kDialogRole, 91 kDialogRole,
92 kDirectoryRole, 92 kDirectoryRole,
93 kDisclosureTriangleRole, // No mapping to ARIA role. 93 kDisclosureTriangleRole, // No mapping to ARIA role.
94 kDivRole, // No mapping to ARIA role.
95 kDocumentRole, 94 kDocumentRole,
96 kEmbeddedObjectRole, // No mapping to ARIA role. 95 kEmbeddedObjectRole, // No mapping to ARIA role.
97 kFeedRole, 96 kFeedRole,
98 kFigcaptionRole, // No mapping to ARIA role. 97 kFigcaptionRole, // No mapping to ARIA role.
99 kFigureRole, 98 kFigureRole,
100 kFooterRole, 99 kFooterRole,
101 kFormRole, 100 kFormRole,
101 kGenericContainerRole, // No role was defined for this container
102 kGridRole, 102 kGridRole,
103 kGroupRole, 103 kGroupRole,
104 kHeadingRole, 104 kHeadingRole,
105 kIframePresentationalRole, // No mapping to ARIA role. 105 kIframePresentationalRole, // No mapping to ARIA role.
106 kIframeRole, // No mapping to ARIA role. 106 kIframeRole, // No mapping to ARIA role.
107 kIgnoredRole, // No mapping to ARIA role. 107 kIgnoredRole, // No mapping to ARIA role.
108 kImageMapLinkRole, // No mapping to ARIA role. 108 kImageMapLinkRole, // No mapping to ARIA role.
109 kImageMapRole, // No mapping to ARIA role. 109 kImageMapRole, // No mapping to ARIA role.
110 kImageRole, 110 kImageRole,
111 kInlineTextBoxRole, // No mapping to ARIA role. 111 kInlineTextBoxRole, // No mapping to ARIA role.
(...skipping 15 matching lines...) Expand all
127 kMenuBarRole, 127 kMenuBarRole,
128 kMenuButtonRole, 128 kMenuButtonRole,
129 kMenuItemRole, 129 kMenuItemRole,
130 kMenuItemCheckBoxRole, 130 kMenuItemCheckBoxRole,
131 kMenuItemRadioRole, 131 kMenuItemRadioRole,
132 kMenuListOptionRole, 132 kMenuListOptionRole,
133 kMenuListPopupRole, 133 kMenuListPopupRole,
134 kMenuRole, 134 kMenuRole,
135 kMeterRole, 135 kMeterRole,
136 kNavigationRole, 136 kNavigationRole,
137 kNoneRole, // No mapping to ARIA role. 137 kNoneRole, // ARIA role of "none"
138 kNoteRole, 138 kNoteRole,
139 kOutlineRole, // No mapping to ARIA role. 139 kOutlineRole, // No mapping to ARIA role.
140 kParagraphRole, // No mapping to ARIA role. 140 kParagraphRole, // No mapping to ARIA role.
141 kPopUpButtonRole, 141 kPopUpButtonRole,
142 kPreRole, // No mapping to ARIA role. 142 kPreRole, // No mapping to ARIA role.
143 kPresentationalRole, 143 kPresentationalRole,
144 kProgressIndicatorRole, 144 kProgressIndicatorRole,
145 kRadioButtonRole, 145 kRadioButtonRole,
146 kRadioGroupRole, 146 kRadioGroupRole,
147 kRegionRole, 147 kRegionRole,
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
1088 const QualifiedName&) const; 1088 const QualifiedName&) const;
1089 void AriaLabelledbyElementVector(HeapVector<Member<Element>>& elements) const; 1089 void AriaLabelledbyElementVector(HeapVector<Member<Element>>& elements) const;
1090 String TextFromAriaLabelledby(AXObjectSet& visited, 1090 String TextFromAriaLabelledby(AXObjectSet& visited,
1091 AXRelatedObjectVector* related_objects) const; 1091 AXRelatedObjectVector* related_objects) const;
1092 String TextFromAriaDescribedby(AXRelatedObjectVector* related_objects) const; 1092 String TextFromAriaDescribedby(AXRelatedObjectVector* related_objects) const;
1093 1093
1094 virtual const AXObjectImpl* InheritsPresentationalRoleFrom() const { 1094 virtual const AXObjectImpl* InheritsPresentationalRoleFrom() const {
1095 return 0; 1095 return 0;
1096 } 1096 }
1097 1097
1098 virtual bool NameFromContents() const; 1098 bool CanReceiveAccessibilityFocus() const;
1099 virtual bool NameFromContents(const bool recursive) const;
1099 1100
1100 AccessibilityRole ButtonRoleType() const; 1101 AccessibilityRole ButtonRoleType() const;
1101 1102
1102 virtual LayoutObject* LayoutObjectForRelativeBounds() const { 1103 virtual LayoutObject* LayoutObjectForRelativeBounds() const {
1103 return nullptr; 1104 return nullptr;
1104 } 1105 }
1105 1106
1106 mutable Member<AXObjectImpl> parent_; 1107 mutable Member<AXObjectImpl> parent_;
1107 1108
1108 // The following cached attribute values (the ones starting with m_cached*) 1109 // The following cached attribute values (the ones starting with m_cached*)
(...skipping 25 matching lines...) Expand all
1134 static unsigned number_of_live_ax_objects_; 1135 static unsigned number_of_live_ax_objects_;
1135 }; 1136 };
1136 1137
1137 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 1138 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
1138 DEFINE_TYPE_CASTS(thisType, AXObjectImpl, object, object->predicate, \ 1139 DEFINE_TYPE_CASTS(thisType, AXObjectImpl, object, object->predicate, \
1139 object.predicate) 1140 object.predicate)
1140 1141
1141 } // namespace blink 1142 } // namespace blink
1142 1143
1143 #endif // AXObjectImpl_h 1144 #endif // AXObjectImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698