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

Unified Diff: cc/input/top_controls_manager.cc

Issue 2106753004: Introduce bottom controls to CC and let it respond to scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: findbug Created 4 years, 4 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 | « cc/input/top_controls_manager.h ('k') | cc/input/top_controls_manager_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/top_controls_manager.cc
diff --git a/cc/input/top_controls_manager.cc b/cc/input/top_controls_manager.cc
index 2b7b55b3c5de69a840d52f84b2fa3029d27565a8..9e3d9b1f1fb6948767ecaf8fcc79d37d655e83e6 100644
--- a/cc/input/top_controls_manager.cc
+++ b/cc/input/top_controls_manager.cc
@@ -68,6 +68,18 @@ float TopControlsManager::TopControlsHeight() const {
return client_->TopControlsHeight();
}
+float TopControlsManager::BottomControlsHeight() const {
+ return client_->BottomControlsHeight();
+}
+
+float TopControlsManager::ContentBottomOffset() const {
+ return TopControlsShownRatio() * BottomControlsHeight();
+}
+
+float TopControlsManager::BottomControlsShownRatio() const {
+ return TopControlsShownRatio();
+}
+
void TopControlsManager::UpdateTopControlsState(TopControlsState constraints,
TopControlsState current,
bool animate) {
« no previous file with comments | « cc/input/top_controls_manager.h ('k') | cc/input/top_controls_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698