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

Unified Diff: cc/top_controls_manager.cc

Issue 11967015: Hide location bar on WebKit programmatic scroll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove some plumbing. Created 7 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
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;

Powered by Google App Engine
This is Rietveld 408576698