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

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

Issue 2863703003: A11y: Rename AXSupportedAction to AXDefaultActionVerb. (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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 kAccessibilityOrientationVertical, 243 kAccessibilityOrientationVertical,
244 kAccessibilityOrientationHorizontal, 244 kAccessibilityOrientationHorizontal,
245 }; 245 };
246 246
247 enum AXObjectInclusion { 247 enum AXObjectInclusion {
248 kIncludeObject, 248 kIncludeObject,
249 kIgnoreObject, 249 kIgnoreObject,
250 kDefaultBehavior, 250 kDefaultBehavior,
251 }; 251 };
252 252
253 enum class AXSupportedAction { 253 enum class AXDefaultActionVerb {
254 kNone = 0, 254 kNone = 0,
255 kActivate, 255 kActivate,
256 kCheck, 256 kCheck,
257 kClick, 257 kClick,
258 kJump, 258 kJump,
259 kOpen, 259 kOpen,
260 kPress, 260 kPress,
261 kSelect, 261 kSelect,
262 kUncheck 262 kUncheck
263 }; 263 };
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 virtual void Markers(Vector<DocumentMarker::MarkerType>&, 851 virtual void Markers(Vector<DocumentMarker::MarkerType>&,
852 Vector<AXRange>&) const {} 852 Vector<AXRange>&) const {}
853 // For an inline text box. 853 // For an inline text box.
854 // The integer horizontal pixel offset of each character in the string; 854 // The integer horizontal pixel offset of each character in the string;
855 // negative values for RTL. 855 // negative values for RTL.
856 virtual void TextCharacterOffsets(Vector<int>&) const {} 856 virtual void TextCharacterOffsets(Vector<int>&) const {}
857 // The start and end character offset of each word in the object's text. 857 // The start and end character offset of each word in the object's text.
858 virtual void GetWordBoundaries(Vector<AXRange>&) const {} 858 virtual void GetWordBoundaries(Vector<AXRange>&) const {}
859 859
860 // Properties of interactive elements. 860 // Properties of interactive elements.
861 AXSupportedAction Action() const; 861 AXDefaultActionVerb Action() const;
862 AccessibilityButtonState CheckedState() const; 862 AccessibilityButtonState CheckedState() const;
863 virtual AriaCurrentState GetAriaCurrentState() const { 863 virtual AriaCurrentState GetAriaCurrentState() const {
864 return kAriaCurrentStateUndefined; 864 return kAriaCurrentStateUndefined;
865 } 865 }
866 virtual InvalidState GetInvalidState() const { 866 virtual InvalidState GetInvalidState() const {
867 return kInvalidStateUndefined; 867 return kInvalidStateUndefined;
868 } 868 }
869 // Only used when invalidState() returns InvalidStateOther. 869 // Only used when invalidState() returns InvalidStateOther.
870 virtual String AriaInvalidValue() const { return String(); } 870 virtual String AriaInvalidValue() const { return String(); }
871 virtual String ValueDescription() const { return String(); } 871 virtual String ValueDescription() const { return String(); }
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 static unsigned number_of_live_ax_objects_; 1128 static unsigned number_of_live_ax_objects_;
1129 }; 1129 };
1130 1130
1131 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 1131 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
1132 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \ 1132 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \
1133 object.predicate) 1133 object.predicate)
1134 1134
1135 } // namespace blink 1135 } // namespace blink
1136 1136
1137 #endif // AXObject_h 1137 #endif // AXObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698