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

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

Issue 2526073003: Re-add the line break attribute (Closed)
Patch Set: --file=/tmp/m Created 4 years 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
« no previous file with comments | « ui/accessibility/ax_enums.idl ('k') | ui/accessibility/ax_tree_combiner.cc » ('j') | 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <set> 10 #include <set>
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 break; 720 break;
721 case AX_ATTR_DESCRIBEDBY_IDS: 721 case AX_ATTR_DESCRIBEDBY_IDS:
722 result += " describedby_ids=" + IntVectorToString(values); 722 result += " describedby_ids=" + IntVectorToString(values);
723 break; 723 break;
724 case AX_ATTR_FLOWTO_IDS: 724 case AX_ATTR_FLOWTO_IDS:
725 result += " flowto_ids=" + IntVectorToString(values); 725 result += " flowto_ids=" + IntVectorToString(values);
726 break; 726 break;
727 case AX_ATTR_LABELLEDBY_IDS: 727 case AX_ATTR_LABELLEDBY_IDS:
728 result += " labelledby_ids=" + IntVectorToString(values); 728 result += " labelledby_ids=" + IntVectorToString(values);
729 break; 729 break;
730 case AX_ATTR_LINE_BREAKS:
731 result += " line_breaks=" + IntVectorToString(values);
732 break;
730 case AX_ATTR_MARKER_TYPES: { 733 case AX_ATTR_MARKER_TYPES: {
731 std::string types_str; 734 std::string types_str;
732 for (size_t i = 0; i < values.size(); ++i) { 735 for (size_t i = 0; i < values.size(); ++i) {
733 auto type = static_cast<AXMarkerType>(values[i]); 736 auto type = static_cast<AXMarkerType>(values[i]);
734 if (type == AX_MARKER_TYPE_NONE) 737 if (type == AX_MARKER_TYPE_NONE)
735 continue; 738 continue;
736 739
737 if (i > 0) 740 if (i > 0)
738 types_str += ','; 741 types_str += ',';
739 742
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 } 784 }
782 } 785 }
783 786
784 if (!child_ids.empty()) 787 if (!child_ids.empty())
785 result += " child_ids=" + IntVectorToString(child_ids); 788 result += " child_ids=" + IntVectorToString(child_ids);
786 789
787 return result; 790 return result;
788 } 791 }
789 792
790 } // namespace ui 793 } // namespace ui
OLDNEW
« no previous file with comments | « ui/accessibility/ax_enums.idl ('k') | ui/accessibility/ax_tree_combiner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698