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

Unified Diff: cc/trees/layer_tree_host_unittest_scroll.cc

Issue 952893003: Update from https://crrev.com/317530 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix gn for nacl Created 5 years, 10 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_unittest_no_message_loop.cc ('k') | cc/trees/layer_tree_impl.h » ('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 03a086060ba9b076fee9aeeda2108b7ce566cae2..547ece77c2094128d56a6513eab8a54d588b0fe8 100644
--- a/cc/trees/layer_tree_host_unittest_scroll.cc
+++ b/cc/trees/layer_tree_host_unittest_scroll.cc
@@ -582,12 +582,12 @@ class LayerTreeHostScrollTestCaseWithChild : public LayerTreeHostScrollTest {
EXPECT_EQ(device_scale_factor_, impl->active_tree()->device_scale_factor());
switch (impl->active_tree()->source_frame_number()) {
case 0: {
- // Gesture scroll on impl thread.
+ // GESTURE scroll on impl thread.
InputHandler::ScrollStatus status = impl->ScrollBegin(
gfx::ToCeiledPoint(expected_scroll_layer_impl->position() -
gfx::Vector2dF(0.5f, 0.5f)),
- InputHandler::Gesture);
- EXPECT_EQ(InputHandler::ScrollStarted, status);
+ InputHandler::GESTURE);
+ EXPECT_EQ(InputHandler::SCROLL_STARTED, status);
impl->ScrollBy(gfx::Point(), scroll_amount_);
impl->ScrollEnd();
@@ -599,12 +599,12 @@ class LayerTreeHostScrollTestCaseWithChild : public LayerTreeHostScrollTest {
break;
}
case 1: {
- // Wheel scroll on impl thread.
+ // WHEEL scroll on impl thread.
InputHandler::ScrollStatus status = impl->ScrollBegin(
gfx::ToCeiledPoint(expected_scroll_layer_impl->position() +
gfx::Vector2dF(0.5f, 0.5f)),
- InputHandler::Wheel);
- EXPECT_EQ(InputHandler::ScrollStarted, status);
+ InputHandler::WHEEL);
+ EXPECT_EQ(InputHandler::SCROLL_STARTED, status);
impl->ScrollBy(gfx::Point(), scroll_amount_);
impl->ScrollEnd();
@@ -1040,23 +1040,23 @@ class LayerTreeHostScrollTestScrollZeroMaxScrollOffset
scroll_layer->SetBounds(
gfx::Size(root->bounds().width() + 100, root->bounds().height() + 100));
EXPECT_EQ(
- InputHandler::ScrollStarted,
- scroll_layer->TryScroll(gfx::PointF(0.0f, 1.0f), InputHandler::Gesture,
- ScrollBlocksOnNone));
+ InputHandler::SCROLL_STARTED,
+ scroll_layer->TryScroll(gfx::PointF(0.0f, 1.0f), InputHandler::GESTURE,
+ SCROLL_BLOCKS_ON_NONE));
// Set max_scroll_offset = (0, 0).
scroll_layer->SetBounds(root->bounds());
EXPECT_EQ(
- InputHandler::ScrollIgnored,
- scroll_layer->TryScroll(gfx::PointF(0.0f, 1.0f), InputHandler::Gesture,
- ScrollBlocksOnNone));
+ InputHandler::SCROLL_IGNORED,
+ scroll_layer->TryScroll(gfx::PointF(0.0f, 1.0f), InputHandler::GESTURE,
+ SCROLL_BLOCKS_ON_NONE));
// Set max_scroll_offset = (-100, -100).
scroll_layer->SetBounds(gfx::Size());
EXPECT_EQ(
- InputHandler::ScrollIgnored,
- scroll_layer->TryScroll(gfx::PointF(0.0f, 1.0f), InputHandler::Gesture,
- ScrollBlocksOnNone));
+ InputHandler::SCROLL_IGNORED,
+ scroll_layer->TryScroll(gfx::PointF(0.0f, 1.0f), InputHandler::GESTURE,
+ SCROLL_BLOCKS_ON_NONE));
EndTest();
}
« no previous file with comments | « cc/trees/layer_tree_host_unittest_no_message_loop.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698