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

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 hiding at the page bottom 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..86889fac59e447c4d72fd2c6f132ce719adbde28 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 "public/web/WebTopControlsState.h"
class SkBitmap;
@@ -41,6 +42,7 @@ class WebCompositeAndReadbackAsyncCallback;
class WebLayer;
struct WebPoint;
struct WebSelectionBound;
+class WebWidget;
class WebLayerTreeView {
public:
@@ -86,6 +88,16 @@ public:
// (fully shown).
virtual void setTopControlsShownRatio(float) { }
+ // Update top controls permitted and current states
+ virtual void updateTopControlsState(WebTopControlsState constraints, WebTopControlsState current, bool animate) { }
+
+ // If this is set to true, then the embedder shrunk the WebView size by the top
aelias_OOO_until_Jul13 2015/02/13 02:03:17 Please update the comment to say that this means B
majidvp 2015/02/18 21:03:57 Done.
+ // controls height.
+ virtual void setTopControlsShrinkBlinkSize(bool shrink) { }
+
+ // Set top controls height
+ virtual void setTopControlsHeight(float height) { }
+
// Flow control and scheduling ---------------------------------------
// Indicates that an animation needs to be updated.

Powered by Google App Engine
This is Rietveld 408576698