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

Side by Side Diff: ui/accessibility/ax_node_data.cc

Issue 667713006: Implement automatic load of composed/embedded automation trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/accessibility/ax_node_data.h" 5 #include "ui/accessibility/ax_node_data.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 break; 196 break;
197 case AX_ATTR_COLOR_VALUE_RED: 197 case AX_ATTR_COLOR_VALUE_RED:
198 result += " color_value_red=" + value; 198 result += " color_value_red=" + value;
199 break; 199 break;
200 case AX_ATTR_COLOR_VALUE_GREEN: 200 case AX_ATTR_COLOR_VALUE_GREEN:
201 result += " color_value_green=" + value; 201 result += " color_value_green=" + value;
202 break; 202 break;
203 case AX_ATTR_COLOR_VALUE_BLUE: 203 case AX_ATTR_COLOR_VALUE_BLUE:
204 result += " color_value_blue=" + value; 204 result += " color_value_blue=" + value;
205 break; 205 break;
206 case AX_ATTR_TREE_ID:
207 result += " tree_id=" + value;
208 break;
209 case AX_ATTR_CHILD_TREE_ID:
210 result += " child_tree_id=" + value;
211 break;
206 case AX_ATTR_TEXT_DIRECTION: 212 case AX_ATTR_TEXT_DIRECTION:
207 switch (int_attributes[i].second) { 213 switch (int_attributes[i].second) {
208 case AX_TEXT_DIRECTION_LR: 214 case AX_TEXT_DIRECTION_LR:
209 default: 215 default:
210 result += " text_direction=lr"; 216 result += " text_direction=lr";
211 break; 217 break;
212 case AX_TEXT_DIRECTION_RL: 218 case AX_TEXT_DIRECTION_RL:
213 result += " text_direction=rl"; 219 result += " text_direction=rl";
214 break; 220 break;
215 case AX_TEXT_DIRECTION_TB: 221 case AX_TEXT_DIRECTION_TB:
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 } 404 }
399 } 405 }
400 406
401 if (!child_ids.empty()) 407 if (!child_ids.empty())
402 result += " child_ids=" + IntVectorToString(child_ids); 408 result += " child_ids=" + IntVectorToString(child_ids);
403 409
404 return result; 410 return result;
405 } 411 }
406 412
407 } // namespace ui 413 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698