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

Side by Side Diff: third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp

Issue 2900593002: Move many more classes to use WebLocalFrameBase over WebLocalFrameImpl. (Closed)
Patch Set: Rebase Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 11 matching lines...) Expand all
22 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */ 23 */
24 24
25 #include "core/page/scrolling/ScrollingCoordinator.h" 25 #include "core/page/scrolling/ScrollingCoordinator.h"
26 26
27 #include "core/css/CSSStyleSheet.h" 27 #include "core/css/CSSStyleSheet.h"
28 #include "core/css/StyleSheetList.h" 28 #include "core/css/StyleSheetList.h"
29 #include "core/exported/WebViewBase.h" 29 #include "core/exported/WebViewBase.h"
30 #include "core/frame/LocalFrameView.h" 30 #include "core/frame/LocalFrameView.h"
31 #include "core/frame/VisualViewport.h" 31 #include "core/frame/VisualViewport.h"
32 #include "core/frame/WebLocalFrameBase.h"
32 #include "core/html/HTMLIFrameElement.h" 33 #include "core/html/HTMLIFrameElement.h"
33 #include "core/layout/LayoutPart.h" 34 #include "core/layout/LayoutPart.h"
34 #include "core/layout/api/LayoutViewItem.h" 35 #include "core/layout/api/LayoutViewItem.h"
35 #include "core/layout/compositing/CompositedLayerMapping.h" 36 #include "core/layout/compositing/CompositedLayerMapping.h"
36 #include "core/layout/compositing/PaintLayerCompositor.h" 37 #include "core/layout/compositing/PaintLayerCompositor.h"
37 #include "core/page/Page.h" 38 #include "core/page/Page.h"
38 #include "platform/geometry/IntPoint.h" 39 #include "platform/geometry/IntPoint.h"
39 #include "platform/geometry/IntRect.h" 40 #include "platform/geometry/IntRect.h"
40 #include "platform/graphics/GraphicsLayer.h" 41 #include "platform/graphics/GraphicsLayer.h"
41 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" 42 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h"
42 #include "platform/testing/URLTestHelpers.h" 43 #include "platform/testing/URLTestHelpers.h"
43 #include "platform/testing/UnitTestHelpers.h" 44 #include "platform/testing/UnitTestHelpers.h"
44 #include "public/platform/Platform.h" 45 #include "public/platform/Platform.h"
45 #include "public/platform/WebCache.h" 46 #include "public/platform/WebCache.h"
46 #include "public/platform/WebLayer.h" 47 #include "public/platform/WebLayer.h"
47 #include "public/platform/WebLayerPositionConstraint.h" 48 #include "public/platform/WebLayerPositionConstraint.h"
48 #include "public/platform/WebLayerTreeView.h" 49 #include "public/platform/WebLayerTreeView.h"
49 #include "public/platform/WebURLLoaderMockFactory.h" 50 #include "public/platform/WebURLLoaderMockFactory.h"
50 #include "public/web/WebSettings.h" 51 #include "public/web/WebSettings.h"
51 #include "public/web/WebViewClient.h" 52 #include "public/web/WebViewClient.h"
52 #include "testing/gtest/include/gtest/gtest.h" 53 #include "testing/gtest/include/gtest/gtest.h"
53 #include "web/WebLocalFrameImpl.h"
54 #include "web/tests/FrameTestHelpers.h" 54 #include "web/tests/FrameTestHelpers.h"
55 55
56 namespace blink { 56 namespace blink {
57 57
58 class ScrollingCoordinatorTest : public ::testing::Test, 58 class ScrollingCoordinatorTest : public ::testing::Test,
59 public ::testing::WithParamInterface<bool>, 59 public ::testing::WithParamInterface<bool>,
60 private ScopedRootLayerScrollingForTest { 60 private ScopedRootLayerScrollingForTest {
61 public: 61 public:
62 ScrollingCoordinatorTest() 62 ScrollingCoordinatorTest()
63 : ScopedRootLayerScrollingForTest(GetParam()), 63 : ScopedRootLayerScrollingForTest(GetParam()),
(...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 ForceFullCompositingUpdate(); 1261 ForceFullCompositingUpdate();
1262 PaintLayerScrollableArea* scrollable_area2 = 1262 PaintLayerScrollableArea* scrollable_area2 =
1263 ToLayoutBoxModelObject(container2->GetLayoutObject()) 1263 ToLayoutBoxModelObject(container2->GetLayoutObject())
1264 ->GetScrollableArea(); 1264 ->GetScrollableArea();
1265 ASSERT_TRUE(scrollable_area2); 1265 ASSERT_TRUE(scrollable_area2);
1266 EXPECT_TRUE(scrollable_area2->GetNonCompositedMainThreadScrollingReasons() & 1266 EXPECT_TRUE(scrollable_area2->GetNonCompositedMainThreadScrollingReasons() &
1267 MainThreadScrollingReason::kHasBorderRadius); 1267 MainThreadScrollingReason::kHasBorderRadius);
1268 } 1268 }
1269 1269
1270 } // namespace blink 1270 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp ('k') | third_party/WebKit/Source/web/tests/VisualViewportTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698