| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 clearScrollableArea() 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 RefPtr<WebTaskRunner> getTimerTaskRunner() const final; |
| 109 | 110 |
| 110 private: | 111 private: |
| 111 RootFrameViewport(ScrollableArea& visualViewport, | 112 RootFrameViewport(ScrollableArea& visualViewport, |
| 112 ScrollableArea& layoutViewport); | 113 ScrollableArea& layoutViewport); |
| 113 | 114 |
| 114 enum ViewportToScrollFirst { VisualViewport, LayoutViewport }; | 115 enum ViewportToScrollFirst { VisualViewport, LayoutViewport }; |
| 115 | 116 |
| 116 ScrollOffset scrollOffsetFromScrollAnimators() const; | 117 ScrollOffset scrollOffsetFromScrollAnimators() const; |
| 117 | 118 |
| 118 void distributeScrollBetweenViewports(const ScrollOffset&, | 119 void distributeScrollBetweenViewports(const ScrollOffset&, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 136 | 137 |
| 137 DEFINE_TYPE_CASTS(RootFrameViewport, | 138 DEFINE_TYPE_CASTS(RootFrameViewport, |
| 138 ScrollableArea, | 139 ScrollableArea, |
| 139 scrollableArea, | 140 scrollableArea, |
| 140 scrollableArea->isRootFrameViewport(), | 141 scrollableArea->isRootFrameViewport(), |
| 141 scrollableArea.isRootFrameViewport()); | 142 scrollableArea.isRootFrameViewport()); |
| 142 | 143 |
| 143 } // namespace blink | 144 } // namespace blink |
| 144 | 145 |
| 145 #endif // RootFrameViewport_h | 146 #endif // RootFrameViewport_h |
| OLD | NEW |