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

Unified Diff: public/platform/WebLayerTreeView.h

Issue 893683003: Implement top controls show/hide functionality for main thread scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix minor macro issue Created 5 years, 10 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: public/platform/WebLayerTreeView.h
diff --git a/public/platform/WebLayerTreeView.h b/public/platform/WebLayerTreeView.h
index d268c96e157089748982ff9a6d5868c00069a1cb..bcc5f1e858d19d0aecc2c98df715b938dc137bec 100644
--- a/public/platform/WebLayerTreeView.h
+++ b/public/platform/WebLayerTreeView.h
@@ -32,6 +32,7 @@
#include "WebNonCopyable.h"
#include "WebPrivateOwnPtr.h"
#include "WebSize.h"
+#include "WebTopControlsState.h"
class SkBitmap;
@@ -41,6 +42,7 @@ class WebCompositeAndReadbackAsyncCallback;
class WebLayer;
struct WebPoint;
struct WebSelectionBound;
+class WebWidget;
class WebLayerTreeView {
public:
@@ -86,6 +88,13 @@ public:
// (fully shown).
virtual void setTopControlsShownRatio(float) { }
+ // Update top controls permitted and current states
+ virtual void updateTopControlsState(WebTopControlsState constraints, WebTopControlsState current, bool animate) { }
+
+ // Set top controls height. If |shrinkViewport| is set to true, then Blink shrunk the viewport clip
+ // layers by the top controls height.
+ virtual void setTopControlsHeight(float height, bool shrinkViewport) { }
+
// Flow control and scheduling ---------------------------------------
// Indicates that an animation needs to be updated.

Powered by Google App Engine
This is Rietveld 408576698