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

Unified Diff: cc/layer_tree_host_impl.cc

Issue 11967015: Hide location bar on WebKit programmatic scroll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't plumb through WebLayerTreeView Created 7 years, 11 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/layer_tree_host_impl.cc
diff --git a/cc/layer_tree_host_impl.cc b/cc/layer_tree_host_impl.cc
index f314eabe9342e5f2e0f627a1226a624f95301aa9..371c0fd94f2b13c7eeef1ca16556452a6e738fc6 100644
--- a/cc/layer_tree_host_impl.cc
+++ b/cc/layer_tree_host_impl.cc
@@ -287,6 +287,12 @@ void LayerTreeHostImpl::startPageScaleAnimation(gfx::Vector2d targetOffset, bool
m_client->setNeedsCommitOnImplThread();
}
+void LayerTreeHostImpl::programmaticScroll(gfx::Vector2d targetOffset)
+{
+ if (m_topControlsManager)
+ m_topControlsManager->ProgrammaticScroll(targetOffset);
+}
+
void LayerTreeHostImpl::scheduleAnimation()
{
m_client->setNeedsRedrawOnImplThread();
@@ -337,8 +343,6 @@ void LayerTreeHostImpl::updateDrawProperties()
return;
}
- if (m_topControlsManager)
- m_topControlsManager->UpdateDrawPositions();
activeTree()->UpdateDrawProperties();
if (pendingTree())
pendingTree()->UpdateDrawProperties();
« no previous file with comments | « cc/layer_tree_host_impl.h ('k') | cc/proxy.h » ('j') | cc/top_controls_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698