Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXObject.cpp

Issue 2165463003: Elements with an ARIA role of treeitem should be able to get their accessible name from their conte… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed test expectations. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-ignoredNodes-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-ignoredNodes-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698