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

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

Issue 1132963002: Handles conversion rule for TimeRole and updates InputTimeRole. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Maps InputTime role to ROLE_SYSTEM_GROUPING Created 5 years, 7 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
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 a9e10ab7da7fe379ba8235704308c316a6bb6aa3..2ae0a283a0705b761b3f9218fd1372e8247cfdaf 100644
--- a/content/browser/accessibility/browser_accessibility_android.cc
+++ b/content/browser/accessibility/browser_accessibility_android.cc
@@ -78,7 +78,7 @@ bool BrowserAccessibilityAndroid::PlatformIsLeaf() const {
return false;
// Date and time controls should drop their children.
- if (GetRole() == ui::AX_ROLE_DATE || GetRole() == ui::AX_ROLE_TIME)
+ if (GetRole() == ui::AX_ROLE_DATE || GetRole() == ui::AX_ROLE_INPUT_TIME)
return true;
// Headings with text can drop their children.
@@ -266,7 +266,7 @@ const char* BrowserAccessibilityAndroid::GetClassName() const {
case ui::AX_ROLE_COMBO_BOX:
case ui::AX_ROLE_DATE:
case ui::AX_ROLE_POP_UP_BUTTON:
- case ui::AX_ROLE_TIME:
+ case ui::AX_ROLE_INPUT_TIME:
class_name = "android.widget.Spinner";
break;
case ui::AX_ROLE_BUTTON:
@@ -379,8 +379,8 @@ base::string16 BrowserAccessibilityAndroid::GetText() const {
base::string16 placeholder;
switch (GetRole()) {
case ui::AX_ROLE_DATE:
+ case ui::AX_ROLE_INPUT_TIME:
case ui::AX_ROLE_TEXT_FIELD:
- case ui::AX_ROLE_TIME:
GetHtmlAttribute("placeholder", &placeholder);
}
« no previous file with comments | « chrome/common/extensions/api/automation.idl ('k') | content/browser/accessibility/browser_accessibility_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698