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

Unified Diff: components/test_runner/web_test_interfaces.cc

Issue 1897363003: Use correct WebView from EventSender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed initial state of EventSender. 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
Index: components/test_runner/web_test_interfaces.cc
diff --git a/components/test_runner/web_test_interfaces.cc b/components/test_runner/web_test_interfaces.cc
index 37423cca2cb4951dfa39ff82ec517100d26c5ebd..707a19f2475ddd687702c7ff9cfb37afcee8e7d2 100644
--- a/components/test_runner/web_test_interfaces.cc
+++ b/components/test_runner/web_test_interfaces.cc
@@ -7,7 +7,6 @@
#include <utility>
#include "components/test_runner/app_banner_client.h"
-#include "components/test_runner/event_sender.h"
#include "components/test_runner/mock_web_audio_device.h"
#include "components/test_runner/mock_web_media_stream_center.h"
#include "components/test_runner/mock_web_midi_accessor.h"
@@ -36,10 +35,6 @@ void WebTestInterfaces::SetDelegate(WebTestDelegate* delegate) {
interfaces_->SetDelegate(delegate);
}
-void WebTestInterfaces::BindTo(WebFrame* frame) {
- interfaces_->BindTo(frame);
-}
-
void WebTestInterfaces::ResetAll() {
interfaces_->ResetAll();
}
@@ -53,10 +48,6 @@ void WebTestInterfaces::ConfigureForTestWithURL(const WebURL& test_url,
interfaces_->ConfigureForTestWithURL(test_url, generate_pixels);
}
-void WebTestInterfaces::SetSendWheelGestures(bool send_gestures) {
- interfaces_->GetEventSender()->set_send_wheel_gestures(send_gestures);
-}
-
WebTestRunner* WebTestInterfaces::TestRunner() {
return interfaces_->GetTestRunner();
}
@@ -96,18 +87,16 @@ WebTestInterfaces::CreateAppBannerClient() {
return std::move(client);
}
-scoped_ptr<WebFrameTestClient> WebTestInterfaces::CreateWebFrameTestClient() {
+scoped_ptr<WebFrameTestClient> WebTestInterfaces::CreateWebFrameTestClient(
+ WebTestProxyBase* web_test_proxy_base) {
return make_scoped_ptr(new WebFrameTestClient(
- interfaces_->GetTestRunner(),
- interfaces_->GetDelegate(),
- interfaces_->GetAccessibilityController(),
- interfaces_->GetEventSender()));
+ interfaces_->GetTestRunner(), interfaces_->GetDelegate(),
+ interfaces_->GetAccessibilityController(), web_test_proxy_base));
}
scoped_ptr<WebViewTestClient> WebTestInterfaces::CreateWebViewTestClient(
WebTestProxyBase* web_test_proxy_base) {
return make_scoped_ptr(new WebViewTestClient(interfaces_->GetTestRunner(),
- interfaces_->GetEventSender(),
web_test_proxy_base));
}

Powered by Google App Engine
This is Rietveld 408576698