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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.h

Issue 1913843004: Implementing document.setRootScroller API for main thread scrolling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@overscrollController
Patch Set: Rebase and remove whitespace in Document.idl Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.h
diff --git a/third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.h b/third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.h
index e2bd270cfc88fce789d9d62343c9b955c4275fb8..c6113ba7872ce59896a6edfaaae2e20576f1a67a 100644
--- a/third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.h
+++ b/third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.h
@@ -11,27 +11,31 @@
namespace blink {
-class Document;
class FloatSize;
class FrameHost;
class Element;
class ScrollableArea;
class ScrollState;
+class TopControls;
+class OverscrollController;
class ViewportScrollCallback : public ScrollStateCallback {
public:
- ViewportScrollCallback(Document&);
+ ViewportScrollCallback(TopControls&, OverscrollController&);
~ViewportScrollCallback();
void handleEvent(ScrollState*) override;
+ void setScroller(ScrollableArea&);
+
DECLARE_VIRTUAL_TRACE();
private:
bool shouldScrollTopControls(const FloatSize&, ScrollGranularity) const;
- ScrollableArea* getRootFrameViewport() const;
- WeakMember<Document> m_document;
+ WeakMember<TopControls> m_topControls;
+ WeakMember<OverscrollController> m_overscrollController;
+ WeakMember<ScrollableArea> m_scroller;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698