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 ScrollState_h | 5 #ifndef ScrollState_h |
6 #define ScrollState_h | 6 #define ScrollState_h |
7 | 7 |
8 #include "bindings/core/v8/ExceptionState.h" | 8 #include "bindings/core/v8/ExceptionState.h" |
9 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
10 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // True if this is the last event for this scroll. | 48 // True if this is the last event for this scroll. |
49 bool isEnding() const { return m_isEnding; } | 49 bool isEnding() const { return m_isEnding; } |
50 // True if this scroll is the direct result of user input. | 50 // True if this scroll is the direct result of user input. |
51 bool fromUserInput() const { return m_fromUserInput; } | 51 bool fromUserInput() const { return m_fromUserInput; } |
52 // True if this scroll is allowed to bubble upwards. | 52 // True if this scroll is allowed to bubble upwards. |
53 bool shouldPropagate() const { return m_shouldPropagate; } | 53 bool shouldPropagate() const { return m_shouldPropagate; } |
54 | 54 |
55 // Non web exposed methods. | 55 // Non web exposed methods. |
56 void consumeDeltaNative(double x, double y); | 56 void consumeDeltaNative(double x, double y); |
57 | 57 |
| 58 // TODO(tdresser): this needs to be web exposed. See crbug.com/483091. |
58 void setScrollChain(WillBeHeapDeque<RefPtrWillBeMember<Element>> scrollChain
) | 59 void setScrollChain(WillBeHeapDeque<RefPtrWillBeMember<Element>> scrollChain
) |
59 { | 60 { |
60 m_scrollChain = scrollChain; | 61 m_scrollChain = scrollChain; |
61 } | 62 } |
62 | 63 |
63 void setCurrentNativeScrollingElement(Element* element) | 64 void setCurrentNativeScrollingElement(Element* element) |
64 { | 65 { |
65 m_currentNativeScrollingElement = element; | 66 m_currentNativeScrollingElement = element; |
66 } | 67 } |
67 | 68 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // Whether the scroll sequence has had any delta consumed, in the | 112 // Whether the scroll sequence has had any delta consumed, in the |
112 // current frame, or any child frames. | 113 // current frame, or any child frames. |
113 bool m_deltaConsumedForScrollSequence; | 114 bool m_deltaConsumedForScrollSequence; |
114 | 115 |
115 WillBeHeapDeque<RefPtrWillBeMember<Element>> m_scrollChain; | 116 WillBeHeapDeque<RefPtrWillBeMember<Element>> m_scrollChain; |
116 }; | 117 }; |
117 | 118 |
118 } // namespace blink | 119 } // namespace blink |
119 | 120 |
120 #endif // ScrollState_h | 121 #endif // ScrollState_h |
OLD | NEW |