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

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

Issue 2319903003: Don't expose Android set selection accessibility action for empty text fields (Closed)
Patch Set: Created 4 years, 3 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_manager_android.cc
diff --git a/content/browser/accessibility/browser_accessibility_manager_android.cc b/content/browser/accessibility/browser_accessibility_manager_android.cc
index df7361110a178fe0e03c4bd458df4bbaeacbbb1d..8a5a498f49a74d1c464e395b42e2219e66ec8a2a 100644
--- a/content/browser/accessibility/browser_accessibility_manager_android.cc
+++ b/content/browser/accessibility/browser_accessibility_manager_android.cc
@@ -424,7 +424,8 @@ jboolean BrowserAccessibilityManagerAndroid::PopulateAccessibilityNodeInfo(
node->IsFocusable(),
node->IsFocused(),
node->IsCollapsed(),
- node->IsExpanded());
+ node->IsExpanded(),
+ !node->GetValue().empty());
David Tseng 2016/09/08 20:49:47 If I understand the bug correctly, don't you want
dmazzoni 2016/10/05 19:40:48 No, because placeholder was just one possible exam
David Tseng 2016/10/06 16:27:58 Value comes from value description and string valu
Java_BrowserAccessibilityManager_setAccessibilityNodeInfoClassName(
env, obj, info,
base::android::ConvertUTF8ToJavaString(env, node->GetClassName()));

Powered by Google App Engine
This is Rietveld 408576698