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

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

Issue 133263004: Unifies LayerTreeHost::SetNeedsUpdateLayers and SetNeedsAnimate -- V2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mojo build Created 6 years, 11 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
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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/WebTestProxy.h ('k') | content/test/web_layer_tree_view_impl_for_testing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698