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

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

Issue 1809573003: Fix support for accessible action verbs and performing the default action. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix two tests Created 4 years, 9 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 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 virtual AXObject* nextOnLine() const { return nullptr; } 720 virtual AXObject* nextOnLine() const { return nullptr; }
721 virtual AXObject* previousOnLine() const { return nullptr; } 721 virtual AXObject* previousOnLine() const { return nullptr; }
722 722
723 // For an inline text box. 723 // For an inline text box.
724 // The integer horizontal pixel offset of each character in the string; nega tive values for RTL. 724 // The integer horizontal pixel offset of each character in the string; nega tive values for RTL.
725 virtual void textCharacterOffsets(Vector<int>&) const { } 725 virtual void textCharacterOffsets(Vector<int>&) const { }
726 // The start and end character offset of each word in the inline text box. 726 // The start and end character offset of each word in the inline text box.
727 virtual void wordBoundaries(Vector<AXRange>& words) const { } 727 virtual void wordBoundaries(Vector<AXRange>& words) const { }
728 728
729 // Properties of interactive elements. 729 // Properties of interactive elements.
730 virtual String actionVerb() const; 730 String actionVerb() const;
731 virtual AccessibilityButtonState checkboxOrRadioValue() const; 731 virtual AccessibilityButtonState checkboxOrRadioValue() const;
732 virtual InvalidState getInvalidState() const { return InvalidStateUndefined; } 732 virtual InvalidState getInvalidState() const { return InvalidStateUndefined; }
733 // Only used when invalidState() returns InvalidStateOther. 733 // Only used when invalidState() returns InvalidStateOther.
734 virtual String ariaInvalidValue() const { return String(); } 734 virtual String ariaInvalidValue() const { return String(); }
735 virtual String valueDescription() const { return String(); } 735 virtual String valueDescription() const { return String(); }
736 virtual float valueForRange() const { return 0.0f; } 736 virtual float valueForRange() const { return 0.0f; }
737 virtual float maxValueForRange() const { return 0.0f; } 737 virtual float maxValueForRange() const { return 0.0f; }
738 virtual float minValueForRange() const { return 0.0f; } 738 virtual float minValueForRange() const { return 0.0f; }
739 virtual String stringValue() const { return String(); } 739 virtual String stringValue() const { return String(); }
740 740
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
949 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 949 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
950 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) 950 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate)
951 951
952 } // namespace blink 952 } // namespace blink
953 953
954 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::IgnoredReason); 954 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::IgnoredReason);
955 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::NameSource); 955 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::NameSource);
956 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::DescriptionSource); 956 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::DescriptionSource);
957 957
958 #endif // AXObject_h 958 #endif // AXObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698