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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 139563004: Notification on finish handling of top control gesture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | content/browser/android/content_view_core_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index fbc4a820f982496949dce7d3040f3a0518f703c4..3dff6e04629f66bd80988edd2bddfd4b9a1fab4e 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1964,6 +1964,11 @@ void LayerTreeHostImpl::DidChangeTopControlsPosition() {
SetFullRootLayerDamage();
}
+void LayerTreeHostImpl::DidFinishTopControlsGesture() {
+ if (input_handler_client_)
+ input_handler_client_->DidFinishTopControlsGesture();
+}
+
bool LayerTreeHostImpl::EnsureRenderSurfaceLayerList() {
active_tree_->UpdateDrawProperties();
return !active_tree_->RenderSurfaceLayerList().empty();
@@ -2018,9 +2023,6 @@ InputHandler::ScrollStatus LayerTreeHostImpl::ScrollBegin(
gfx::Point viewport_point, InputHandler::ScrollInputType type) {
TRACE_EVENT0("cc", "LayerTreeHostImpl::ScrollBegin");
- if (top_controls_manager_)
- top_controls_manager_->ScrollBegin();
-
DCHECK(!CurrentlyScrollingLayer());
ClearCurrentlyScrollingLayer();
@@ -2046,6 +2048,9 @@ InputHandler::ScrollStatus LayerTreeHostImpl::ScrollBegin(
potentially_scrolling_layer_impl = RootScrollLayer();
if (potentially_scrolling_layer_impl) {
+ if (top_controls_manager_)
+ top_controls_manager_->ScrollBegin();
+
active_tree_->SetCurrentlyScrollingLayer(
potentially_scrolling_layer_impl);
should_bubble_scrolls_ = (type != NonBubblingGesture);
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | content/browser/android/content_view_core_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698