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

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

Issue 2694903010: AX checked state changes (Closed)
Patch Set: Fix compiler error Created 3 years, 10 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 090f8f1b11988f0313a68ee8fbcc919c77f2b0c4..97b494735206a179877bd451f6abc8f392283f14 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObject.h
+++ b/third_party/WebKit/Source/modules/accessibility/AXObject.h
@@ -617,6 +617,7 @@ class MODULES_EXPORT AXObject : public GarbageCollectedFinalized<AXObject> {
virtual bool isAnchor() const { return false; }
bool isButton() const;
bool isCanvas() const { return roleValue() == CanvasRole; }
+ bool isCheckable() const;
bool isCheckbox() const { return roleValue() == CheckBoxRole; }
bool isCheckboxOrRadio() const { return isCheckbox() || isRadioButton(); }
bool isColorWell() const { return roleValue() == ColorWellRole; }
@@ -673,7 +674,6 @@ class MODULES_EXPORT AXObject : public GarbageCollectedFinalized<AXObject> {
bool isWebArea() const { return roleValue() == WebAreaRole; }
// Check object state.
- virtual bool isChecked() const { return false; }
virtual bool isClickable() const;
virtual bool isCollapsed() const { return false; }
virtual bool isEnabled() const { return false; }
@@ -840,7 +840,7 @@ class MODULES_EXPORT AXObject : public GarbageCollectedFinalized<AXObject> {
// Properties of interactive elements.
AXSupportedAction action() const;
- virtual AccessibilityButtonState checkboxOrRadioValue() const;
+ AccessibilityButtonState checkedState() const;
virtual AriaCurrentState ariaCurrentState() const {
return AriaCurrentStateUndefined;
}
@@ -1100,6 +1100,8 @@ class MODULES_EXPORT AXObject : public GarbageCollectedFinalized<AXObject> {
void updateCachedAttributeValuesIfNeeded() const;
private:
+ static bool isNativeInputInMixedState(const Node *);
+
static bool includesARIAWidgetRole(const String&);
static bool hasInteractiveARIAAttribute(const Element&);

Powered by Google App Engine
This is Rietveld 408576698