OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "core/frame/RootFrameViewport.h" | 5 #include "core/frame/RootFrameViewport.h" |
6 | 6 |
7 #include "core/layout/ScrollAlignment.h" | 7 #include "core/layout/ScrollAlignment.h" |
8 #include "platform/geometry/DoubleRect.h" | 8 #include "platform/geometry/DoubleRect.h" |
9 #include "platform/geometry/LayoutRect.h" | 9 #include "platform/geometry/LayoutRect.h" |
| 10 #include "platform/scheduler/child/web_scheduler.h" |
10 #include "platform/scroll/ScrollableArea.h" | 11 #include "platform/scroll/ScrollableArea.h" |
11 #include "public/platform/Platform.h" | 12 #include "public/platform/Platform.h" |
12 #include "public/platform/WebScheduler.h" | |
13 #include "public/platform/WebThread.h" | 13 #include "public/platform/WebThread.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 #define EXPECT_POINT_EQ(expected, actual) \ | 16 #define EXPECT_POINT_EQ(expected, actual) \ |
17 do { \ | 17 do { \ |
18 EXPECT_EQ((expected).X(), (actual).X()); \ | 18 EXPECT_EQ((expected).X(), (actual).X()); \ |
19 EXPECT_EQ((expected).Y(), (actual).Y()); \ | 19 EXPECT_EQ((expected).Y(), (actual).Y()); \ |
20 } while (false) | 20 } while (false) |
21 #define EXPECT_SIZE_EQ(expected, actual) \ | 21 #define EXPECT_SIZE_EQ(expected, actual) \ |
22 do { \ | 22 do { \ |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 EXPECT_SIZE_EQ(ScrollOffset(150, 150), alternate_scroller->GetScrollOffset()); | 488 EXPECT_SIZE_EQ(ScrollOffset(150, 150), alternate_scroller->GetScrollOffset()); |
489 EXPECT_SIZE_EQ(ScrollOffset(200, 200), | 489 EXPECT_SIZE_EQ(ScrollOffset(200, 200), |
490 root_frame_viewport->GetScrollOffset()); | 490 root_frame_viewport->GetScrollOffset()); |
491 EXPECT_SIZE_EQ(ScrollOffset(50, 50), layout_viewport->GetScrollOffset()); | 491 EXPECT_SIZE_EQ(ScrollOffset(50, 50), layout_viewport->GetScrollOffset()); |
492 | 492 |
493 EXPECT_SIZE_EQ(ScrollOffset(550, 450), | 493 EXPECT_SIZE_EQ(ScrollOffset(550, 450), |
494 root_frame_viewport->MaximumScrollOffset()); | 494 root_frame_viewport->MaximumScrollOffset()); |
495 } | 495 } |
496 | 496 |
497 } // namespace blink | 497 } // namespace blink |
OLD | NEW |