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

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

Issue 2694903010: AX checked state changes (Closed)
Patch Set: git cl try Created 3 years, 8 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 a471f6c4c588da61cd19aa24469552e5e67a1a88..fc3f607fff55e0669b1058ea5a298c2f026162aa 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObject.h
+++ b/third_party/WebKit/Source/modules/accessibility/AXObject.h
@@ -625,6 +625,7 @@ class MODULES_EXPORT AXObject : public GarbageCollectedFinalized<AXObject> {
virtual bool IsAXTable() const { return false; }
virtual bool IsAnchor() const { return false; }
bool IsButton() const;
+ bool IsCheckable() const;
bool IsCanvas() const { return RoleValue() == kCanvasRole; }
bool IsCheckbox() const { return RoleValue() == kCheckBoxRole; }
bool IsCheckboxOrRadio() const { return IsCheckbox() || IsRadioButton(); }
@@ -683,7 +684,6 @@ class MODULES_EXPORT AXObject : public GarbageCollectedFinalized<AXObject> {
bool IsWebArea() const { return RoleValue() == kWebAreaRole; }
// 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; }
@@ -858,7 +858,7 @@ class MODULES_EXPORT AXObject : public GarbageCollectedFinalized<AXObject> {
// Properties of interactive elements.
AXSupportedAction Action() const;
- virtual AccessibilityButtonState CheckboxOrRadioValue() const;
+ AccessibilityButtonState CheckedState() const;
virtual AriaCurrentState GetAriaCurrentState() const {
return kAriaCurrentStateUndefined;
}
@@ -1120,6 +1120,7 @@ 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