| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 return true; | 194 return true; |
| 195 } | 195 } |
| 196 | 196 |
| 197 return false; | 197 return false; |
| 198 } | 198 } |
| 199 | 199 |
| 200 bool AXNodeData::GetHtmlAttribute( | 200 bool AXNodeData::GetHtmlAttribute( |
| 201 const char* html_attr, std::string* value) const { | 201 const char* html_attr, std::string* value) const { |
| 202 for (size_t i = 0; i < html_attributes.size(); ++i) { | 202 for (size_t i = 0; i < html_attributes.size(); ++i) { |
| 203 const std::string& attr = html_attributes[i].first; | 203 const std::string& attr = html_attributes[i].first; |
| 204 if (LowerCaseEqualsASCII(attr, html_attr)) { | 204 if (base::LowerCaseEqualsASCII(attr, html_attr)) { |
| 205 *value = html_attributes[i].second; | 205 *value = html_attributes[i].second; |
| 206 return true; | 206 return true; |
| 207 } | 207 } |
| 208 } | 208 } |
| 209 | 209 |
| 210 return false; | 210 return false; |
| 211 } | 211 } |
| 212 | 212 |
| 213 bool AXNodeData::GetHtmlAttribute( | 213 bool AXNodeData::GetHtmlAttribute( |
| 214 const char* html_attr, base::string16* value) const { | 214 const char* html_attr, base::string16* value) const { |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 } | 660 } |
| 661 } | 661 } |
| 662 | 662 |
| 663 if (!child_ids.empty()) | 663 if (!child_ids.empty()) |
| 664 result += " child_ids=" + IntVectorToString(child_ids); | 664 result += " child_ids=" + IntVectorToString(child_ids); |
| 665 | 665 |
| 666 return result; | 666 return result; |
| 667 } | 667 } |
| 668 | 668 |
| 669 } // namespace ui | 669 } // namespace ui |
| OLD | NEW |