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

Unified Diff: cc/trees/layer_tree_host_unittest_scroll.cc

Issue 1052773002: cc: Add a rails argument to InputHandler::ScrollBy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comiple Created 5 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 | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | content/renderer/input/input_handler_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest_scroll.cc
diff --git a/cc/trees/layer_tree_host_unittest_scroll.cc b/cc/trees/layer_tree_host_unittest_scroll.cc
index be972e9406e7de12ac7f7d9f453d3677e716f3fe..fc8bc4ceda6be8830738858d40f8ce2e3461de65 100644
--- a/cc/trees/layer_tree_host_unittest_scroll.cc
+++ b/cc/trees/layer_tree_host_unittest_scroll.cc
@@ -593,7 +593,8 @@ class LayerTreeHostScrollTestCaseWithChild : public LayerTreeHostScrollTest {
gfx::Vector2dF(0.5f, 0.5f)),
InputHandler::GESTURE);
EXPECT_EQ(InputHandler::SCROLL_STARTED, status);
- impl->ScrollBy(gfx::Point(), scroll_amount_);
+ impl->ScrollBy(gfx::Point(), scroll_amount_,
+ InputHandler::RAILS_MODE_FREE);
impl->ScrollEnd();
// Check the scroll is applied as a delta.
@@ -610,7 +611,8 @@ class LayerTreeHostScrollTestCaseWithChild : public LayerTreeHostScrollTest {
gfx::Vector2dF(0.5f, 0.5f)),
InputHandler::WHEEL);
EXPECT_EQ(InputHandler::SCROLL_STARTED, status);
- impl->ScrollBy(gfx::Point(), scroll_amount_);
+ impl->ScrollBy(gfx::Point(), scroll_amount_,
+ InputHandler::RAILS_MODE_FREE);
impl->ScrollEnd();
// Check the scroll is applied as a delta.
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | content/renderer/input/input_handler_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698