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

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 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/web/WebWidget.h
diff --git a/public/web/WebWidget.h b/public/web/WebWidget.h
index 33cceb12b83554f47f34fb06db9758930bfc4ec4..47db18352cd84d5452b58c35c64caedc7bf2d82d 100644
--- a/public/web/WebWidget.h
+++ b/public/web/WebWidget.h
@@ -37,6 +37,7 @@
#include "../platform/WebPoint.h"
#include "../platform/WebRect.h"
#include "../platform/WebSize.h"
+#include "../platform/WebTopControlsState.h"
#include "WebBeginFrameArgs.h"
#include "WebCompositionUnderline.h"
#include "WebTextDirection.h"
@@ -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() { }
};
« Source/web/tests/TopControlsTest.cpp ('K') | « public/platform/WebTopControlsState.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698