Chromium Code Reviews| 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()) { |