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

Unified Diff: content/shell/renderer/layout_test/layout_test_render_process_observer.cc

Issue 1806103002: Send wheel gestures from event sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Collapse gesture sending into a single function Created 4 years, 9 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_interfaces.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/layout_test/layout_test_render_process_observer.cc
diff --git a/content/shell/renderer/layout_test/layout_test_render_process_observer.cc b/content/shell/renderer/layout_test/layout_test_render_process_observer.cc
index 02f1815125cf81e14a7db29fe0fc56fcd084e0ce..d62ae5838cfeeacd1d09904fc55085997255e65a 100644
--- a/content/shell/renderer/layout_test/layout_test_render_process_observer.cc
+++ b/content/shell/renderer/layout_test/layout_test_render_process_observer.cc
@@ -5,7 +5,10 @@
#include "content/shell/renderer/layout_test/layout_test_render_process_observer.h"
#include "base/command_line.h"
+#include "components/test_runner/event_sender.h"
+#include "components/test_runner/test_interfaces.h"
#include "components/test_runner/web_test_interfaces.h"
+#include "content/common/input/input_event_utils.h"
#include "content/public/common/content_client.h"
#include "content/public/renderer/render_thread.h"
#include "content/public/renderer/render_view.h"
@@ -71,6 +74,7 @@ void LayoutTestRenderProcessObserver::WebKitInitialized() {
test_interfaces_.reset(new test_runner::WebTestInterfaces);
test_interfaces_->ResetAll();
+ test_interfaces_->SetSendWheelGestures(UseGestureBasedWheelScrolling());
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableFontAntialiasing)) {
blink::setFontAntialiasingEnabledForTest(true);
« no previous file with comments | « components/test_runner/web_test_interfaces.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698