| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CC_INPUT_MAIN_THREAD_SCROLLING_REASON_H_ | 5 #ifndef CC_INPUT_MAIN_THREAD_SCROLLING_REASON_H_ |
| 6 #define CC_INPUT_MAIN_THREAD_SCROLLING_REASON_H_ | 6 #define CC_INPUT_MAIN_THREAD_SCROLLING_REASON_H_ |
| 7 | 7 |
| 8 namespace cc { | 8 namespace cc { |
| 9 | 9 |
| 10 // Ensure this stays in sync with MainThreadScrollingReason in histograms.xml. | 10 // Ensure this stays in sync with MainThreadScrollingReason in histograms.xml. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 // Transient scrolling reasons. These are computed for each scroll begin. | 21 // Transient scrolling reasons. These are computed for each scroll begin. |
| 22 enum : uint32_t { kNonFastScrollableRegion = 1 << 5 }; | 22 enum : uint32_t { kNonFastScrollableRegion = 1 << 5 }; |
| 23 enum : uint32_t { kEventHandlers = 1 << 6 }; | 23 enum : uint32_t { kEventHandlers = 1 << 6 }; |
| 24 enum : uint32_t { kFailedHitTest = 1 << 7 }; | 24 enum : uint32_t { kFailedHitTest = 1 << 7 }; |
| 25 enum : uint32_t { kNoScrollingLayer = 1 << 8 }; | 25 enum : uint32_t { kNoScrollingLayer = 1 << 8 }; |
| 26 enum : uint32_t { kNotScrollable = 1 << 9 }; | 26 enum : uint32_t { kNotScrollable = 1 << 9 }; |
| 27 enum : uint32_t { kContinuingMainThreadScroll = 1 << 10 }; | 27 enum : uint32_t { kContinuingMainThreadScroll = 1 << 10 }; |
| 28 enum : uint32_t { kNonInvertibleTransform = 1 << 11 }; | 28 enum : uint32_t { kNonInvertibleTransform = 1 << 11 }; |
| 29 enum : uint32_t { kPageBasedScrolling = 1 << 12 }; | 29 enum : uint32_t { kPageBasedScrolling = 1 << 12 }; |
| 30 | 30 |
| 31 enum : uint32_t { kHasStickyPositionObjects = 1 << 13 }; |
| 32 |
| 31 // The number of flags in this struct (excluding itself). | 33 // The number of flags in this struct (excluding itself). |
| 32 enum : uint32_t { kMainThreadScrollingReasonCount = 14 }; | 34 enum : uint32_t { kMainThreadScrollingReasonCount = 15 }; |
| 33 }; | 35 }; |
| 34 | 36 |
| 35 } // namespace cc | 37 } // namespace cc |
| 36 | 38 |
| 37 #endif // CC_INPUT_MAIN_THREAD_SCROLLING_REASON_H_ | 39 #endif // CC_INPUT_MAIN_THREAD_SCROLLING_REASON_H_ |
| OLD | NEW |