Add fling velocity updates from gesture curves.

As per crrev.com/13674008, WebGestureCurveTarget now supports fling velocity
notifications.  This patch hooks in the notifications from existing
WebGestureCurve implementations.

BUG=135975
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/14128010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197139 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 69ecc85..e559c81 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1745,6 +1745,7 @@
 void LayerTreeHostImpl::ClearCurrentlyScrollingLayer() {
   active_tree_->ClearCurrentlyScrollingLayer();
   did_lock_scrolling_layer_ = false;
+  current_fling_velocity_ = gfx::Vector2dF();
 }
 
 void LayerTreeHostImpl::ScrollEnd() {
@@ -1762,6 +1763,10 @@
   return ScrollIgnored;
 }
 
+void LayerTreeHostImpl::NotifyCurrentFlingVelocity(gfx::Vector2dF velocity) {
+  current_fling_velocity_ = velocity;
+}
+
 void LayerTreeHostImpl::PinchGestureBegin() {
   pinch_gesture_active_ = true;
   previous_pinch_anchor_ = gfx::Point();