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

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

Issue 681503002: Add Android AX functions to set the value and selection of a text field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@link_text_from_image
Patch Set: Add to supported actions 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
Index: content/browser/accessibility/browser_accessibility_manager.cc
diff --git a/content/browser/accessibility/browser_accessibility_manager.cc b/content/browser/accessibility/browser_accessibility_manager.cc
index bd745cd12fe49baa667bb0591b29c9bb2300b778..079da9800a6b433cc423aafb74911e522621b8a8 100644
--- a/content/browser/accessibility/browser_accessibility_manager.cc
+++ b/content/browser/accessibility/browser_accessibility_manager.cc
@@ -284,6 +284,12 @@ void BrowserAccessibilityManager::ScrollToPoint(
}
}
+void BrowserAccessibilityManager::SetValue(
+ const BrowserAccessibility& node, const base::string16& value) {
nasko 2014/10/27 17:18:25 nit: In general this CL doesn't use the proper sty
dmazzoni 2014/11/04 23:22:53 OK. Fixed for the parts of the code that this chan
+ if (delegate_)
+ delegate_->AccessibilitySetValue(node.GetId(), value);
+}
+
void BrowserAccessibilityManager::SetTextSelection(
const BrowserAccessibility& node, int start_offset, int end_offset) {
if (delegate_) {

Powered by Google App Engine
This is Rietveld 408576698