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

Unified Diff: content/browser/accessibility/browser_accessibility_android.cc

Issue 627603002: Handle dl role for browsertests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « no previous file | content/browser/accessibility/browser_accessibility_cocoa.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility_android.cc
diff --git a/content/browser/accessibility/browser_accessibility_android.cc b/content/browser/accessibility/browser_accessibility_android.cc
index dc62c798d3f37d3806fbc098a40dc4ab1db5bfb2..6f7c71f45f2b1bf8bc333661fad7b5b1bc942ce3 100644
--- a/content/browser/accessibility/browser_accessibility_android.cc
+++ b/content/browser/accessibility/browser_accessibility_android.cc
@@ -117,6 +117,7 @@ bool BrowserAccessibilityAndroid::IsCollection() const {
return (GetRole() == ui::AX_ROLE_GRID ||
GetRole() == ui::AX_ROLE_LIST ||
GetRole() == ui::AX_ROLE_LIST_BOX ||
+ GetRole() == ui::AX_ROLE_DESCRIPTION_LIST ||
GetRole() == ui::AX_ROLE_TABLE ||
GetRole() == ui::AX_ROLE_TREE);
}
@@ -165,6 +166,7 @@ bool BrowserAccessibilityAndroid::IsHeading() const {
bool BrowserAccessibilityAndroid::IsHierarchical() const {
return (GetRole() == ui::AX_ROLE_LIST ||
+ GetRole() == ui::AX_ROLE_DESCRIPTION_LIST ||
GetRole() == ui::AX_ROLE_TREE);
}
@@ -250,6 +252,7 @@ const char* BrowserAccessibilityAndroid::GetClassName() const {
break;
case ui::AX_ROLE_LIST:
case ui::AX_ROLE_LIST_BOX:
+ case ui::AX_ROLE_DESCRIPTION_LIST:
class_name = "android.widget.ListView";
break;
case ui::AX_ROLE_DIALOG:
@@ -356,6 +359,7 @@ int BrowserAccessibilityAndroid::GetItemCount() const {
switch(GetRole()) {
case ui::AX_ROLE_LIST:
case ui::AX_ROLE_LIST_BOX:
+ case ui::AX_ROLE_DESCRIPTION_LIST:
count = PlatformChildCount();
break;
case ui::AX_ROLE_SLIDER:
@@ -519,6 +523,7 @@ int BrowserAccessibilityAndroid::RowCount() const {
if (GetRole() == ui::AX_ROLE_LIST ||
GetRole() == ui::AX_ROLE_LIST_BOX ||
+ GetRole() == ui::AX_ROLE_DESCRIPTION_LIST ||
GetRole() == ui::AX_ROLE_TREE) {
return PlatformChildCount();
}
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698