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

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: Don't trigger layout on 0 delta. 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/dom/Element.h"
9 #include "platform/heap/GarbageCollected.h"
10
11 namespace blink {
12
13 class ScrollState;
14
15 class ScrollStateCallback : public GarbageCollectedFinalized<ScrollStateCallback > {
16 public:
17 ScrollStateCallback()
18 : m_nativeScrollBehavior(DisableNativeScroll)
19 {
20 }
21 virtual ~ScrollStateCallback()
22 {
23 }
24 DEFINE_INLINE_VIRTUAL_TRACE() {}
25 virtual void handleEvent(ScrollState*) = 0;
26
27 void setNativeScrollBehavior(NativeScrollBehavior nativeScrollBehavior)
28 {
29 m_nativeScrollBehavior = nativeScrollBehavior;
30 }
31 NativeScrollBehavior nativeScrollBehavior()
32 {
33 return m_nativeScrollBehavior;
34 }
35
36 protected:
37 NativeScrollBehavior m_nativeScrollBehavior;
38 };
39
40 } // namespace blink
41
42 #endif // ScrollStateCallback_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698