| 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 "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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |