| 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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 void WebTestProxyBase::didScrollRect(int, int, const WebRect& clipRect) | 716 void WebTestProxyBase::didScrollRect(int, int, const WebRect& clipRect) |
| 717 { | 717 { |
| 718 didInvalidateRect(clipRect); | 718 didInvalidateRect(clipRect); |
| 719 } | 719 } |
| 720 | 720 |
| 721 void WebTestProxyBase::invalidateAll() | 721 void WebTestProxyBase::invalidateAll() |
| 722 { | 722 { |
| 723 m_paintRect = WebRect(0, 0, INT_MAX, INT_MAX); | 723 m_paintRect = WebRect(0, 0, INT_MAX, INT_MAX); |
| 724 } | 724 } |
| 725 | 725 |
| 726 void WebTestProxyBase::scheduleComposite() | 726 void WebTestProxyBase::ScheduleComposite() |
| 727 { | 727 { |
| 728 invalidateAll(); | 728 invalidateAll(); |
| 729 } | 729 } |
| 730 | 730 |
| 731 void WebTestProxyBase::scheduleAnimation() | 731 void WebTestProxyBase::ScheduleAnimation() |
| 732 { | 732 { |
| 733 if (!m_testInterfaces->testRunner()->testIsRunning()) | 733 if (!m_testInterfaces->testRunner()->testIsRunning()) |
| 734 return; | 734 return; |
| 735 | 735 |
| 736 if (!m_animateScheduled) { | 736 if (!m_animateScheduled) { |
| 737 m_animateScheduled = true; | 737 m_animateScheduled = true; |
| 738 m_delegate->postDelayedTask(new HostMethodTask(this, &WebTestProxyBase::
animateNow), 1); | 738 m_delegate->postDelayedTask(new HostMethodTask(this, &WebTestProxyBase::
animateNow), 1); |
| 739 } | 739 } |
| 740 } | 740 } |
| 741 | 741 |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1361 | 1361 |
| 1362 void WebTestProxyBase::resetInputMethod() | 1362 void WebTestProxyBase::resetInputMethod() |
| 1363 { | 1363 { |
| 1364 // If a composition text exists, then we need to let the browser process | 1364 // If a composition text exists, then we need to let the browser process |
| 1365 // to cancel the input method's ongoing composition session. | 1365 // to cancel the input method's ongoing composition session. |
| 1366 if (m_webWidget) | 1366 if (m_webWidget) |
| 1367 m_webWidget->confirmComposition(); | 1367 m_webWidget->confirmComposition(); |
| 1368 } | 1368 } |
| 1369 | 1369 |
| 1370 } | 1370 } |
| OLD | NEW |