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. | |
59 void setScrollChain(WillBeHeapDeque<RefPtrWillBeMember<Element>> scrollChain
) | 58 void setScrollChain(WillBeHeapDeque<RefPtrWillBeMember<Element>> scrollChain
) |
60 { | 59 { |
61 m_scrollChain = scrollChain; | 60 m_scrollChain = scrollChain; |
62 } | 61 } |
63 | 62 |
64 void setCurrentNativeScrollingElement(Element* element) | 63 void setCurrentNativeScrollingElement(Element* element) |
65 { | 64 { |
66 m_currentNativeScrollingElement = element; | 65 m_currentNativeScrollingElement = element; |
67 } | 66 } |
68 | 67 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // Whether the scroll sequence has had any delta consumed, in the | 111 // Whether the scroll sequence has had any delta consumed, in the |
113 // current frame, or any child frames. | 112 // current frame, or any child frames. |
114 bool m_deltaConsumedForScrollSequence; | 113 bool m_deltaConsumedForScrollSequence; |
115 | 114 |
116 WillBeHeapDeque<RefPtrWillBeMember<Element>> m_scrollChain; | 115 WillBeHeapDeque<RefPtrWillBeMember<Element>> m_scrollChain; |
117 }; | 116 }; |
118 | 117 |
119 } // namespace blink | 118 } // namespace blink |
120 | 119 |
121 #endif // ScrollState_h | 120 #endif // ScrollState_h |
OLD | NEW |