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

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

Issue 2622103002: Generalize browser controls adjustment for arbitrary scrollers. (Closed)
Patch Set: Fixed some comments Created 3 years, 11 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/TopDocumentRootScrollerController.h
diff --git a/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.h b/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.h
index c0b5681bc976afb314018a04d18c7d06d1c0bfc3..58cc5e76d27aec242552e9c05f23a88df192714e 100644
--- a/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.h
+++ b/third_party/WebKit/Source/core/page/scrolling/TopDocumentRootScrollerController.h
@@ -7,6 +7,7 @@
#include "core/CoreExport.h"
#include "core/page/scrolling/RootScrollerController.h"
+#include "platform/geometry/IntSize.h"
#include "platform/heap/Handle.h"
namespace blink {
@@ -66,6 +67,16 @@ class CORE_EXPORT TopDocumentRootScrollerController
void mainFrameViewResized();
+ // Returns the ScrollableArea associated with the globalRootScroller(). Note,
+ // this isn't necessarily the PLSA belonging to the root scroller Element's
+ // LayoutBox. If the root scroller is the documentElement then we use the
+ // FrameView (or LayoutView if root-layer-scrolls).
+ ScrollableArea* rootScrollerArea() const;
+
+ // Returns the size we should use for the root scroller, accounting for top
+ // controls adjustment and using the root FrameView.
+ IntSize rootScrollerVisibleArea() const;
+
private:
TopDocumentRootScrollerController(FrameHost&);

Powered by Google App Engine
This is Rietveld 408576698