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

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

Issue 1162263008: Exposes datetime attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: re-upload due to browser_accessibility_cocoa.mm Created 5 years, 6 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 8ae828e97ed634b76b2567f3a32e6905dc35e660..5c804bf89e4cad852b59c050efacf60b5cf01f65 100644
--- a/content/renderer/accessibility/blink_ax_tree_source.cc
+++ b/content/renderer/accessibility/blink_ax_tree_source.cc
@@ -398,20 +398,8 @@ void BlinkAXTreeSource::SerializeNode(blink::WebAXObject src,
line_breaks.push_back(src_line_breaks[i]);
dst->AddIntListAttribute(ui::AX_ATTR_LINE_BREAKS, line_breaks);
}
-
- if (dst->role == ui::AX_ROLE_TEXT_FIELD &&
- src.textInputType().length()) {
- dst->AddStringAttribute(ui::AX_ATTR_TEXT_INPUT_TYPE,
- UTF16ToUTF8(src.textInputType()));
- }
}
- blink::WebAXOptionalBool optionalBool = src.isAriaGrabbed();
- if (optionalBool == blink::WebAXOptionalBoolFalse)
- dst->AddBoolAttribute(ui::AX_ATTR_GRABBED, false);
- else if (optionalBool == blink::WebAXOptionalBoolTrue)
- dst->AddBoolAttribute(ui::AX_ATTR_GRABBED, true);
-
// ARIA role.
if (element.hasAttribute("role")) {
dst->AddStringAttribute(ui::AX_ATTR_ROLE,
@@ -420,6 +408,8 @@ void BlinkAXTreeSource::SerializeNode(blink::WebAXObject src,
std::string role = GetEquivalentAriaRoleString(dst->role);
if (!role.empty())
dst->AddStringAttribute(ui::AX_ATTR_ROLE, role);
+ else if (dst->role == ui::AX_ROLE_TIME)
+ dst->AddStringAttribute(ui::AX_ATTR_ROLE, "time");
}
// Browser plugin (used in a <webview>).
@@ -608,11 +598,6 @@ void BlinkAXTreeSource::SerializeNode(blink::WebAXObject src,
ui::AX_ATTR_DESCRIBEDBY_IDS, describedby, dst);
}
- if (src.ariaDropEffect().length()) {
- dst->AddStringAttribute(ui::AX_ATTR_DROPEFFECT,
- UTF16ToUTF8(src.ariaDropEffect()));
- }
-
WebVector<WebAXObject> flowTo;
if (src.ariaFlowTo(flowTo))
AddIntListAttributeFromWebObjects(ui::AX_ATTR_FLOWTO_IDS, flowTo, dst);

Powered by Google App Engine
This is Rietveld 408576698