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

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

Issue 1209183004: Expose scroll customization for touch to JS (behind REF). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Clean up static map. 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ScrollStateCallback_h
6 #define ScrollStateCallback_h
7
8 #include "core/page/scrolling/NativeScrollBehavior.h"
9 #include "platform/heap/Handle.h"
10
11 namespace blink {
12
13 class ScrollState;
14 enum class NativeScrollBehavior;
haraken 2015/07/15 00:15:18 Remove this. Or I think we can move the contents o
tdresser 2015/07/15 14:04:55 Removed NativeScrollBehavior.h.
15
16 class ScrollStateCallback : public GarbageCollectedFinalized<ScrollStateCallback > {
17 public:
18 ScrollStateCallback()
haraken 2015/07/15 00:15:18 Add explicit.
tdresser 2015/07/15 14:04:55 When there are 0 parameters? Done, but `git grep "
haraken 2015/07/15 14:07:17 Sorry, you're right.
19 : m_nativeScrollBehavior(NativeScrollBehavior::DisableNativeScroll)
20 {
21 }
22
23 virtual ~ScrollStateCallback()
24 {
25 }
26
27 DEFINE_INLINE_VIRTUAL_TRACE() {}
28 virtual void handleEvent(ScrollState*) = 0;
29
30 void setNativeScrollBehavior(NativeScrollBehavior nativeScrollBehavior)
31 {
32 m_nativeScrollBehavior = nativeScrollBehavior;
33 }
34
35 NativeScrollBehavior nativeScrollBehavior()
36 {
37 return m_nativeScrollBehavior;
38 }
39
40 static NativeScrollBehavior toNativeScrollBehavior(String nativeScrollBehavi or);
41
42 protected:
43 NativeScrollBehavior m_nativeScrollBehavior;
44 };
45
46 } // namespace blink
47
48 #endif // ScrollStateCallback_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698