| 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 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1010 bool AXObject::ariaPressedIsPresent() const | 1010 bool AXObject::ariaPressedIsPresent() const |
| 1011 { | 1011 { |
| 1012 return !getAttribute(aria_pressedAttr).isEmpty(); | 1012 return !getAttribute(aria_pressedAttr).isEmpty(); |
| 1013 } | 1013 } |
| 1014 | 1014 |
| 1015 bool AXObject::supportsActiveDescendant() const | 1015 bool AXObject::supportsActiveDescendant() const |
| 1016 { | 1016 { |
| 1017 // According to the ARIA Spec, all ARIA composite widgets, ARIA text boxes | 1017 // According to the ARIA Spec, all ARIA composite widgets, ARIA text boxes |
| 1018 // and ARIA groups should be able to expose an active descendant. | 1018 // and ARIA groups should be able to expose an active descendant. |
| 1019 // Implicitly, <input> and <textarea> elements should also have this ability
. | 1019 // Implicitly, <input> and <textarea> elements should also have this ability
. |
| 1020 switch (ariaRoleAttribute()) { | 1020 switch (roleValue()) { |
| 1021 case ComboBoxRole: | 1021 case ComboBoxRole: |
| 1022 case GridRole: | 1022 case GridRole: |
| 1023 case GroupRole: | 1023 case GroupRole: |
| 1024 case ListBoxRole: | 1024 case ListBoxRole: |
| 1025 case MenuRole: | 1025 case MenuRole: |
| 1026 case MenuBarRole: | 1026 case MenuBarRole: |
| 1027 case PopUpButtonRole: |
| 1027 case RadioGroupRole: | 1028 case RadioGroupRole: |
| 1028 case RowRole: | 1029 case RowRole: |
| 1029 case SearchBoxRole: | 1030 case SearchBoxRole: |
| 1030 case TabListRole: | 1031 case TabListRole: |
| 1031 case TextFieldRole: | 1032 case TextFieldRole: |
| 1032 case ToolbarRole: | 1033 case ToolbarRole: |
| 1033 case TreeRole: | 1034 case TreeRole: |
| 1034 case TreeGridRole: | 1035 case TreeGridRole: |
| 1035 return true; | 1036 return true; |
| 1036 default: | 1037 default: |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1743 | 1744 |
| 1744 DEFINE_TRACE(AXObject) | 1745 DEFINE_TRACE(AXObject) |
| 1745 { | 1746 { |
| 1746 visitor->trace(m_children); | 1747 visitor->trace(m_children); |
| 1747 visitor->trace(m_parent); | 1748 visitor->trace(m_parent); |
| 1748 visitor->trace(m_cachedLiveRegionRoot); | 1749 visitor->trace(m_cachedLiveRegionRoot); |
| 1749 visitor->trace(m_axObjectCache); | 1750 visitor->trace(m_axObjectCache); |
| 1750 } | 1751 } |
| 1751 | 1752 |
| 1752 } // namespace blink | 1753 } // namespace blink |
| OLD | NEW |