Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 Apple 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 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 740 | 740 |
| 741 if (node->hasEditableStyle()) | 741 if (node->hasEditableStyle()) |
| 742 return true; | 742 return true; |
| 743 | 743 |
| 744 if (!isNativeTextControl() && !isNonNativeTextControl()) | 744 if (!isNativeTextControl() && !isNonNativeTextControl()) |
| 745 return false; | 745 return false; |
| 746 | 746 |
| 747 return equalIgnoringCase(getAttribute(aria_multilineAttr), "true"); | 747 return equalIgnoringCase(getAttribute(aria_multilineAttr), "true"); |
| 748 } | 748 } |
| 749 | 749 |
| 750 bool AXObject::hasRichText() const | |
| 751 { | |
| 752 Node* node = this->node(); | |
| 753 if (!node) | |
| 754 return false; | |
| 755 | |
| 756 if (node->hasEditableStyle()) | |
|
dmazzoni
2015/05/28 05:55:56
This will return true for everything in the conten
| |
| 757 return true; | |
| 758 | |
| 759 return false; | |
| 760 } | |
| 761 | |
| 750 bool AXObject::ariaPressedIsPresent() const | 762 bool AXObject::ariaPressedIsPresent() const |
| 751 { | 763 { |
| 752 return !getAttribute(aria_pressedAttr).isEmpty(); | 764 return !getAttribute(aria_pressedAttr).isEmpty(); |
| 753 } | 765 } |
| 754 | 766 |
| 755 bool AXObject::supportsARIAAttributes() const | 767 bool AXObject::supportsARIAAttributes() const |
| 756 { | 768 { |
| 757 return isLiveRegion() | 769 return isLiveRegion() |
| 758 || supportsARIADragging() | 770 || supportsARIADragging() |
| 759 || supportsARIADropping() | 771 || supportsARIADropping() |
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1468 } | 1480 } |
| 1469 | 1481 |
| 1470 const AtomicString& AXObject::internalRoleName(AccessibilityRole role) | 1482 const AtomicString& AXObject::internalRoleName(AccessibilityRole role) |
| 1471 { | 1483 { |
| 1472 static const Vector<AtomicString>* internalRoleNameVector = createInternalRo leNameVector(); | 1484 static const Vector<AtomicString>* internalRoleNameVector = createInternalRo leNameVector(); |
| 1473 | 1485 |
| 1474 return internalRoleNameVector->at(role); | 1486 return internalRoleNameVector->at(role); |
| 1475 } | 1487 } |
| 1476 | 1488 |
| 1477 } // namespace blink | 1489 } // namespace blink |
| OLD | NEW |