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

Unified Diff: components/test_runner/web_test_proxy.cc

Issue 1903043002: Use correct WebView from AccessibilityController. (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 83429eadff8de04099f4825b95cd72b99fbe7afa..2677a32553a1163eed757b9ce6d56525023f9d63 100644
--- a/components/test_runner/web_test_proxy.cc
+++ b/components/test_runner/web_test_proxy.cc
@@ -7,6 +7,7 @@
#include <stddef.h>
#include <stdint.h>
+#include "components/test_runner/accessibility_controller.h"
#include "components/test_runner/event_sender.h"
#include "components/test_runner/mock_screen_orientation_client.h"
#include "components/test_runner/test_interfaces.h"
@@ -22,6 +23,7 @@ WebTestProxyBase::WebTestProxyBase()
delegate_(nullptr),
web_view_(nullptr),
web_widget_(nullptr),
+ accessibility_controller_(new AccessibilityController(this)),
event_sender_(new EventSender(this)),
text_input_controller_(new TextInputController(this)) {}
@@ -39,11 +41,13 @@ void WebTestProxyBase::SetSendWheelGestures(bool send_gestures) {
}
void WebTestProxyBase::Reset() {
+ accessibility_controller_->Reset();
event_sender_->Reset();
// text_input_controller_ doesn't have any state to reset.
}
void WebTestProxyBase::BindTo(blink::WebLocalFrame* frame) {
+ accessibility_controller_->Install(frame);
event_sender_->Install(frame);
text_input_controller_->Install(frame);
}
« 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