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

Unified Diff: components/test_runner/web_test_proxy.cc

Issue 1896413003: Use correct WebView from TextInputController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@event-sender-per-view
Patch Set: Rebasing... 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/web_test_proxy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/web_test_proxy.cc
diff --git a/components/test_runner/web_test_proxy.cc b/components/test_runner/web_test_proxy.cc
index 93f2a3779a2dc9129dea6cef42bbd3f4284b7a4d..83429eadff8de04099f4825b95cd72b99fbe7afa 100644
--- a/components/test_runner/web_test_proxy.cc
+++ b/components/test_runner/web_test_proxy.cc
@@ -11,6 +11,7 @@
#include "components/test_runner/mock_screen_orientation_client.h"
#include "components/test_runner/test_interfaces.h"
#include "components/test_runner/test_runner.h"
+#include "components/test_runner/text_input_controller.h"
#include "components/test_runner/web_test_delegate.h"
#include "components/test_runner/web_test_interfaces.h"
@@ -21,7 +22,8 @@ WebTestProxyBase::WebTestProxyBase()
delegate_(nullptr),
web_view_(nullptr),
web_widget_(nullptr),
- event_sender_(new EventSender(this)) {}
+ event_sender_(new EventSender(this)),
+ text_input_controller_(new TextInputController(this)) {}
WebTestProxyBase::~WebTestProxyBase() {
test_interfaces_->WindowClosed(this);
@@ -38,10 +40,12 @@ void WebTestProxyBase::SetSendWheelGestures(bool send_gestures) {
void WebTestProxyBase::Reset() {
event_sender_->Reset();
+ // text_input_controller_ doesn't have any state to reset.
}
void WebTestProxyBase::BindTo(blink::WebLocalFrame* frame) {
event_sender_->Install(frame);
+ text_input_controller_->Install(frame);
}
void WebTestProxyBase::GetScreenOrientationForTesting(
« no previous file with comments | « components/test_runner/web_test_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698