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

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,25 @@
return role == ButtonRole || role == PopUpButtonRole || role == ToggleButtonRole;
}
+bool AXObject::isLandmarkRelated() const
+{
+ switch (roleValue()) {
+ case ApplicationRole:
+ case ArticleRole:
+ case BannerRole:
+ case ComplementaryRole:
+ case ContentInfoRole:
+ case FooterRole:
+ case MainRole:
+ case NavigationRole:
+ case RegionRole:
+ case SearchRole:
+ return true;
+ default:
+ return false;
+ }
+}
+
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