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 = ScrollBehaviorInstant) override; | 59 ScrollBehavior = ScrollBehaviorInstant) override; |
60 LayoutRect scrollIntoView(const LayoutRect& rectInContent, | 60 LayoutRect scrollIntoView(const LayoutRect& rectInContent, |
61 const ScrollAlignment& alignX, | 61 const ScrollAlignment& alignX, |
62 const ScrollAlignment& alignY, | 62 const ScrollAlignment& alignY, |
63 ScrollType = ProgrammaticScroll) override; | 63 ScrollType = ProgrammaticScroll, |
| 64 bool isSmooth = false) override; |
64 IntRect visibleContentRect( | 65 IntRect visibleContentRect( |
65 IncludeScrollbarsInRect = ExcludeScrollbars) const override; | 66 IncludeScrollbarsInRect = ExcludeScrollbars) 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; |
73 ScrollOffset getScrollOffset() const override; | 74 ScrollOffset getScrollOffset() const override; |
(...skipping 13 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 IgnorePlatformOverlayScrollbarSize) const override; | 91 IgnorePlatformOverlayScrollbarSize) const override; |
91 int verticalScrollbarWidth( | 92 int verticalScrollbarWidth( |
92 OverlayScrollbarClipBehavior = | 93 OverlayScrollbarClipBehavior = |
93 IgnorePlatformOverlayScrollbarSize) const override; | 94 IgnorePlatformOverlayScrollbarSize) 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 HostWindow* getHostWindow() const override; | 97 HostWindow* getHostWindow() 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 FrameViewBase* getFrameViewBase() override; | 103 FrameViewBase* getFrameViewBase() override; |
102 void clearScrollableArea() override; | 104 void clearScrollableArea() override; |
103 LayoutBox* layoutBox() const override; | 105 LayoutBox* layoutBox() 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; |
(...skipping 28 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 |