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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 int verticalScrollbarWidth( | 94 int verticalScrollbarWidth( |
95 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const override; | 95 OverlayScrollbarClipBehavior = IgnoreOverlayScrollbarSize) const override; |
96 ScrollResult userScroll(ScrollGranularity, const FloatSize&) override; | 96 ScrollResult userScroll(ScrollGranularity, const FloatSize&) override; |
97 bool scrollAnimatorEnabled() const override; | 97 bool scrollAnimatorEnabled() const override; |
98 HostWindow* getHostWindow() const override; | 98 HostWindow* getHostWindow() const override; |
99 void serviceScrollAnimations(double) override; | 99 void serviceScrollAnimations(double) override; |
100 void updateCompositorScrollAnimations() override; | 100 void updateCompositorScrollAnimations() override; |
101 void cancelProgrammaticScrollAnimation() override; | 101 void cancelProgrammaticScrollAnimation() override; |
102 ScrollBehavior scrollBehaviorStyle() const override; | 102 ScrollBehavior scrollBehaviorStyle() const override; |
103 Widget* getWidget() override; | 103 Widget* getWidget() override; |
104 void clearScrollAnimators() override; | 104 void clearScrollableArea() override; |
105 LayoutBox* layoutBox() const override; | 105 LayoutBox* layoutBox() const override; |
106 FloatQuad localToVisibleContentQuad(const FloatQuad&, | 106 FloatQuad localToVisibleContentQuad(const FloatQuad&, |
107 const LayoutObject*, | 107 const LayoutObject*, |
108 unsigned = 0) const final; | 108 unsigned = 0) const final; |
109 | 109 |
110 private: | 110 private: |
111 RootFrameViewport(ScrollableArea& visualViewport, | 111 RootFrameViewport(ScrollableArea& visualViewport, |
112 ScrollableArea& layoutViewport); | 112 ScrollableArea& layoutViewport); |
113 | 113 |
114 enum ViewportToScrollFirst { VisualViewport, LayoutViewport }; | 114 enum ViewportToScrollFirst { VisualViewport, LayoutViewport }; |
(...skipping 21 matching lines...) Expand all Loading... |
136 | 136 |
137 DEFINE_TYPE_CASTS(RootFrameViewport, | 137 DEFINE_TYPE_CASTS(RootFrameViewport, |
138 ScrollableArea, | 138 ScrollableArea, |
139 scrollableArea, | 139 scrollableArea, |
140 scrollableArea->isRootFrameViewport(), | 140 scrollableArea->isRootFrameViewport(), |
141 scrollableArea.isRootFrameViewport()); | 141 scrollableArea.isRootFrameViewport()); |
142 | 142 |
143 } // namespace blink | 143 } // namespace blink |
144 | 144 |
145 #endif // RootFrameViewport_h | 145 #endif // RootFrameViewport_h |
OLD | NEW |