| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cc/scrollbar_layer.h" | 5 #include "cc/scrollbar_layer.h" |
| 6 | 6 |
| 7 #include "cc/animation/scrollbar_animation_controller.h" | 7 #include "cc/animation/scrollbar_animation_controller.h" |
| 8 #include "cc/append_quads_data.h" | 8 #include "cc/append_quads_data.h" |
| 9 #include "cc/prioritized_resource_manager.h" | |
| 10 #include "cc/priority_calculator.h" | |
| 11 #include "cc/quads/solid_color_draw_quad.h" | 9 #include "cc/quads/solid_color_draw_quad.h" |
| 12 #include "cc/resource_update_queue.h" | 10 #include "cc/resources/prioritized_resource_manager.h" |
| 11 #include "cc/resources/priority_calculator.h" |
| 12 #include "cc/resources/resource_update_queue.h" |
| 13 #include "cc/scrollbar_layer_impl.h" | 13 #include "cc/scrollbar_layer_impl.h" |
| 14 #include "cc/test/fake_impl_proxy.h" | 14 #include "cc/test/fake_impl_proxy.h" |
| 15 #include "cc/test/fake_layer_tree_host_client.h" | 15 #include "cc/test/fake_layer_tree_host_client.h" |
| 16 #include "cc/test/fake_layer_tree_host_impl.h" | 16 #include "cc/test/fake_layer_tree_host_impl.h" |
| 17 #include "cc/test/fake_scrollbar_theme_painter.h" | 17 #include "cc/test/fake_scrollbar_theme_painter.h" |
| 18 #include "cc/test/fake_web_scrollbar.h" | 18 #include "cc/test/fake_web_scrollbar.h" |
| 19 #include "cc/test/fake_web_scrollbar_theme_geometry.h" | 19 #include "cc/test/fake_web_scrollbar_theme_geometry.h" |
| 20 #include "cc/test/geometry_test_utils.h" | 20 #include "cc/test/geometry_test_utils.h" |
| 21 #include "cc/test/layer_tree_test_common.h" | 21 #include "cc/test/layer_tree_test_common.h" |
| 22 #include "cc/test/mock_quad_culler.h" | 22 #include "cc/test/mock_quad_culler.h" |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 EXPECT_EQ(10, pinchZoomHorizontal->CurrentPos()); | 402 EXPECT_EQ(10, pinchZoomHorizontal->CurrentPos()); |
| 403 EXPECT_EQ(100, pinchZoomHorizontal->TotalSize()); | 403 EXPECT_EQ(100, pinchZoomHorizontal->TotalSize()); |
| 404 EXPECT_EQ(30, pinchZoomHorizontal->Maximum()); | 404 EXPECT_EQ(30, pinchZoomHorizontal->Maximum()); |
| 405 EXPECT_EQ(20, pinchZoomVertical->CurrentPos()); | 405 EXPECT_EQ(20, pinchZoomVertical->CurrentPos()); |
| 406 EXPECT_EQ(200, pinchZoomVertical->TotalSize()); | 406 EXPECT_EQ(200, pinchZoomVertical->TotalSize()); |
| 407 EXPECT_EQ(50, pinchZoomVertical->Maximum()); | 407 EXPECT_EQ(50, pinchZoomVertical->Maximum()); |
| 408 } | 408 } |
| 409 | 409 |
| 410 } // namespace | 410 } // namespace |
| 411 } // namespace cc | 411 } // namespace cc |
| OLD | NEW |