| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ViewportScrollCallback_h | 5 #ifndef ViewportScrollCallback_h |
| 6 #define ViewportScrollCallback_h | 6 #define ViewportScrollCallback_h |
| 7 | 7 |
| 8 #include "core/page/scrolling/ScrollStateCallback.h" | 8 #include "core/page/scrolling/ScrollStateCallback.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "platform/scroll/ScrollTypes.h" | 10 #include "platform/scroll/ScrollTypes.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 DECLARE_VIRTUAL_TRACE(); | 50 DECLARE_VIRTUAL_TRACE(); |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 // ViewportScrollCallback does not assume ownership of TopControls or of | 53 // ViewportScrollCallback does not assume ownership of TopControls or of |
| 54 // OverscrollController. | 54 // OverscrollController. |
| 55 ViewportScrollCallback(TopControls*, | 55 ViewportScrollCallback(TopControls*, |
| 56 OverscrollController*, | 56 OverscrollController*, |
| 57 RootFrameViewport&); | 57 RootFrameViewport&); |
| 58 | 58 |
| 59 bool shouldScrollTopControls(const FloatSize&, ScrollGranularity) const; | 59 bool shouldScrollTopControls(const ScrollOffset&, ScrollGranularity) const; |
| 60 bool scrollTopControls(ScrollState&); | 60 bool scrollTopControls(ScrollState&); |
| 61 | 61 |
| 62 ScrollResult performNativeScroll(ScrollState&); | 62 ScrollResult performNativeScroll(ScrollState&); |
| 63 | 63 |
| 64 WeakMember<TopControls> m_topControls; | 64 WeakMember<TopControls> m_topControls; |
| 65 WeakMember<OverscrollController> m_overscrollController; | 65 WeakMember<OverscrollController> m_overscrollController; |
| 66 WeakMember<RootFrameViewport> m_rootFrameViewport; | 66 WeakMember<RootFrameViewport> m_rootFrameViewport; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace blink | 69 } // namespace blink |
| 70 | 70 |
| 71 #endif // ViewportScrollCallback_h | 71 #endif // ViewportScrollCallback_h |
| OLD | NEW |