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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 11967015: Hide location bar on WebKit programmatic scroll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Route requestHideTopControls through browser. Created 7 years, 9 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/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index b023f8506fd6b56fd11dea3735ce4fca39bb83db..9eb4e8c3c8a2138db35c97a3078ee53def185ce0 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -971,6 +971,13 @@ void LayerTreeHost::EnableHidingTopControls(bool enable) {
top_controls_manager_weak_ptr_, enable));
}
+void LayerTreeHost::ShowTopControls(bool show)
+{
John Knottenbelt 2013/03/25 15:29:48 To previous line.
+ proxy_->ImplThread()->PostTask(
John Knottenbelt 2013/03/25 15:29:48 Add if (!settings_.calculate_top_controls_positio
+ base::Bind(&TopControlsManager::ShowTopControls,
+ top_controls_manager_weak_ptr_, show));
+}
+
bool LayerTreeHost::BlocksPendingCommit() const {
if (!root_layer_)
return false;

Powered by Google App Engine
This is Rietveld 408576698