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

Unified Diff: cc/thread_proxy.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/thread_proxy.cc
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc
index dde1b870c43c810667e58874225d380aa2bcb11d..f509943bbf8f1e74e73f0f804ba5aeab0301afa6 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -138,6 +138,19 @@ void ThreadProxy::requestStartPageScaleAnimationOnImplThread(gfx::Vector2d targe
m_layerTreeHostImpl->startPageScaleAnimation(targetOffset, useAnchor, scale, base::TimeTicks::Now(), duration);
}
+void ThreadProxy::programmaticScroll(gfx::Vector2d targetOffset)
+{
+ DCHECK(Proxy::isMainThread());
+ Proxy::implThread()->postTask(base::Bind(&ThreadProxy::requestProgrammaticScroll, m_implThreadWeakPtr, targetOffset));
+}
+
+void ThreadProxy::requestProgrammaticScroll(gfx::Vector2d targetOffset)
+{
+ DCHECK(Proxy::isImplThread());
+ if (m_layerTreeHostImpl.get())
+ m_layerTreeHostImpl->programmaticScroll(targetOffset);
+}
+
void ThreadProxy::finishAllRendering()
{
DCHECK(Proxy::isMainThread());
« no previous file with comments | « cc/thread_proxy.h ('k') | cc/top_controls_manager.h » ('j') | cc/top_controls_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698