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

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

Issue 1239993005: Revert of Expose scroll customization for touch to JS (behind REF). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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.
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
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
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