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

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

Issue 1172753003: Move LowerCaseEqualsASCII to base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util
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
« no previous file with comments | « pdf/document_loader.cc ('k') | ui/base/l10n/l10n_util.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 <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
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
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
OLDNEW
« no previous file with comments | « pdf/document_loader.cc ('k') | ui/base/l10n/l10n_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698