Lines Matching defs:scroll_info
200 static void ExpectContains(const ScrollAndScaleSet& scroll_info,
205 for (size_t i = 0; i < scroll_info.scrolls.size(); ++i) {
206 if (scroll_info.scrolls[i].layer_id != id)
208 EXPECT_VECTOR_EQ(scroll_delta, scroll_info.scrolls[i].scroll_delta);
215 static void ExpectNone(const ScrollAndScaleSet& scroll_info, int id) {
218 for (size_t i = 0; i < scroll_info.scrolls.size(); ++i) {
219 if (scroll_info.scrolls[i].layer_id != id)
430 scoped_ptr<ScrollAndScaleSet> scroll_info = host_impl_->ProcessScrollDeltas();
431 ASSERT_EQ(scroll_info->scrolls.size(), 0u);
452 scoped_ptr<ScrollAndScaleSet> scroll_info;
454 scroll_info = host_impl_->ProcessScrollDeltas();
455 ASSERT_EQ(scroll_info->scrolls.size(), 0u);
458 scroll_info = host_impl_->ProcessScrollDeltas();
459 ASSERT_EQ(scroll_info->scrolls.size(), 0u);
482 scoped_ptr<ScrollAndScaleSet> scroll_info;
484 scroll_info = host_impl_->ProcessScrollDeltas();
485 ASSERT_EQ(scroll_info->scrolls.size(), 1u);
487 ExpectContains(*scroll_info, root->id(), scroll_delta);
491 scroll_info = host_impl_->ProcessScrollDeltas();
492 ASSERT_EQ(scroll_info->scrolls.size(), 1u);
494 ExpectContains(*scroll_info, root->id(), scroll_delta + scroll_delta2);
497 scroll_info = host_impl_->ProcessScrollDeltas();
577 scoped_ptr<ScrollAndScaleSet> scroll_info = host_impl_->ProcessScrollDeltas();
578 ExpectContains(*scroll_info, scroll_layer->id(), scroll_delta);
953 scoped_ptr<ScrollAndScaleSet> scroll_info =
955 EXPECT_EQ(scroll_info->page_scale_delta, page_scale_delta);
983 scoped_ptr<ScrollAndScaleSet> scroll_info =
985 ExpectContains(*scroll_info.get(),
1004 scoped_ptr<ScrollAndScaleSet> scroll_info = host_impl_->ProcessScrollDeltas();
1005 EXPECT_EQ(1u, scroll_info->swap_promises.size());
1006 EXPECT_EQ(latency_info.trace_id, scroll_info->swap_promises[0]->TraceId());
1037 scoped_ptr<ScrollAndScaleSet> scroll_info =
1039 EXPECT_EQ(scroll_info->page_scale_delta, page_scale_delta);
1056 scoped_ptr<ScrollAndScaleSet> scroll_info =
1058 EXPECT_EQ(scroll_info->page_scale_delta, max_page_scale);
1076 scoped_ptr<ScrollAndScaleSet> scroll_info =
1078 EXPECT_EQ(scroll_info->page_scale_delta, min_page_scale);
1080 EXPECT_TRUE(scroll_info->scrolls.empty());
1099 scoped_ptr<ScrollAndScaleSet> scroll_info =
1101 EXPECT_EQ(scroll_info->page_scale_delta, page_scale_delta);
1102 EXPECT_TRUE(scroll_info->scrolls.empty());
1122 scoped_ptr<ScrollAndScaleSet> scroll_info =
1124 EXPECT_EQ(scroll_info->page_scale_delta, page_scale_delta);
1125 ExpectContains(*scroll_info, scroll_layer->id(), gfx::Vector2d(-10, -10));
1145 scoped_ptr<ScrollAndScaleSet> scroll_info =
1147 EXPECT_EQ(scroll_info->page_scale_delta, 2.f);
1148 ExpectContains(*scroll_info, scroll_layer->id(), gfx::Vector2d(20, 20));
1202 scoped_ptr<ScrollAndScaleSet> scroll_info =
1204 EXPECT_EQ(scroll_info->page_scale_delta, 2);
1205 ExpectContains(*scroll_info, scroll_layer->id(), gfx::Vector2d(-50, -50));
1237 scoped_ptr<ScrollAndScaleSet> scroll_info =
1239 EXPECT_EQ(scroll_info->page_scale_delta, min_page_scale);
1241 scroll_info, scroll_layer->id(), gfx::Vector2d(-50, -50));
1277 scoped_ptr<ScrollAndScaleSet> scroll_info =
1279 EXPECT_EQ(scroll_info->page_scale_delta, 1);
1280 ExpectNone(*scroll_info, scroll_layer->id());
1365 scoped_ptr<ScrollAndScaleSet> scroll_info = host_impl_->ProcessScrollDeltas();
1366 EXPECT_EQ(scroll_info->page_scale_delta, target_scale);
1367 ExpectContains(*scroll_info, scroll_layer->id(), gfx::Vector2d(-50, -50));
2699 scoped_ptr<ScrollAndScaleSet> scroll_info = host_impl_->ProcessScrollDeltas();
2700 ExpectContains(*scroll_info.get(), root_scroll->id(), expected_scroll_delta);
2754 scoped_ptr<ScrollAndScaleSet> scroll_info = host_impl_->ProcessScrollDeltas();
2755 ExpectContains(*scroll_info.get(), root_scroll->id(), expected_scroll_delta);
2862 scoped_ptr<ScrollAndScaleSet> scroll_info = host_impl_->ProcessScrollDeltas();
2864 *scroll_info.get(), child_scroll_layer_id, expected_scroll_delta);
2908 scoped_ptr<ScrollAndScaleSet> scroll_info =
2914 ExpectContains(*scroll_info.get(), grand_child->id(), gfx::Vector2d(0, -5));
2917 ExpectContains(*scroll_info.get(), child->id(), gfx::Vector2d(-3, 0));
2960 scoped_ptr<ScrollAndScaleSet> scroll_info =
2967 ExpectContains(*scroll_info.get(), grand_child->id(), gfx::Vector2d(0, -2));
2970 ExpectNone(*scroll_info.get(), child->id());
2982 scroll_info = host_impl_->ProcessScrollDeltas();
2985 ExpectContains(*scroll_info.get(), child->id(), gfx::Vector2d(0, -3));
2988 ExpectContains(*scroll_info.get(), grand_child->id(), gfx::Vector2d(0, -2));
3001 scroll_info = host_impl_->ProcessScrollDeltas();
3004 ExpectContains(*scroll_info.get(), grand_child->id(), gfx::Vector2d(0, 5));
3007 ExpectContains(*scroll_info.get(), child->id(), gfx::Vector2d(0, -3));
3022 scroll_info = host_impl_->ProcessScrollDeltas();
3025 ExpectContains(*scroll_info.get(), grand_child->id(), gfx::Vector2d(0, 4));
3061 scoped_ptr<ScrollAndScaleSet> scroll_info =
3065 ASSERT_EQ(scroll_info->scrolls.size(), 1u);
3066 ExpectContains(*scroll_info.get(), root_scroll_id, scroll_delta);
3124 scoped_ptr<ScrollAndScaleSet> scroll_info = host_impl_->ProcessScrollDeltas();
3125 ExpectContains(*scroll_info.get(),
3139 scroll_info = host_impl_->ProcessScrollDeltas();
3140 ExpectContains(*scroll_info.get(),
3192 scoped_ptr<ScrollAndScaleSet> scroll_info =
3194 ExpectContains(*scroll_info.get(), child_layer_id, expected_scroll_delta);
3198 EXPECT_EQ(scroll_info->scrolls.size(), 1u);
3216 scoped_ptr<ScrollAndScaleSet> scroll_info =
3218 ExpectContains(*scroll_info.get(), child_layer_id, expected_scroll_delta);
3226 ExpectContains(*scroll_info.get(),
3255 scoped_ptr<ScrollAndScaleSet> scroll_info = host_impl_->ProcessScrollDeltas();
3256 ExpectContains(*scroll_info.get(),
3269 scroll_info = host_impl_->ProcessScrollDeltas();
3270 ExpectContains(*scroll_info.get(),
6273 scoped_ptr<ScrollAndScaleSet> scroll_info =
6277 ASSERT_EQ(1u, scroll_info->scrolls.size());
6278 ExpectNone(*scroll_info.get(), root_id);
6306 scoped_ptr<ScrollAndScaleSet> scroll_info;
6317 scroll_info = host_impl_->ProcessScrollDeltas();
6318 ASSERT_EQ(1u, scroll_info->scrolls.size());
6319 ExpectContains(*scroll_info, grand_child->id(), scroll_delta);
6325 scroll_info = host_impl_->ProcessScrollDeltas();
6326 ASSERT_EQ(2u, scroll_info->scrolls.size());
6327 ExpectContains(*scroll_info, grand_child->id(), scroll_delta);
6328 ExpectContains(*scroll_info, child->id(), scroll_delta);
6338 scroll_info = host_impl_->ProcessScrollDeltas();
6339 ASSERT_EQ(2u, scroll_info->scrolls.size());
6340 ExpectContains(*scroll_info, grand_child->id(), scroll_delta);
6341 ExpectContains(*scroll_info, child->id(), scroll_delta + scroll_delta);
6383 scoped_ptr<ScrollAndScaleSet> scroll_info =
6387 ASSERT_EQ(2u, scroll_info->scrolls.size());
6388 ExpectContains(*scroll_info.get(), root_scroll_id, gfx::Vector2d(0, 10));