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 14 matching lines...) Expand all Loading... |
25 str += IntToString(items[i]); | 25 str += IntToString(items[i]); |
26 } | 26 } |
27 return str; | 27 return str; |
28 } | 28 } |
29 | 29 |
30 } // Anonymous namespace | 30 } // Anonymous namespace |
31 | 31 |
32 AXNodeData::AXNodeData() | 32 AXNodeData::AXNodeData() |
33 : id(-1), | 33 : id(-1), |
34 role(AX_ROLE_UNKNOWN), | 34 role(AX_ROLE_UNKNOWN), |
35 state(-1) { | 35 state(0xFFFFFFFF) { |
36 } | 36 } |
37 | 37 |
38 AXNodeData::~AXNodeData() { | 38 AXNodeData::~AXNodeData() { |
39 } | 39 } |
40 | 40 |
41 void AXNodeData::AddStringAttribute( | 41 void AXNodeData::AddStringAttribute( |
42 AXStringAttribute attribute, const std::string& value) { | 42 AXStringAttribute attribute, const std::string& value) { |
43 string_attributes.push_back(std::make_pair(attribute, value)); | 43 string_attributes.push_back(std::make_pair(attribute, value)); |
44 } | 44 } |
45 | 45 |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 } | 392 } |
393 } | 393 } |
394 | 394 |
395 if (!child_ids.empty()) | 395 if (!child_ids.empty()) |
396 result += " child_ids=" + IntVectorToString(child_ids); | 396 result += " child_ids=" + IntVectorToString(child_ids); |
397 | 397 |
398 return result; | 398 return result; |
399 } | 399 } |
400 | 400 |
401 } // namespace ui | 401 } // namespace ui |
OLD | NEW |