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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 GraphicsLayer* layerForVerticalScrollbar() const override; | 90 GraphicsLayer* layerForVerticalScrollbar() const override; |
91 GraphicsLayer* layerForScrollCorner() const override; | 91 GraphicsLayer* layerForScrollCorner() const override; |
92 ScrollResult userScroll(ScrollGranularity, const FloatSize&) override; | 92 ScrollResult userScroll(ScrollGranularity, const FloatSize&) override; |
93 bool scrollAnimatorEnabled() const override; | 93 bool scrollAnimatorEnabled() const override; |
94 HostWindow* getHostWindow() const override; | 94 HostWindow* getHostWindow() const override; |
95 void serviceScrollAnimations(double) override; | 95 void serviceScrollAnimations(double) override; |
96 void updateCompositorScrollAnimations() override; | 96 void updateCompositorScrollAnimations() override; |
97 void cancelProgrammaticScrollAnimation() override; | 97 void cancelProgrammaticScrollAnimation() override; |
98 ScrollBehavior scrollBehaviorStyle() const override; | 98 ScrollBehavior scrollBehaviorStyle() const override; |
99 Widget* getWidget() override; | 99 Widget* getWidget() override; |
100 void clearScrollAnimators() override; | 100 void clearScrollableArea() override; |
101 LayoutBox* layoutBox() const override; | 101 LayoutBox* layoutBox() const override; |
102 | 102 |
103 private: | 103 private: |
104 RootFrameViewport(ScrollableArea& visualViewport, | 104 RootFrameViewport(ScrollableArea& visualViewport, |
105 ScrollableArea& layoutViewport); | 105 ScrollableArea& layoutViewport); |
106 | 106 |
107 enum ViewportToScrollFirst { VisualViewport, LayoutViewport }; | 107 enum ViewportToScrollFirst { VisualViewport, LayoutViewport }; |
108 | 108 |
109 ScrollOffset scrollOffsetFromScrollAnimators() const; | 109 ScrollOffset scrollOffsetFromScrollAnimators() const; |
110 | 110 |
(...skipping 18 matching lines...) Expand all Loading... |
129 | 129 |
130 DEFINE_TYPE_CASTS(RootFrameViewport, | 130 DEFINE_TYPE_CASTS(RootFrameViewport, |
131 ScrollableArea, | 131 ScrollableArea, |
132 scrollableArea, | 132 scrollableArea, |
133 scrollableArea->isRootFrameViewport(), | 133 scrollableArea->isRootFrameViewport(), |
134 scrollableArea.isRootFrameViewport()); | 134 scrollableArea.isRootFrameViewport()); |
135 | 135 |
136 } // namespace blink | 136 } // namespace blink |
137 | 137 |
138 #endif // RootFrameViewport_h | 138 #endif // RootFrameViewport_h |
OLD | NEW |