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

Unified Diff: components/test_runner/test_runner.h

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/BUILD.gn ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/test_runner.h
diff --git a/components/test_runner/test_runner.h b/components/test_runner/test_runner.h
index 6cb454b122c379e99194ffece5b0a8bb75504a2b..a22a5dbc2efe6ec867598f6692843633e4349b31 100644
--- a/components/test_runner/test_runner.h
+++ b/components/test_runner/test_runner.h
@@ -30,6 +30,7 @@ class WebFrame;
class WebLocalFrame;
class WebString;
class WebView;
+class WebWidget;
}
namespace gin {
@@ -98,8 +99,8 @@ class TestRunner : public WebTestRunner {
void SetFocus(blink::WebView* web_view, bool focus) override;
// Methods used by WebViewTestClient and WebFrameTestClient.
- void OnAnimationScheduled(blink::WebView* view);
- void OnAnimationBegun(blink::WebView* view);
+ void OnAnimationScheduled(blink::WebWidget* widget);
+ void OnAnimationBegun(blink::WebWidget* widget);
std::string GetAcceptLanguages() const;
bool shouldStayOnPageAfterHandlingBeforeUnload() const;
MockScreenOrientationClient* getMockScreenOrientationClient();
@@ -641,7 +642,7 @@ class TestRunner : public WebTestRunner {
// is ok, because this is taken care of in WebTestDelegate::SetFocus).
blink::WebView* previously_focused_view_;
- std::set<blink::WebView*> views_with_scheduled_animations_;
+ std::set<blink::WebWidget*> widgets_with_scheduled_animations_;
base::WeakPtrFactory<TestRunner> weak_factory_;
« no previous file with comments | « components/test_runner/BUILD.gn ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698