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

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: 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 unified diff | Download patch
« ui/accessibility/ax_enums.idl ('K') | « ui/accessibility/ax_enums.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_OBJ_SEL_START:
334 result += " obj_sel_start=" + value;
335 break;
333 case AX_ATTR_TEXT_SEL_START: 336 case AX_ATTR_TEXT_SEL_START:
334 result += " sel_start=" + value; 337 result += " sel_start=" + value;
335 break; 338 break;
339 case AX_ATTR_OBJ_SEL_END:
340 result += " obj_sel_end=" + value;
341 break;
336 case AX_ATTR_TEXT_SEL_END: 342 case AX_ATTR_TEXT_SEL_END:
337 result += " sel_end=" + value; 343 result += " sel_end=" + value;
338 break; 344 break;
339 case AX_ATTR_TABLE_ROW_COUNT: 345 case AX_ATTR_TABLE_ROW_COUNT:
340 result += " rows=" + value; 346 result += " rows=" + value;
341 break; 347 break;
342 case AX_ATTR_TABLE_COLUMN_COUNT: 348 case AX_ATTR_TABLE_COLUMN_COUNT:
343 result += " cols=" + value; 349 result += " cols=" + value;
344 break; 350 break;
345 case AX_ATTR_TABLE_CELL_COLUMN_INDEX: 351 case AX_ATTR_TABLE_CELL_COLUMN_INDEX:
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 } 657 }
652 } 658 }
653 659
654 if (!child_ids.empty()) 660 if (!child_ids.empty())
655 result += " child_ids=" + IntVectorToString(child_ids); 661 result += " child_ids=" + IntVectorToString(child_ids);
656 662
657 return result; 663 return result;
658 } 664 }
659 665
660 } // namespace ui 666 } // namespace ui
OLDNEW
« ui/accessibility/ax_enums.idl ('K') | « ui/accessibility/ax_enums.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698