OLD | NEW |
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 Loading... |
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_FRAME_ID: |
| 207 result += " frame_id=" + value; |
| 208 break; |
| 209 case AX_ATTR_CHILD_FRAME_ID: |
| 210 result += " child_frame_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 Loading... |
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 |
OLD | NEW |