Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(754)

Side by Side Diff: Source/core/page/scrolling/ScrollState.h

Issue 1236913004: Expose scroll customization for touch to JS (behind REF). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add to leak expectations. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/page/scrolling/ScrollCustomizationCallbacks.cpp ('k') | Source/core/page/scrolling/ScrollState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698