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

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: 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
« Source/web/WebViewImpl.h ('K') | « Source/web/WebViewImpl.cpp ('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..752391e6b0e85d62f173a7d84bdcc061b8914e8a 100644
--- a/public/web/WebWidget.h
+++ b/public/web/WebWidget.h
@@ -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 viewport was shrunk by the top controls height as of the last Resize.
+ virtual void setTopControlsHeight(float height, bool topControlsShrinkLayoutSize) { }
+
protected:
~WebWidget() { }
};
« Source/web/WebViewImpl.h ('K') | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698