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

Unified Diff: third_party/WebKit/Source/core/frame/RootFrameViewport.h

Issue 2198853002: Draw main frame custom scrollbars in root layer scrolling mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 3 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/frame/RootFrameViewport.h
diff --git a/third_party/WebKit/Source/core/frame/RootFrameViewport.h b/third_party/WebKit/Source/core/frame/RootFrameViewport.h
index bebbadfe155ad76cc2c61c7787ad9daa19a89fba..b2f2e5e0f57b66275b0ca233a4d0acf8254f0187 100644
--- a/third_party/WebKit/Source/core/frame/RootFrameViewport.h
+++ b/third_party/WebKit/Source/core/frame/RootFrameViewport.h
@@ -10,8 +10,10 @@
namespace blink {
+class CompositedLayerMapping;
class FrameView;
class LayoutRect;
+class LocalFrame;
// ScrollableArea for the root frame's viewport. This class ties together the
// concepts of layout and visual viewports, used in pinch-to-zoom. This class
@@ -77,6 +79,7 @@ public:
GraphicsLayer* layerForScrolling() const override;
GraphicsLayer* layerForHorizontalScrollbar() const override;
GraphicsLayer* layerForVerticalScrollbar() const override;
+ GraphicsLayer* layerForScrollCorner() const override;
ScrollResult userScroll(ScrollGranularity, const FloatSize&) override;
bool scrollAnimatorEnabled() const override;
HostWindow* getHostWindow() const override;
@@ -100,6 +103,9 @@ private:
void distributeScrollBetweenViewports(const DoublePoint&, ScrollType, ScrollBehavior, ViewportToScrollFirst);
+ LocalFrame* mainFrame() const;
+ CompositedLayerMapping* compositedLayerMapping() const;
+
// If either of the layout or visual viewports are scrolled explicitly (i.e. not
// through this class), their updated offset will not be reflected in this class'
// animator so use this method to pull updated values when necessary.

Powered by Google App Engine
This is Rietveld 408576698