| 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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 if (equalIgnoringCase(getAttribute(aria_disabledAttr), "true")) | 702 if (equalIgnoringCase(getAttribute(aria_disabledAttr), "true")) |
| 703 return false; | 703 return false; |
| 704 | 704 |
| 705 Node* node = this->node(); | 705 Node* node = this->node(); |
| 706 if (!node || !node->isElementNode()) | 706 if (!node || !node->isElementNode()) |
| 707 return true; | 707 return true; |
| 708 | 708 |
| 709 return !toElement(node)->isDisabledFormControl(); | 709 return !toElement(node)->isDisabledFormControl(); |
| 710 } | 710 } |
| 711 | 711 |
| 712 bool AXNodeObject::supportsARIAExpanded() const |
| 713 { |
| 714 const AtomicString& expanded = getAttribute(aria_expandedAttr); |
| 715 return equalIgnoringCase(expanded, "true") || equalIgnoringCase(expanded, "f
alse"); |
| 716 } |
| 717 |
| 712 bool AXNodeObject::isExpanded() const | 718 bool AXNodeObject::isExpanded() const |
| 713 { | 719 { |
| 714 if (equalIgnoringCase(getAttribute(aria_expandedAttr), "true")) | 720 if (equalIgnoringCase(getAttribute(aria_expandedAttr), "true")) |
| 715 return true; | 721 return true; |
| 716 | 722 |
| 717 return false; | 723 return false; |
| 718 } | 724 } |
| 719 | 725 |
| 720 bool AXNodeObject::isIndeterminate() const | 726 bool AXNodeObject::isIndeterminate() const |
| 721 { | 727 { |
| (...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1760 float range = maxValueForRange() - minValueForRange(); | 1766 float range = maxValueForRange() - minValueForRange(); |
| 1761 float value = valueForRange(); | 1767 float value = valueForRange(); |
| 1762 | 1768 |
| 1763 value += range * (percentChange / 100); | 1769 value += range * (percentChange / 100); |
| 1764 setValue(String::number(value)); | 1770 setValue(String::number(value)); |
| 1765 | 1771 |
| 1766 axObjectCache()->postNotification(node(), AXObjectCacheImpl::AXValueChanged,
true); | 1772 axObjectCache()->postNotification(node(), AXObjectCacheImpl::AXValueChanged,
true); |
| 1767 } | 1773 } |
| 1768 | 1774 |
| 1769 } // namespace blink | 1775 } // namespace blink |
| OLD | NEW |