| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 IntSize contentsSize() const override; | 56 IntSize contentsSize() const override; |
| 57 bool scrollbarsCanBeActive() const override; | 57 bool scrollbarsCanBeActive() const override; |
| 58 IntRect scrollableAreaBoundingBox() const override; | 58 IntRect scrollableAreaBoundingBox() const override; |
| 59 bool userInputScrollable(ScrollbarOrientation) const override; | 59 bool userInputScrollable(ScrollbarOrientation) const override; |
| 60 bool shouldPlaceVerticalScrollbarOnLeft() const override; | 60 bool shouldPlaceVerticalScrollbarOnLeft() const override; |
| 61 void scrollControlWasSetNeedsPaintInvalidation() override; | 61 void scrollControlWasSetNeedsPaintInvalidation() override; |
| 62 GraphicsLayer* layerForContainer() const override; | 62 GraphicsLayer* layerForContainer() const override; |
| 63 GraphicsLayer* layerForScrolling() const override; | 63 GraphicsLayer* layerForScrolling() const override; |
| 64 GraphicsLayer* layerForHorizontalScrollbar() const override; | 64 GraphicsLayer* layerForHorizontalScrollbar() const override; |
| 65 GraphicsLayer* layerForVerticalScrollbar() const override; | 65 GraphicsLayer* layerForVerticalScrollbar() const override; |
| 66 ScrollResultOneDimensional userScroll(ScrollDirectionPhysical, ScrollGranula
rity, float delta = 1) override; | 66 ScrollResult userScroll(ScrollGranularity, const FloatSize&) override; |
| 67 bool scrollAnimatorEnabled() const override; | 67 bool scrollAnimatorEnabled() const override; |
| 68 HostWindow* hostWindow() const override; | 68 HostWindow* hostWindow() const override; |
| 69 void serviceScrollAnimations(double) override; | 69 void serviceScrollAnimations(double) override; |
| 70 void updateCompositorScrollAnimations() override; | 70 void updateCompositorScrollAnimations() override; |
| 71 void cancelProgrammaticScrollAnimation() override; | 71 void cancelProgrammaticScrollAnimation() override; |
| 72 ScrollBehavior scrollBehaviorStyle() const override; | 72 ScrollBehavior scrollBehaviorStyle() const override; |
| 73 Widget* widget() override; | 73 Widget* widget() override; |
| 74 | 74 |
| 75 private: | 75 private: |
| 76 RootFrameViewport(ScrollableArea& visualViewport, ScrollableArea& layoutView
port); | 76 RootFrameViewport(ScrollableArea& visualViewport, ScrollableArea& layoutView
port); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 87 ScrollableArea& visualViewport() const { ASSERT(m_visualViewport); return *m
_visualViewport; } | 87 ScrollableArea& visualViewport() const { ASSERT(m_visualViewport); return *m
_visualViewport; } |
| 88 ScrollableArea& layoutViewport() const { ASSERT(m_layoutViewport); return *m
_layoutViewport; } | 88 ScrollableArea& layoutViewport() const { ASSERT(m_layoutViewport); return *m
_layoutViewport; } |
| 89 | 89 |
| 90 RawPtrWillBeMember<ScrollableArea> m_visualViewport; | 90 RawPtrWillBeMember<ScrollableArea> m_visualViewport; |
| 91 RawPtrWillBeMember<ScrollableArea> m_layoutViewport; | 91 RawPtrWillBeMember<ScrollableArea> m_layoutViewport; |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace blink | 94 } // namespace blink |
| 95 | 95 |
| 96 #endif // RootFrameViewport_h | 96 #endif // RootFrameViewport_h |
| OLD | NEW |