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

Unified Diff: public/web/WebWidget.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
« public/web/WebTopControlsState.h ('K') | « public/web/WebTopControlsState.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebWidget.h
diff --git a/public/web/WebWidget.h b/public/web/WebWidget.h
index 33cceb12b83554f47f34fb06db9758930bfc4ec4..9748aabd51d8907addaca52b922096da328d191a 100644
--- a/public/web/WebWidget.h
+++ b/public/web/WebWidget.h
@@ -41,6 +41,7 @@
#include "WebCompositionUnderline.h"
#include "WebTextDirection.h"
#include "WebTextInputInfo.h"
+#include "WebTopControlsState.h"
namespace blink {
@@ -275,6 +276,10 @@ public:
// the embedder shrunk the WebView size by the top controls height.
virtual void setTopControlsHeight(float height, bool topControlsShrinkLayoutSize) { }
+ // Updates top controls constraints and current state. Allows embedder to
+ // control what are valid states for top controls and if it should animate.
+ virtual void updateTopControlsState(WebTopControlsState constraints, WebTopControlsState current, bool animate) { }
+
protected:
~WebWidget() { }
};
« public/web/WebTopControlsState.h ('K') | « public/web/WebTopControlsState.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698