| 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 5df166b2b59c706daac8eeef7991682fcb3a599a..26112a9ef1b926672f2dc0c40e8246ab12d979d8 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 ||
|
|
|