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

Unified Diff: content/shell/renderer/layout_test/layout_test_content_renderer_client.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: content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
diff --git a/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc b/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
index 2f7fca7b76352749c06dad1a860342d63de12cf3..c09bf620450ea2bdf317e145ce3a1d4b1e0f2f57 100644
--- a/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
+++ b/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc
@@ -13,8 +13,10 @@
#include "components/test_runner/web_test_proxy.h"
#include "components/test_runner/web_test_runner.h"
#include "components/web_cache/renderer/web_cache_render_thread_observer.h"
+#include "content/common/input/input_event_utils.h"
#include "content/public/common/content_constants.h"
#include "content/public/common/content_switches.h"
+#include "content/public/renderer/render_frame.h"
#include "content/public/renderer/render_view.h"
#include "content/public/test/layouttest_support.h"
#include "content/shell/common/shell_switches.h"
@@ -68,9 +70,11 @@ void WebTestProxyCreated(RenderView* render_view,
void WebFrameTestProxyCreated(RenderFrame* render_frame,
test_runner::WebFrameTestProxyBase* proxy) {
+ test_runner::WebTestProxyBase* web_test_proxy_base =
+ GetWebTestProxyBase(render_frame->GetRenderView());
proxy->set_test_client(LayoutTestRenderThreadObserver::GetInstance()
->test_interfaces()
- ->CreateWebFrameTestClient());
+ ->CreateWebFrameTestClient(web_test_proxy_base));
}
} // namespace
@@ -100,6 +104,7 @@ void LayoutTestContentRendererClient::RenderViewCreated(
test_runner::WebTestProxyBase* proxy = GetWebTestProxyBase(render_view);
proxy->set_web_widget(render_view->GetWebView());
proxy->set_web_view(render_view->GetWebView());
+ proxy->SetSendWheelGestures(UseGestureBasedWheelScrolling());
BlinkTestRunner* test_runner = BlinkTestRunner::Get(render_view);
test_runner->Reset(false /* for_new_test */);

Powered by Google App Engine
This is Rietveld 408576698