Chromium Code Reviews| 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..c9d5c705ca6c85911bc598576fe3803dd7842922 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::BottomControlsOffset() const { |
| + return TopControlsShownRatio() * BottomControlsHeight(); |
| +} |
| + |
| +float TopControlsManager::BottomContentOffset() const { |
| + return BottomControlsHeight() - BottomControlsOffset(); |
|
bokan
2016/06/30 12:31:21
This feels odd to me. When shown ratio is 0, Botto
Ian Wen
2016/07/01 02:51:44
Hmmm you are right. I should swap the value conten
|
| +} |
| + |
| void TopControlsManager::UpdateTopControlsState(TopControlsState constraints, |
| TopControlsState current, |
| bool animate) { |