Chromium Code Reviews| 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 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 958 | 958 |
| 959 const AtomicString& ariaAutoComplete = getAttribute(aria_autocompleteAttr).l ower(); | 959 const AtomicString& ariaAutoComplete = getAttribute(aria_autocompleteAttr).l ower(); |
| 960 | 960 |
| 961 if (ariaAutoComplete == "inline" || ariaAutoComplete == "list" | 961 if (ariaAutoComplete == "inline" || ariaAutoComplete == "list" |
| 962 || ariaAutoComplete == "both") | 962 || ariaAutoComplete == "both") |
| 963 return ariaAutoComplete; | 963 return ariaAutoComplete; |
| 964 | 964 |
| 965 return String(); | 965 return String(); |
| 966 } | 966 } |
| 967 | 967 |
| 968 String AXNodeObject::placeHolder() const | |
| 969 { | |
| 970 if (node() && (isHTMLInputElement(*node()) || isHTMLTextAreaElement(*node()) )) { | |
| 971 if (hasAttribute(placeholderAttr)) | |
|
aboxhall
2014/12/18 04:17:54
This should be something like:
HTMLInputElement*
| |
| 972 return getAttribute(placeholderAttr); | |
| 973 } | |
| 974 return String(); | |
| 975 } | |
| 976 | |
| 968 String AXNodeObject::text() const | 977 String AXNodeObject::text() const |
| 969 { | 978 { |
| 970 // If this is a user defined static text, use the accessible name computatio n. | 979 // If this is a user defined static text, use the accessible name computatio n. |
| 971 if (ariaRoleAttribute() == StaticTextRole) | 980 if (ariaRoleAttribute() == StaticTextRole) |
| 972 return ariaAccessibilityDescription(); | 981 return ariaAccessibilityDescription(); |
| 973 | 982 |
| 974 if (!isTextControl()) | 983 if (!isTextControl()) |
| 975 return String(); | 984 return String(); |
| 976 | 985 |
| 977 Node* node = this->node(); | 986 Node* node = this->node(); |
| (...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1851 float range = maxValueForRange() - minValueForRange(); | 1860 float range = maxValueForRange() - minValueForRange(); |
| 1852 float value = valueForRange(); | 1861 float value = valueForRange(); |
| 1853 | 1862 |
| 1854 value += range * (percentChange / 100); | 1863 value += range * (percentChange / 100); |
| 1855 setValue(String::number(value)); | 1864 setValue(String::number(value)); |
| 1856 | 1865 |
| 1857 axObjectCache()->postNotification(node(), AXObjectCacheImpl::AXValueChanged, true); | 1866 axObjectCache()->postNotification(node(), AXObjectCacheImpl::AXValueChanged, true); |
| 1858 } | 1867 } |
| 1859 | 1868 |
| 1860 } // namespace blink | 1869 } // namespace blink |
| OLD | NEW |