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

Unified Diff: components/test_runner/test_runner.cc

Issue 1935593004: Extract WebWidgetTestClient out of WebTestProxyBase and WebViewTestClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test-runner-for-specific-view-separate
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/test_runner/test_runner.h ('k') | components/test_runner/test_runner.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/test_runner.cc
diff --git a/components/test_runner/test_runner.cc b/components/test_runner/test_runner.cc
index 864095584b1c709f53332b76f6275e2ba94a9a5d..72cbe6df6a8b433745921be0ef16ee682393abb5 100644
--- a/components/test_runner/test_runner.cc
+++ b/components/test_runner/test_runner.cc
@@ -1621,7 +1621,7 @@ void TestRunner::Reset() {
layout_test_runtime_flags_.Reset();
mock_screen_orientation_client_->ResetData();
drag_image_.reset();
- views_with_scheduled_animations_.clear();
+ widgets_with_scheduled_animations_.clear();
WebSecurityPolicy::resetOriginAccessWhitelists();
#if defined(__linux__) || defined(ANDROID)
@@ -2397,16 +2397,16 @@ void TestRunner::SetPluginsEnabled(bool enabled) {
}
bool TestRunner::GetAnimationScheduled() const {
- bool is_animation_scheduled = !views_with_scheduled_animations_.empty();
+ bool is_animation_scheduled = !widgets_with_scheduled_animations_.empty();
return is_animation_scheduled;
}
-void TestRunner::OnAnimationScheduled(blink::WebView* view) {
- views_with_scheduled_animations_.insert(view);
+void TestRunner::OnAnimationScheduled(blink::WebWidget* widget) {
+ widgets_with_scheduled_animations_.insert(widget);
}
-void TestRunner::OnAnimationBegun(blink::WebView* view) {
- views_with_scheduled_animations_.erase(view);
+void TestRunner::OnAnimationBegun(blink::WebWidget* widget) {
+ widgets_with_scheduled_animations_.erase(widget);
}
void TestRunner::DumpEditingCallbacks() {
« no previous file with comments | « components/test_runner/test_runner.h ('k') | components/test_runner/test_runner.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698