OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/dom/ClientRect.h" | 5 #include "core/dom/ClientRect.h" |
6 #include "core/frame/LocalFrameView.h" | 6 #include "core/frame/LocalFrameView.h" |
| 7 #include "core/frame/WebLocalFrameBase.h" |
7 #include "core/input/EventHandler.h" | 8 #include "core/input/EventHandler.h" |
8 #include "core/layout/LayoutView.h" | 9 #include "core/layout/LayoutView.h" |
9 #include "core/paint/PaintLayerScrollableArea.h" | 10 #include "core/paint/PaintLayerScrollableArea.h" |
10 #include "platform/scroll/MainThreadScrollingReason.h" | 11 #include "platform/scroll/MainThreadScrollingReason.h" |
11 #include "platform/scroll/ScrollerSizeMetrics.h" | 12 #include "platform/scroll/ScrollerSizeMetrics.h" |
12 #include "platform/testing/HistogramTester.h" | 13 #include "platform/testing/HistogramTester.h" |
13 #include "platform/testing/TestingPlatformSupport.h" | 14 #include "platform/testing/TestingPlatformSupport.h" |
14 #include "platform/testing/UnitTestHelpers.h" | 15 #include "platform/testing/UnitTestHelpers.h" |
15 #include "web/WebLocalFrameImpl.h" | |
16 #include "web/tests/sim/SimDisplayItemList.h" | 16 #include "web/tests/sim/SimDisplayItemList.h" |
17 #include "web/tests/sim/SimRequest.h" | 17 #include "web/tests/sim/SimRequest.h" |
18 #include "web/tests/sim/SimTest.h" | 18 #include "web/tests/sim/SimTest.h" |
19 | 19 |
20 #define EXPECT_WHEEL_BUCKET(reason, count) \ | 20 #define EXPECT_WHEEL_BUCKET(reason, count) \ |
21 histogram_tester.ExpectBucketCount( \ | 21 histogram_tester.ExpectBucketCount( \ |
22 "Renderer4.MainThreadWheelScrollReason", \ | 22 "Renderer4.MainThreadWheelScrollReason", \ |
23 GetBucketIndex(MainThreadScrollingReason::reason), count); | 23 GetBucketIndex(MainThreadScrollingReason::reason), count); |
24 | 24 |
25 #define EXPECT_TOUCH_BUCKET(reason, count) \ | 25 #define EXPECT_TOUCH_BUCKET(reason, count) \ |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 EXPECT_WHEEL_BUCKET(kBackgroundNotOpaqueInRectAndLCDText, 1); | 349 EXPECT_WHEEL_BUCKET(kBackgroundNotOpaqueInRectAndLCDText, 1); |
350 EXPECT_WHEEL_BUCKET(kIsNotStackingContextAndLCDText, 1); | 350 EXPECT_WHEEL_BUCKET(kIsNotStackingContextAndLCDText, 1); |
351 EXPECT_WHEEL_BUCKET(kHasBorderRadius, 1); | 351 EXPECT_WHEEL_BUCKET(kHasBorderRadius, 1); |
352 EXPECT_WHEEL_BUCKET(kHasTransformAndLCDText, 0); | 352 EXPECT_WHEEL_BUCKET(kHasTransformAndLCDText, 0); |
353 EXPECT_WHEEL_TOTAL(4); | 353 EXPECT_WHEEL_TOTAL(4); |
354 } | 354 } |
355 | 355 |
356 } // namespace | 356 } // namespace |
357 | 357 |
358 } // namespace blink | 358 } // namespace blink |
OLD | NEW |