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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXObject.h

Issue 1952863003: Implemented the "aria-current" state on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed switch statements to handle NONE case. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/accessibility/AXObject.h
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObject.h b/third_party/WebKit/Source/modules/accessibility/AXObject.h
index 6cc68f4bfc659ef37331554fcbf18e82c7a6385a..0192e0547568f595b40fe96fe146cd1e3faeee78 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObject.h
+++ b/third_party/WebKit/Source/modules/accessibility/AXObject.h
@@ -277,6 +277,17 @@ enum AccessibilityOptionalBool {
OptionalBoolFalse
};
+enum AriaCurrentState {
+ AriaCurrentStateUndefined = 0,
+ AriaCurrentStateFalse,
+ AriaCurrentStateTrue,
+ AriaCurrentStatePage,
+ AriaCurrentStateStep,
+ AriaCurrentStateLocation,
+ AriaCurrentStateDate,
+ AriaCurrentStateTime
+};
+
enum InvalidState {
InvalidStateUndefined = 0,
InvalidStateFalse,
@@ -734,6 +745,7 @@ public:
// Properties of interactive elements.
String actionVerb() const;
virtual AccessibilityButtonState checkboxOrRadioValue() const;
+ virtual AriaCurrentState ariaCurrentState() const { return AriaCurrentStateUndefined; }
virtual InvalidState getInvalidState() const { return InvalidStateUndefined; }
// Only used when invalidState() returns InvalidStateOther.
virtual String ariaInvalidValue() const { return String(); }

Powered by Google App Engine
This is Rietveld 408576698