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

Unified Diff: components/test_runner/test_runner.h

Issue 1840823002: Extract WebViewClient implementation out of WebTestProxyBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@separate-pixel-dump-code
Patch Set: Expanding a comment + an IWYU fix. 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/event_sender.cc ('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 becad97f794b082f8661b6918cb6af043b51074a..f82ce89f9e81b1f61a13e448d2c150bd43a7c55d 100644
--- a/components/test_runner/test_runner.h
+++ b/components/test_runner/test_runner.h
@@ -43,6 +43,7 @@ namespace test_runner {
class InvokeCallbackTask;
class MockScreenOrientationClient;
+class MockWebSpeechRecognizer;
class MockWebUserMediaClient;
class TestInterfaces;
class WebContentSettings;
@@ -86,11 +87,14 @@ class TestRunner : public WebTestRunner,
bool ShouldDumpBackForwardList() const override;
blink::WebContentSettingsClient* GetWebContentSettings() const override;
- // Methods used by WebTestProxyBase and WebFrameTestClient.
+ // Methods used by WebViewTestClient and WebFrameTestClient.
+ void OnAnimationScheduled(blink::WebView* view);
+ void OnAnimationBegun(blink::WebView* view);
std::string GetAcceptLanguages() const;
bool shouldStayOnPageAfterHandlingBeforeUnload() const;
MockScreenOrientationClient* getMockScreenOrientationClient();
MockWebUserMediaClient* getMockWebUserMediaClient();
+ MockWebSpeechRecognizer* getMockWebSpeechRecognizer();
bool isPrinting() const;
bool shouldDumpAsTextWithPixelResults();
bool shouldDumpAsCustomText() const;
@@ -348,7 +352,9 @@ class TestRunner : public WebTestRunner,
// Enable or disable plugins.
void SetPluginsEnabled(bool enabled);
- bool AnimationScheduled();
+ // Returns |true| if an animation has been scheduled in one or more WebViews
+ // participating in the layout test.
+ bool GetAnimationScheduled() const;
///////////////////////////////////////////////////////////////////////////
// Methods that modify the state of TestRunner
@@ -808,6 +814,7 @@ class TestRunner : public WebTestRunner,
bool use_mock_theme_;
scoped_ptr<MockScreenOrientationClient> mock_screen_orientation_client_;
+ scoped_ptr<MockWebSpeechRecognizer> speech_recognizer_;
scoped_ptr<MockWebUserMediaClient> user_media_client_;
// Number of currently active color choosers.
@@ -816,6 +823,8 @@ class TestRunner : public WebTestRunner,
// Captured drag image.
blink::WebImage drag_image_;
+ std::set<blink::WebView*> views_with_scheduled_animations_;
+
base::WeakPtrFactory<TestRunner> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(TestRunner);
« no previous file with comments | « components/test_runner/event_sender.cc ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698