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

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

Issue 113403006: Update some uses of char16 to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 } 284 }
285 285
286 if (!recursive) 286 if (!recursive)
287 return result; 287 return result;
288 for (WebFrame* child = frame->firstChild(); child; child = child->nextSiblin g()) 288 for (WebFrame* child = frame->firstChild(); child; child = child->nextSiblin g())
289 result += dumpFrameScrollPosition(child, recursive); 289 result += dumpFrameScrollPosition(child, recursive);
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 base::char16 operator()(base::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 base::string16 target1 = item1.target(); 300 base::string16 target1 = item1.target();
301 base::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;
(...skipping 1053 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/renderer/render_view_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698