| Index: third_party/WebKit/Source/core/page/scrolling/RootViewportScrollCallback.h
|
| diff --git a/third_party/WebKit/Source/core/page/scrolling/RootViewportScrollCallback.h b/third_party/WebKit/Source/core/page/scrolling/RootViewportScrollCallback.h
|
| index bec80023ec38a0ca3c03b17b49a0cc2f3e0ae2c7..7db29e115be7a8682552e8d8ae64730778fa6bd8 100644
|
| --- a/third_party/WebKit/Source/core/page/scrolling/RootViewportScrollCallback.h
|
| +++ b/third_party/WebKit/Source/core/page/scrolling/RootViewportScrollCallback.h
|
| @@ -12,11 +12,11 @@
|
| namespace blink {
|
|
|
| class FloatSize;
|
| -class Element;
|
| class ScrollableArea;
|
| class ScrollState;
|
| class TopControls;
|
| class OverscrollController;
|
| +class RootFrameViewport;
|
|
|
| // The ViewportScrollCallback used by the one root frame on the page. This
|
| // callback provides scrolling of the frame as well as associated actions like
|
| @@ -26,9 +26,12 @@ public:
|
| // The TopControls and OverscrollController are given to the
|
| // RootViewportScrollCallback but are not owned or kept alive by it.
|
| static RootViewportScrollCallback* create(
|
| - TopControls* topControls, OverscrollController* overscrollController)
|
| + TopControls* topControls,
|
| + OverscrollController* overscrollController,
|
| + RootFrameViewport* rootFrameViewport)
|
| {
|
| - return new RootViewportScrollCallback(topControls, overscrollController);
|
| + return new RootViewportScrollCallback(
|
| + topControls, overscrollController, rootFrameViewport);
|
| }
|
|
|
| virtual ~RootViewportScrollCallback();
|
| @@ -41,13 +44,13 @@ public:
|
| private:
|
| // RootViewportScrollCallback does not assume ownership of TopControls or of
|
| // OverscrollController.
|
| - RootViewportScrollCallback(TopControls*, OverscrollController*);
|
| + RootViewportScrollCallback(TopControls*, OverscrollController*, RootFrameViewport*);
|
|
|
| bool shouldScrollTopControls(const FloatSize&, ScrollGranularity) const;
|
|
|
| WeakMember<TopControls> m_topControls;
|
| WeakMember<OverscrollController> m_overscrollController;
|
| - WeakMember<ScrollableArea> m_scroller;
|
| + WeakMember<RootFrameViewport> m_rootFrameViewport;
|
| };
|
|
|
| } // namespace blink
|
|
|