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

Unified Diff: Source/core/accessibility/AXObject.cpp

Issue 104583006: Don't ignore landmark and related AXObjects, because they should be exposed to (Closed) Base URL: http://src.chromium.org/blink/trunk/
Patch Set: Created 6 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/accessibility/AXObject.h ('k') | Source/core/accessibility/AXRenderObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXObject.cpp
===================================================================
--- Source/core/accessibility/AXObject.cpp (revision 164401)
+++ Source/core/accessibility/AXObject.cpp (working copy)
@@ -183,6 +183,21 @@
return role == ButtonRole || role == PopUpButtonRole || role == ToggleButtonRole;
}
+bool AXObject::isLandmarkRelated() const
+{
+ AccessibilityRole role = roleValue();
+ return role == ArticleRole ||
dmazzoni 2014/01/03 18:14:11 Please use a switch statement, and sort them alpha
+ role == RegionRole ||
+ role == ApplicationRole ||
+ role == BannerRole ||
+ role == ComplementaryRole ||
+ role == ContentInfoRole ||
+ role == FooterRole ||
+ role == MainRole ||
+ role == NavigationRole ||
+ role == SearchRole;
+}
+
bool AXObject::isMenuRelated() const
{
switch (roleValue()) {
« no previous file with comments | « Source/core/accessibility/AXObject.h ('k') | Source/core/accessibility/AXRenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698