| 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 #ifndef ScrollCustomizationCallbacks_h | 5 #ifndef ScrollCustomizationCallbacks_h |
| 6 #define ScrollCustomizationCallbacks_h | 6 #define ScrollCustomizationCallbacks_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/dom/Element.h" | 9 #include "core/dom/Element.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 { | 28 { |
| 29 visitor->trace(m_applyScrollCallbacks); | 29 visitor->trace(m_applyScrollCallbacks); |
| 30 visitor->trace(m_distributeScrollCallbacks); | 30 visitor->trace(m_distributeScrollCallbacks); |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 #if !ENABLE(OILPAN) | 33 #if !ENABLE(OILPAN) |
| 34 void removeCallbacksForElement(Element*); | 34 void removeCallbacksForElement(Element*); |
| 35 #endif | 35 #endif |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 using ScrollStateCallbackList = HeapHashMap<RawPtrWillBeWeakMember<Element>,
Member<ScrollStateCallback>>; | 38 using ScrollStateCallbackList = HeapHashMap<WeakMember<Element>, Member<Scro
llStateCallback>>; |
| 39 ScrollStateCallbackList m_applyScrollCallbacks; | 39 ScrollStateCallbackList m_applyScrollCallbacks; |
| 40 ScrollStateCallbackList m_distributeScrollCallbacks; | 40 ScrollStateCallbackList m_distributeScrollCallbacks; |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 } // namespace blink | 43 } // namespace blink |
| 44 | 44 |
| 45 #endif // ScrollCustomizationCallbacks_h | 45 #endif // ScrollCustomizationCallbacks_h |
| OLD | NEW |