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

Unified Diff: ui/accessibility/ax_node_data.cc

Issue 1413423003: Move some AX attrs from AXNodeData to AXTreeData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « ui/accessibility/ax_node_data.h ('k') | ui/accessibility/ax_serializable_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_node_data.cc
diff --git a/ui/accessibility/ax_node_data.cc b/ui/accessibility/ax_node_data.cc
index 7f0829824b16d4656b87344e01e282c7f004aba2..280e10b602dd9955ead84368fc18d4a43a765654 100644
--- a/ui/accessibility/ax_node_data.cc
+++ b/ui/accessibility/ax_node_data.cc
@@ -334,18 +334,6 @@ std::string AXNodeData::ToString() const {
case AX_ATTR_HIERARCHICAL_LEVEL:
result += " level=" + value;
break;
- case AX_ATTR_ANCHOR_OBJECT_ID:
- result += " anchor_object_id=" + value;
- break;
- case AX_ATTR_ANCHOR_OFFSET:
- result += " anchor_offset=" + value;
- break;
- case AX_ATTR_FOCUS_OBJECT_ID:
- result += " focus_object_id=" + value;
- break;
- case AX_ATTR_FOCUS_OFFSET:
- result += " focus_offset=" + value;
- break;
case AX_ATTR_TEXT_SEL_START:
result += " sel_start=" + value;
break;
@@ -407,15 +395,9 @@ std::string AXNodeData::ToString() const {
case AX_ATTR_ACTIVEDESCENDANT_ID:
result += " activedescendant=" + value;
break;
- case AX_ATTR_TREE_ID:
- result += " tree_id=" + value;
- break;
case AX_ATTR_CHILD_TREE_ID:
result += " child_tree_id=" + value;
break;
- case AX_ATTR_PARENT_TREE_ID:
- result += " parent_tree_id=" + value;
- break;
case AX_ATTR_COLOR_VALUE:
result += base::StringPrintf(" color_value=&%X",
int_attributes[i].second);
@@ -491,18 +473,6 @@ std::string AXNodeData::ToString() const {
for (size_t i = 0; i < string_attributes.size(); ++i) {
std::string value = string_attributes[i].second;
switch (string_attributes[i].first) {
- case AX_ATTR_DOC_URL:
- result += " doc_url=" + value;
- break;
- case AX_ATTR_DOC_TITLE:
- result += " doc_title=" + value;
- break;
- case AX_ATTR_DOC_MIMETYPE:
- result += " doc_mimetype=" + value;
- break;
- case AX_ATTR_DOC_DOCTYPE:
- result += " doc_doctype=" + value;
- break;
case AX_ATTR_ACCESS_KEY:
result += " access_key=" + value;
break;
@@ -565,9 +535,6 @@ std::string AXNodeData::ToString() const {
for (size_t i = 0; i < float_attributes.size(); ++i) {
std::string value = DoubleToString(float_attributes[i].second);
switch (float_attributes[i].first) {
- case AX_ATTR_DOC_LOADING_PROGRESS:
- result += " doc_progress=" + value;
- break;
case AX_ATTR_VALUE_FOR_RANGE:
result += " value_for_range=" + value;
break;
@@ -588,9 +555,6 @@ std::string AXNodeData::ToString() const {
for (size_t i = 0; i < bool_attributes.size(); ++i) {
std::string value = bool_attributes[i].second ? "true" : "false";
switch (bool_attributes[i].first) {
- case AX_ATTR_DOC_LOADED:
- result += " doc_loaded=" + value;
- break;
case AX_ATTR_BUTTON_MIXED:
result += " mixed=" + value;
break;
« no previous file with comments | « ui/accessibility/ax_node_data.h ('k') | ui/accessibility/ax_serializable_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698