OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 WebMainThreadScrollingReason_h | 5 #ifndef WebMainThreadScrollingReason_h |
6 #define WebMainThreadScrollingReason_h | 6 #define WebMainThreadScrollingReason_h |
7 | 7 |
8 #include "WebCommon.h" | 8 #include "WebCommon.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 // Ensure this stays in sync with InputHandler::MainThreadScrollingReason. | 12 // Ensure this stays in sync with cc::MainThreadScrollingReason. |
13 namespace WebMainThreadScrollingReason { | 13 namespace WebMainThreadScrollingReason { |
14 enum WebMainThreadScrollingReason { | 14 enum WebMainThreadScrollingReason { |
15 NotScrollingOnMain = 0, | 15 NotScrollingOnMain = 0, |
16 HasBackgroundAttachmentFixedObjects = 1 << 0, | 16 HasBackgroundAttachmentFixedObjects = 1 << 0, |
17 HasNonLayerViewportConstrainedObjects = 1 << 1, | 17 HasNonLayerViewportConstrainedObjects = 1 << 1, |
18 ThreadedScrollingDisabled = 1 << 2, | 18 ThreadedScrollingDisabled = 1 << 2, |
19 ScrollBarScrolling = 1 << 3, | 19 ScrollBarScrolling = 1 << 3, |
20 PageOverlay = 1 << 4 | 20 PageOverlay = 1 << 4 |
21 }; | 21 }; |
22 } // namespace MainThreadScrollingReason | 22 } // namespace MainThreadScrollingReason |
23 | 23 |
24 } // namespace blink | 24 } // namespace blink |
25 | 25 |
26 #endif | 26 #endif |
OLD | NEW |