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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 14139013: Hide location bar on Javascript-initiated scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync, merge, address style nits. Created 7 years, 7 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/trees/layer_tree_host.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 367a84758691e0c35123ee287630b2f8557b9e7c..97a27606b999fae68c29da5e64a392a53e04bf9b 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -971,8 +971,8 @@ void LayerTreeHost::SetDeviceScaleFactor(float device_scale_factor) {
SetNeedsCommit();
}
-void LayerTreeHost::UpdateTopControlsState(bool enable_hiding,
- bool enable_showing,
+void LayerTreeHost::UpdateTopControlsState(TopControlsState constraints,
+ TopControlsState current,
bool animate) {
if (!settings_.calculate_top_controls_position)
return;
@@ -981,8 +981,8 @@ void LayerTreeHost::UpdateTopControlsState(bool enable_hiding,
proxy_->ImplThread()->PostTask(
base::Bind(&TopControlsManager::UpdateTopControlsState,
top_controls_manager_weak_ptr_,
- enable_hiding,
- enable_showing,
+ constraints,
+ current,
animate));
}
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698