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 #include "config.h" | |
6 #include "core/page/scrolling/ScrollCustomizationCallbacks.h" | 5 #include "core/page/scrolling/ScrollCustomizationCallbacks.h" |
7 | 6 |
8 #include "core/page/scrolling/ScrollStateCallback.h" | 7 #include "core/page/scrolling/ScrollStateCallback.h" |
9 | 8 |
10 namespace blink { | 9 namespace blink { |
11 | 10 |
12 void ScrollCustomizationCallbacks::setDistributeScroll(Element* element, ScrollS
tateCallback* scrollStateCallback) | 11 void ScrollCustomizationCallbacks::setDistributeScroll(Element* element, ScrollS
tateCallback* scrollStateCallback) |
13 { | 12 { |
14 m_distributeScrollCallbacks.set(element, scrollStateCallback); | 13 m_distributeScrollCallbacks.set(element, scrollStateCallback); |
15 } | 14 } |
(...skipping 21 matching lines...) Expand all Loading... |
37 | 36 |
38 #if !ENABLE(OILPAN) | 37 #if !ENABLE(OILPAN) |
39 void ScrollCustomizationCallbacks::removeCallbacksForElement(Element* element) | 38 void ScrollCustomizationCallbacks::removeCallbacksForElement(Element* element) |
40 { | 39 { |
41 m_applyScrollCallbacks.remove(element); | 40 m_applyScrollCallbacks.remove(element); |
42 m_distributeScrollCallbacks.remove(element); | 41 m_distributeScrollCallbacks.remove(element); |
43 } | 42 } |
44 #endif | 43 #endif |
45 | 44 |
46 } // namespace blink | 45 } // namespace blink |
OLD | NEW |