| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 | 919 |
| 920 if (i > 0) | 920 if (i > 0) |
| 921 types_str += ','; | 921 types_str += ','; |
| 922 | 922 |
| 923 if (type & AX_MARKER_TYPE_SPELLING) | 923 if (type & AX_MARKER_TYPE_SPELLING) |
| 924 types_str += "spelling&"; | 924 types_str += "spelling&"; |
| 925 if (type & AX_MARKER_TYPE_GRAMMAR) | 925 if (type & AX_MARKER_TYPE_GRAMMAR) |
| 926 types_str += "grammar&"; | 926 types_str += "grammar&"; |
| 927 if (type & AX_MARKER_TYPE_TEXT_MATCH) | 927 if (type & AX_MARKER_TYPE_TEXT_MATCH) |
| 928 types_str += "text_match&"; | 928 types_str += "text_match&"; |
| 929 if (type & AX_MARKER_TYPE_ACTIVE_SUGGESTION) |
| 930 types_str += "active_suggestion&"; |
| 929 | 931 |
| 930 if (!types_str.empty()) | 932 if (!types_str.empty()) |
| 931 types_str = types_str.substr(0, types_str.size() - 1); | 933 types_str = types_str.substr(0, types_str.size() - 1); |
| 932 } | 934 } |
| 933 | 935 |
| 934 if (!types_str.empty()) | 936 if (!types_str.empty()) |
| 935 result += " marker_types=" + types_str; | 937 result += " marker_types=" + types_str; |
| 936 break; | 938 break; |
| 937 } | 939 } |
| 938 case AX_ATTR_MARKER_STARTS: | 940 case AX_ATTR_MARKER_STARTS: |
| (...skipping 27 matching lines...) Expand all Loading... |
| 966 | 968 |
| 967 result += " actions=" + ActionsBitfieldToString(actions); | 969 result += " actions=" + ActionsBitfieldToString(actions); |
| 968 | 970 |
| 969 if (!child_ids.empty()) | 971 if (!child_ids.empty()) |
| 970 result += " child_ids=" + IntVectorToString(child_ids); | 972 result += " child_ids=" + IntVectorToString(child_ids); |
| 971 | 973 |
| 972 return result; | 974 return result; |
| 973 } | 975 } |
| 974 | 976 |
| 975 } // namespace ui | 977 } // namespace ui |
| OLD | NEW |