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