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 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1215 } | 1215 } |
1216 | 1216 |
1217 String AXNodeObject::ariaDescribedByAttribute() const | 1217 String AXNodeObject::ariaDescribedByAttribute() const |
1218 { | 1218 { |
1219 WillBeHeapVector<RawPtrWillBeMember<Element>> elements; | 1219 WillBeHeapVector<RawPtrWillBeMember<Element>> elements; |
1220 elementsFromAttribute(elements, aria_describedbyAttr); | 1220 elementsFromAttribute(elements, aria_describedbyAttr); |
1221 | 1221 |
1222 return accessibilityDescriptionForElements(elements); | 1222 return accessibilityDescriptionForElements(elements); |
1223 } | 1223 } |
1224 | 1224 |
| 1225 const AtomicString& AXNodeObject::ariaDropEffect() const |
| 1226 { |
| 1227 return getAttribute(aria_dropeffectAttr); |
| 1228 } |
| 1229 |
1225 String AXNodeObject::ariaLabeledByAttribute() const | 1230 String AXNodeObject::ariaLabeledByAttribute() const |
1226 { | 1231 { |
1227 WillBeHeapVector<RawPtrWillBeMember<Element>> elements; | 1232 WillBeHeapVector<RawPtrWillBeMember<Element>> elements; |
1228 ariaLabeledByElements(elements); | 1233 ariaLabeledByElements(elements); |
1229 | 1234 |
1230 return accessibilityDescriptionForElements(elements); | 1235 return accessibilityDescriptionForElements(elements); |
1231 } | 1236 } |
1232 | 1237 |
1233 AccessibilityRole AXNodeObject::ariaRoleAttribute() const | 1238 AccessibilityRole AXNodeObject::ariaRoleAttribute() const |
1234 { | 1239 { |
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1959 float range = maxValueForRange() - minValueForRange(); | 1964 float range = maxValueForRange() - minValueForRange(); |
1960 float value = valueForRange(); | 1965 float value = valueForRange(); |
1961 | 1966 |
1962 value += range * (percentChange / 100); | 1967 value += range * (percentChange / 100); |
1963 setValue(String::number(value)); | 1968 setValue(String::number(value)); |
1964 | 1969 |
1965 axObjectCache()->postNotification(node(), AXObjectCacheImpl::AXValueChanged,
true); | 1970 axObjectCache()->postNotification(node(), AXObjectCacheImpl::AXValueChanged,
true); |
1966 } | 1971 } |
1967 | 1972 |
1968 } // namespace blink | 1973 } // namespace blink |
OLD | NEW |