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

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

Issue 2128363002: Moved viewport layer registration into WebViewImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rootScrollerPinchedIn2
Patch Set: Moved visual viewport layer registration into WebViewImpl Created 4 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/VisualViewport.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/VisualViewport.h
diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.h b/third_party/WebKit/Source/core/frame/VisualViewport.h
index 295c52a5ef9f2c88d69bd495aa220c02a8b0a980..a35e30242aad672a0cb7c778bd916b0999116fbb 100644
--- a/third_party/WebKit/Source/core/frame/VisualViewport.h
+++ b/third_party/WebKit/Source/core/frame/VisualViewport.h
@@ -43,8 +43,8 @@
#include <memory>
namespace blink {
-class WebLayerTreeView;
class WebScrollbarLayer;
+class WebLayer;
}
namespace blink {
@@ -89,6 +89,14 @@ public:
{
return m_innerViewportScrollLayer.get();
}
+ GraphicsLayer* pageScaleLayer()
+ {
+ return m_pageScaleLayer.get();
+ }
+ GraphicsLayer* overscrollElasticityLayer()
+ {
+ return m_overscrollElasticityLayer.get();
+ }
void initializeScrollbars();
@@ -124,8 +132,7 @@ public:
// scale factor is left unchanged.
bool magnifyScaleAroundAnchor(float magnifyDelta, const FloatPoint& anchor);
- void registerLayersWithTreeView(WebLayerTreeView*) const;
- void clearLayersForTreeView(WebLayerTreeView*) const;
+ void setScrollLayerOnScrollbars(WebLayer*) const;
// The portion of the unzoomed frame visible in the visual viewport,
// in partial CSS pixels. Relative to the main frame.
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/VisualViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698