Control fling curves with parameters in RendererPreferences
This patch provides the renderer side implementation of a change for
controlling fling curve coefficients from a browser-side configuration
interface. A factory class manages synchronized access to the
coefficients and constructs fling curves using them. The Coefficients are
delivered to the factory via the existing RendererPreferences facility.
BUG=119073
Review URL: https://chromiumcodereview.appspot.com/11638026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180869 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 7dd13c23..3b931b1 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -1190,4 +1190,12 @@
return file_thread_->message_loop_proxy();
}
+void RenderThreadImpl::SetFlingCurveParameters(
+ const std::vector<float>& new_touchpad,
+ const std::vector<float>& new_touchscreen) {
+ webkit_platform_support_->SetFlingCurveParameters(new_touchpad,
+ new_touchscreen);
+
+}
+
} // namespace content