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

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

Issue 1195223006: Reports the position of the caret and current selection in content editables. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added unit tests. Created 5 years, 5 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 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 break; 323 break;
324 case AX_ATTR_SCROLL_Y_MIN: 324 case AX_ATTR_SCROLL_Y_MIN:
325 result += " scroll_y_min=" + value; 325 result += " scroll_y_min=" + value;
326 break; 326 break;
327 case AX_ATTR_SCROLL_Y_MAX: 327 case AX_ATTR_SCROLL_Y_MAX:
328 result += " scroll_y_max=" + value; 328 result += " scroll_y_max=" + value;
329 break; 329 break;
330 case AX_ATTR_HIERARCHICAL_LEVEL: 330 case AX_ATTR_HIERARCHICAL_LEVEL:
331 result += " level=" + value; 331 result += " level=" + value;
332 break; 332 break;
333 case AX_ATTR_ANCHOR_OBJECT_ID:
334 result += " anchor_object_id=" + value;
335 break;
336 case AX_ATTR_ANCHOR_OFFSET:
337 result += " anchor_offset=" + value;
338 break;
339 case AX_ATTR_FOCUS_OBJECT_ID:
340 result += " focus_object_id=" + value;
341 break;
342 case AX_ATTR_FOCUS_OFFSET:
343 result += " focus_offset=" + value;
344 break;
333 case AX_ATTR_TEXT_SEL_START: 345 case AX_ATTR_TEXT_SEL_START:
334 result += " sel_start=" + value; 346 result += " sel_start=" + value;
335 break; 347 break;
336 case AX_ATTR_TEXT_SEL_END: 348 case AX_ATTR_TEXT_SEL_END:
337 result += " sel_end=" + value; 349 result += " sel_end=" + value;
338 break; 350 break;
339 case AX_ATTR_TABLE_ROW_COUNT: 351 case AX_ATTR_TABLE_ROW_COUNT:
340 result += " rows=" + value; 352 result += " rows=" + value;
341 break; 353 break;
342 case AX_ATTR_TABLE_COLUMN_COUNT: 354 case AX_ATTR_TABLE_COLUMN_COUNT:
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 } 663 }
652 } 664 }
653 665
654 if (!child_ids.empty()) 666 if (!child_ids.empty())
655 result += " child_ids=" + IntVectorToString(child_ids); 667 result += " child_ids=" + IntVectorToString(child_ids);
656 668
657 return result; 669 return result;
658 } 670 }
659 671
660 } // namespace ui 672 } // namespace ui
OLDNEW
« content/renderer/accessibility/blink_ax_tree_source.cc ('K') | « ui/accessibility/ax_enums.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698