Chromium Code Reviews| Index: cc/top_controls_manager.cc |
| diff --git a/cc/top_controls_manager.cc b/cc/top_controls_manager.cc |
| index 98fddb849d2f3d8dbde7bf9f14aa97751fe8b7aa..8358c3eba078e695fc101f3be4cb1fd41fb10e9e 100644 |
| --- a/cc/top_controls_manager.cc |
| +++ b/cc/top_controls_manager.cc |
| @@ -58,6 +58,17 @@ TopControlsManager::TopControlsManager(TopControlsManagerClient* client, |
| TopControlsManager::~TopControlsManager() { |
| } |
| +void TopControlsManager::HideTopControls() { |
| + if (controls_top_offset_ == -top_controls_height_) |
| + return; |
| + |
| + // We're in a user scroll. |
|
jamesr
2013/03/04 21:44:03
This seems kind of iffy - who's responsible for de
John Knottenbelt
2013/03/05 16:41:48
The ultimate authority on whether the top controls
jamesr
2013/03/14 19:38:34
Yeah, I think this if should be removed.
|
| + if (in_scroll_gesture_) |
| + return; |
| + |
| + SetupAnimation(HIDING_CONTROLS); |
| +} |
| + |
| void TopControlsManager::ScrollBegin() { |
| ResetAnimations(); |
| in_scroll_gesture_ = true; |