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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXObjectImpl.cpp

Issue 2894103002: Int and Float properties for Accessibility Object Model phase 1 (Closed)
Patch Set: Update webexposed/ 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/accessibility/AXObjectImpl.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObjectImpl.cpp b/third_party/WebKit/Source/modules/accessibility/AXObjectImpl.cpp
index 37699ded8eb6daca5aa78529441b7caa1843913c..356be92faa256d5382dc70506d281f896d659a67 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObjectImpl.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXObjectImpl.cpp
@@ -421,6 +421,42 @@ bool AXObjectImpl::AOMPropertyOrARIAAttributeIsFalse(
return false;
}
+bool AXObjectImpl::HasAOMPropertyOrARIAAttribute(AOMUIntProperty property,
+ uint32_t& result) const {
+ Element* element = this->GetElement();
+ if (!element)
+ return false;
+
+ bool is_null = true;
+ result =
+ AccessibleNode::GetPropertyOrARIAAttribute(element, property, is_null);
+ return !is_null;
+}
+
+bool AXObjectImpl::HasAOMPropertyOrARIAAttribute(AOMIntProperty property,
+ int32_t& result) const {
+ Element* element = this->GetElement();
+ if (!element)
+ return false;
+
+ bool is_null = true;
+ result =
+ AccessibleNode::GetPropertyOrARIAAttribute(element, property, is_null);
+ return !is_null;
+}
+
+bool AXObjectImpl::HasAOMPropertyOrARIAAttribute(AOMFloatProperty property,
+ float& result) const {
+ Element* element = this->GetElement();
+ if (!element)
+ return false;
+
+ bool is_null = true;
+ result =
+ AccessibleNode::GetPropertyOrARIAAttribute(element, property, is_null);
+ return !is_null;
+}
+
bool AXObjectImpl::IsARIATextControl() const {
return AriaRoleAttribute() == kTextFieldRole ||
AriaRoleAttribute() == kSearchBoxRole ||

Powered by Google App Engine
This is Rietveld 408576698