Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: third_party/WebKit/Source/core/frame/RootFrameViewport.h

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 IntRect scrollableAreaBoundingBox() const override; 57 IntRect scrollableAreaBoundingBox() const override;
58 bool userInputScrollable(ScrollbarOrientation) const override; 58 bool userInputScrollable(ScrollbarOrientation) const override;
59 bool shouldPlaceVerticalScrollbarOnLeft() const override; 59 bool shouldPlaceVerticalScrollbarOnLeft() const override;
60 void scrollControlWasSetNeedsPaintInvalidation() override; 60 void scrollControlWasSetNeedsPaintInvalidation() override;
61 GraphicsLayer* layerForContainer() const override; 61 GraphicsLayer* layerForContainer() const override;
62 GraphicsLayer* layerForScrolling() const override; 62 GraphicsLayer* layerForScrolling() const override;
63 GraphicsLayer* layerForHorizontalScrollbar() const override; 63 GraphicsLayer* layerForHorizontalScrollbar() const override;
64 GraphicsLayer* layerForVerticalScrollbar() const override; 64 GraphicsLayer* layerForVerticalScrollbar() const override;
65 ScrollResult userScroll(ScrollGranularity, const FloatSize&) override; 65 ScrollResult userScroll(ScrollGranularity, const FloatSize&) override;
66 bool scrollAnimatorEnabled() const override; 66 bool scrollAnimatorEnabled() const override;
67 HostWindow* hostWindow() const override; 67 HostWindow* getHostWindow() const override;
68 void serviceScrollAnimations(double) override; 68 void serviceScrollAnimations(double) override;
69 void updateCompositorScrollAnimations() override; 69 void updateCompositorScrollAnimations() override;
70 void cancelProgrammaticScrollAnimation() override; 70 void cancelProgrammaticScrollAnimation() override;
71 ScrollBehavior scrollBehaviorStyle() const override; 71 ScrollBehavior scrollBehaviorStyle() const override;
72 Widget* widget() override; 72 Widget* getWidget() override;
73 void clearScrollAnimators() override; 73 void clearScrollAnimators() override;
74 74
75 private: 75 private:
76 RootFrameViewport(ScrollableArea& visualViewport, ScrollableArea& layoutView port); 76 RootFrameViewport(ScrollableArea& visualViewport, ScrollableArea& layoutView port);
77 77
78 DoublePoint scrollOffsetFromScrollAnimators() const; 78 DoublePoint scrollOffsetFromScrollAnimators() const;
79 79
80 void distributeScrollBetweenViewports(const DoublePoint&, ScrollType, Scroll Behavior); 80 void distributeScrollBetweenViewports(const DoublePoint&, ScrollType, Scroll Behavior);
81 81
82 // If either of the layout or visual viewports are scrolled explicitly (i.e. not 82 // If either of the layout or visual viewports are scrolled explicitly (i.e. not
83 // through this class), their updated offset will not be reflected in this c lass' 83 // through this class), their updated offset will not be reflected in this c lass'
84 // animator so use this method to pull updated values when necessary. 84 // animator so use this method to pull updated values when necessary.
85 void updateScrollAnimator(); 85 void updateScrollAnimator();
86 86
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | third_party/WebKit/Source/core/frame/RootFrameViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698