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

Side by Side Diff: content/shell/renderer/test_runner/WebTestProxy.cpp

Issue 113653003: Add base:: to straggling string16 in content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « content/shell/renderer/test_runner/SpellCheckClient.cpp ('k') | no next file » | 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 "content/shell/renderer/test_runner/WebTestProxy.h" 5 #include "content/shell/renderer/test_runner/WebTestProxy.h"
6 6
7 #include <cctype> 7 #include <cctype>
8 8
9 #include "content/shell/renderer/test_runner/AccessibilityController.h" 9 #include "content/shell/renderer/test_runner/AccessibilityController.h"
10 #include "content/shell/renderer/test_runner/EventSender.h" 10 #include "content/shell/renderer/test_runner/EventSender.h"
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 return result; 290 return result;
291 } 291 }
292 292
293 struct ToLower { 293 struct ToLower {
294 char16 operator()(char16 c) { return tolower(c); } 294 char16 operator()(char16 c) { return tolower(c); }
295 }; 295 };
296 296
297 // Returns True if item1 < item2. 297 // Returns True if item1 < item2.
298 bool HistoryItemCompareLess(const WebHistoryItem& item1, const WebHistoryItem& i tem2) 298 bool HistoryItemCompareLess(const WebHistoryItem& item1, const WebHistoryItem& i tem2)
299 { 299 {
300 string16 target1 = item1.target(); 300 base::string16 target1 = item1.target();
301 string16 target2 = item2.target(); 301 base::string16 target2 = item2.target();
302 std::transform(target1.begin(), target1.end(), target1.begin(), ToLower()); 302 std::transform(target1.begin(), target1.end(), target1.begin(), ToLower());
303 std::transform(target2.begin(), target2.end(), target2.begin(), ToLower()); 303 std::transform(target2.begin(), target2.end(), target2.begin(), ToLower());
304 return target1 < target2; 304 return target1 < target2;
305 } 305 }
306 306
307 string dumpHistoryItem(const WebHistoryItem& item, int indent, bool isCurrent) 307 string dumpHistoryItem(const WebHistoryItem& item, int indent, bool isCurrent)
308 { 308 {
309 string result; 309 string result;
310 310
311 if (isCurrent) { 311 if (isCurrent) {
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
1358 1358
1359 void WebTestProxyBase::resetInputMethod() 1359 void WebTestProxyBase::resetInputMethod()
1360 { 1360 {
1361 // If a composition text exists, then we need to let the browser process 1361 // If a composition text exists, then we need to let the browser process
1362 // to cancel the input method's ongoing composition session. 1362 // to cancel the input method's ongoing composition session.
1363 if (m_webWidget) 1363 if (m_webWidget)
1364 m_webWidget->confirmComposition(); 1364 m_webWidget->confirmComposition();
1365 } 1365 }
1366 1366
1367 } 1367 }
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/SpellCheckClient.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698