| 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 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1705 case MenuItemCheckBoxRole: | 1705 case MenuItemCheckBoxRole: |
| 1706 case MenuItemRadioRole: | 1706 case MenuItemRadioRole: |
| 1707 case MenuListOptionRole: | 1707 case MenuListOptionRole: |
| 1708 case PopUpButtonRole: | 1708 case PopUpButtonRole: |
| 1709 case RadioButtonRole: | 1709 case RadioButtonRole: |
| 1710 case StaticTextRole: | 1710 case StaticTextRole: |
| 1711 case StatusRole: | 1711 case StatusRole: |
| 1712 case SwitchRole: | 1712 case SwitchRole: |
| 1713 case TabRole: | 1713 case TabRole: |
| 1714 case ToggleButtonRole: | 1714 case ToggleButtonRole: |
| 1715 case TreeItemRole: |
| 1715 return true; | 1716 return true; |
| 1716 default: | 1717 default: |
| 1717 return false; | 1718 return false; |
| 1718 } | 1719 } |
| 1719 } | 1720 } |
| 1720 | 1721 |
| 1721 AccessibilityRole AXObject::buttonRoleType() const | 1722 AccessibilityRole AXObject::buttonRoleType() const |
| 1722 { | 1723 { |
| 1723 // If aria-pressed is present, then it should be exposed as a toggle button. | 1724 // If aria-pressed is present, then it should be exposed as a toggle button. |
| 1724 // http://www.w3.org/TR/wai-aria/states_and_properties#aria-pressed | 1725 // http://www.w3.org/TR/wai-aria/states_and_properties#aria-pressed |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1748 | 1749 |
| 1749 DEFINE_TRACE(AXObject) | 1750 DEFINE_TRACE(AXObject) |
| 1750 { | 1751 { |
| 1751 visitor->trace(m_children); | 1752 visitor->trace(m_children); |
| 1752 visitor->trace(m_parent); | 1753 visitor->trace(m_parent); |
| 1753 visitor->trace(m_cachedLiveRegionRoot); | 1754 visitor->trace(m_cachedLiveRegionRoot); |
| 1754 visitor->trace(m_axObjectCache); | 1755 visitor->trace(m_axObjectCache); |
| 1755 } | 1756 } |
| 1756 | 1757 |
| 1757 } // namespace blink | 1758 } // namespace blink |
| OLD | NEW |