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

Unified Diff: public/web/WebWidget.h

Issue 882683003: Normalize top controls offset to (0, 1), Blink-side. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename to shownratio 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
« no previous file with comments | « public/platform/WebLayerTreeView.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 bc9d4467b2fe0607fb7b6a428ffadd00e6bd4cf0..d0621bdd5bddf948872db3b3593e8f1712fd3cba 100644
--- a/public/web/WebWidget.h
+++ b/public/web/WebWidget.h
@@ -138,7 +138,7 @@ public:
virtual void applyViewportDeltas(
const WebSize& scrollDelta,
float scaleFactor,
- float topControlsDelta) { }
+ float topControlsShownRatioDelta) { }
// Applies viewport related properties during a commit from the compositor
// thread.
@@ -149,7 +149,7 @@ public:
const WebSize& mainFrameDelta,
const WebFloatSize& elasticOverscrollDelta,
float scaleFactor,
- float topControlsDelta) { }
+ float topControlsShownRatioDelta) { }
// Applies viewport related properties during a commit from the compositor
// thread.
@@ -158,7 +158,7 @@ public:
const WebFloatSize& mainFrameDelta,
const WebFloatSize& elasticOverscrollDelta,
float scaleFactor,
- float topControlsDelta) { }
+ float topControlsShownRatioDelta) { }
// Called to inform the WebWidget that mouse capture was lost.
virtual void mouseCaptureLost() { }
@@ -271,9 +271,13 @@ public:
// but not the select popup.
virtual WebPagePopup* pagePopup() const { return 0; }
- // Sets the height subtracted from the Widget to accomodate the top controls.
+ // TODO(aelias): Delete this after Blink roll.
virtual void setTopControlsLayoutHeight(float) { }
+ // Notification about the top controls height. If the boolean is true, then
+ // the embedder shrunk the WebView size by the top controls height.
+ virtual void setTopControlsHeight(float height, bool topControlsShrinkLayoutSize) { }
+
protected:
~WebWidget() { }
};
« no previous file with comments | « public/platform/WebLayerTreeView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698