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

Unified Diff: content/renderer/accessibility/blink_ax_tree_source.cc

Issue 825613002: Expose html placeholder attribute as AXPlaceholder: <value> on MAC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/renderer/accessibility/blink_ax_tree_source.cc
diff --git a/content/renderer/accessibility/blink_ax_tree_source.cc b/content/renderer/accessibility/blink_ax_tree_source.cc
index 0f5441e34e3c1fea3dbd7fb41303862586cea562..0ebbc980e142737ae6aacb4f4c57c5671787e27c 100644
--- a/content/renderer/accessibility/blink_ax_tree_source.cc
+++ b/content/renderer/accessibility/blink_ax_tree_source.cc
@@ -288,6 +288,10 @@ void BlinkAXTreeSource::SerializeNode(blink::WebAXObject src,
}
if (src.helpText().length())
dst->AddStringAttribute(ui::AX_ATTR_HELP, UTF16ToUTF8(src.helpText()));
+ if (src.placeholder().length()) {
+ dst->AddStringAttribute(ui::AX_ATTR_PLACEHOLDER,
+ UTF16ToUTF8(src.placeholder()));
+ }
if (src.keyboardShortcut().length()) {
dst->AddStringAttribute(ui::AX_ATTR_SHORTCUT,
UTF16ToUTF8(src.keyboardShortcut()));

Powered by Google App Engine
This is Rietveld 408576698