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 RootFrameViewport_h | 5 #ifndef RootFrameViewport_h |
6 #define RootFrameViewport_h | 6 #define RootFrameViewport_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "platform/scroll/ScrollableArea.h" | 9 #include "platform/scroll/ScrollableArea.h" |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 void DidUpdateVisualViewport(); | 54 void DidUpdateVisualViewport(); |
55 | 55 |
56 // ScrollableArea Implementation | 56 // ScrollableArea Implementation |
57 bool IsRootFrameViewport() const override { return true; } | 57 bool IsRootFrameViewport() const override { return true; } |
58 void SetScrollOffset(const ScrollOffset&, | 58 void SetScrollOffset(const ScrollOffset&, |
59 ScrollType, | 59 ScrollType, |
60 ScrollBehavior = kScrollBehaviorInstant) override; | 60 ScrollBehavior = kScrollBehaviorInstant) override; |
61 LayoutRect ScrollIntoView(const LayoutRect& rect_in_content, | 61 LayoutRect ScrollIntoView(const LayoutRect& rect_in_content, |
62 const ScrollAlignment& align_x, | 62 const ScrollAlignment& align_x, |
63 const ScrollAlignment& align_y, | 63 const ScrollAlignment& align_y, |
| 64 bool is_smooth, |
64 ScrollType = kProgrammaticScroll) override; | 65 ScrollType = kProgrammaticScroll) override; |
65 IntRect VisibleContentRect( | 66 IntRect VisibleContentRect( |
66 IncludeScrollbarsInRect = kExcludeScrollbars) const override; | 67 IncludeScrollbarsInRect = kExcludeScrollbars) const override; |
67 bool ShouldUseIntegerScrollOffset() const override; | 68 bool ShouldUseIntegerScrollOffset() const override; |
68 bool IsActive() const override; | 69 bool IsActive() const override; |
69 int ScrollSize(ScrollbarOrientation) const override; | 70 int ScrollSize(ScrollbarOrientation) const override; |
70 bool IsScrollCornerVisible() const override; | 71 bool IsScrollCornerVisible() const override; |
71 IntRect ScrollCornerRect() const override; | 72 IntRect ScrollCornerRect() const override; |
72 void UpdateScrollOffset(const ScrollOffset&, ScrollType) override; | 73 void UpdateScrollOffset(const ScrollOffset&, ScrollType) override; |
73 IntSize ScrollOffsetInt() const override; | 74 IntSize ScrollOffsetInt() const override; |
(...skipping 14 matching lines...) Expand all Loading... |
88 GraphicsLayer* LayerForScrollCorner() const override; | 89 GraphicsLayer* LayerForScrollCorner() const override; |
89 int HorizontalScrollbarHeight( | 90 int HorizontalScrollbarHeight( |
90 OverlayScrollbarClipBehavior = | 91 OverlayScrollbarClipBehavior = |
91 kIgnorePlatformOverlayScrollbarSize) const override; | 92 kIgnorePlatformOverlayScrollbarSize) const override; |
92 int VerticalScrollbarWidth( | 93 int VerticalScrollbarWidth( |
93 OverlayScrollbarClipBehavior = | 94 OverlayScrollbarClipBehavior = |
94 kIgnorePlatformOverlayScrollbarSize) const override; | 95 kIgnorePlatformOverlayScrollbarSize) const override; |
95 ScrollResult UserScroll(ScrollGranularity, const FloatSize&) override; | 96 ScrollResult UserScroll(ScrollGranularity, const FloatSize&) override; |
96 bool ScrollAnimatorEnabled() const override; | 97 bool ScrollAnimatorEnabled() const override; |
97 PlatformChromeClient* GetChromeClient() const override; | 98 PlatformChromeClient* GetChromeClient() const override; |
| 99 SmoothScrollSequencer* GetSmoothScrollSequencer() const override; |
98 void ServiceScrollAnimations(double) override; | 100 void ServiceScrollAnimations(double) override; |
99 void UpdateCompositorScrollAnimations() override; | 101 void UpdateCompositorScrollAnimations() override; |
100 void CancelProgrammaticScrollAnimation() override; | 102 void CancelProgrammaticScrollAnimation() override; |
101 ScrollBehavior ScrollBehaviorStyle() const override; | 103 ScrollBehavior ScrollBehaviorStyle() const override; |
102 void ClearScrollableArea() override; | 104 void ClearScrollableArea() override; |
103 LayoutBox* GetLayoutBox() const override; | 105 LayoutBox* GetLayoutBox() const override; |
104 FloatQuad LocalToVisibleContentQuad(const FloatQuad&, | 106 FloatQuad LocalToVisibleContentQuad(const FloatQuad&, |
105 const LayoutObject*, | 107 const LayoutObject*, |
106 unsigned = 0) const final; | 108 unsigned = 0) const final; |
107 RefPtr<WebTaskRunner> GetTimerTaskRunner() const final; | 109 RefPtr<WebTaskRunner> GetTimerTaskRunner() const final; |
(...skipping 27 matching lines...) Expand all Loading... |
135 | 137 |
136 DEFINE_TYPE_CASTS(RootFrameViewport, | 138 DEFINE_TYPE_CASTS(RootFrameViewport, |
137 ScrollableArea, | 139 ScrollableArea, |
138 scrollableArea, | 140 scrollableArea, |
139 scrollableArea->IsRootFrameViewport(), | 141 scrollableArea->IsRootFrameViewport(), |
140 scrollableArea.IsRootFrameViewport()); | 142 scrollableArea.IsRootFrameViewport()); |
141 | 143 |
142 } // namespace blink | 144 } // namespace blink |
143 | 145 |
144 #endif // RootFrameViewport_h | 146 #endif // RootFrameViewport_h |
OLD | NEW |