OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
943 AccessibilityRole parentRole = parent->roleValue(); | 943 AccessibilityRole parentRole = parent->roleValue(); |
944 if (parentRole == GroupRole) | 944 if (parentRole == GroupRole) |
945 level++; | 945 level++; |
946 else if (parentRole == TreeRole) | 946 else if (parentRole == TreeRole) |
947 break; | 947 break; |
948 } | 948 } |
949 | 949 |
950 return level; | 950 return level; |
951 } | 951 } |
952 | 952 |
953 String AXNodeObject::ariaAutoComplete() const | |
954 { | |
955 const AtomicString& ariaAutoComplete = getAttribute(aria_autocompleteAttr); | |
956 | |
957 if (roleValue() == ComboBoxRole || roleValue() == TextAreaRole) | |
dmazzoni
2014/12/09 16:19:35
This test should come first so we don't need to ca
| |
958 return ariaAutoComplete; | |
959 | |
960 return String(); | |
961 } | |
962 | |
953 String AXNodeObject::text() const | 963 String AXNodeObject::text() const |
954 { | 964 { |
955 // If this is a user defined static text, use the accessible name computatio n. | 965 // If this is a user defined static text, use the accessible name computatio n. |
956 if (ariaRoleAttribute() == StaticTextRole) | 966 if (ariaRoleAttribute() == StaticTextRole) |
957 return ariaAccessibilityDescription(); | 967 return ariaAccessibilityDescription(); |
958 | 968 |
959 if (!isTextControl()) | 969 if (!isTextControl()) |
960 return String(); | 970 return String(); |
961 | 971 |
962 Node* node = this->node(); | 972 Node* node = this->node(); |
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1836 float range = maxValueForRange() - minValueForRange(); | 1846 float range = maxValueForRange() - minValueForRange(); |
1837 float value = valueForRange(); | 1847 float value = valueForRange(); |
1838 | 1848 |
1839 value += range * (percentChange / 100); | 1849 value += range * (percentChange / 100); |
1840 setValue(String::number(value)); | 1850 setValue(String::number(value)); |
1841 | 1851 |
1842 axObjectCache()->postNotification(node(), AXObjectCacheImpl::AXValueChanged, true); | 1852 axObjectCache()->postNotification(node(), AXObjectCacheImpl::AXValueChanged, true); |
1843 } | 1853 } |
1844 | 1854 |
1845 } // namespace blink | 1855 } // namespace blink |
OLD | NEW |