Index: content/public/browser/android/synchronous_compositor_client.h |
diff --git a/content/public/browser/android/synchronous_compositor_client.h b/content/public/browser/android/synchronous_compositor_client.h |
index e42e09aadca15908039b73c1470b72c1e164ee90..83d1e2166a8f545ff476bfe74d2481e3f5f88c53 100644 |
--- a/content/public/browser/android/synchronous_compositor_client.h |
+++ b/content/public/browser/android/synchronous_compositor_client.h |
@@ -6,6 +6,8 @@ |
#define CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_CLIENT_H_ |
#include "base/basictypes.h" |
+#include "base/callback_forward.h" |
+#include "base/time/time.h" |
#include "ui/gfx/geometry/size_f.h" |
#include "ui/gfx/geometry/vector2d_f.h" |
@@ -33,7 +35,10 @@ class SynchronousCompositorClient { |
float page_scale_factor, |
float min_page_scale_factor, |
float max_page_scale_factor) = 0; |
- virtual bool IsExternalFlingActive() const = 0; |
+ virtual bool IsExternalScrollActive() const = 0; |
+ |
+ typedef base::Callback<void(base::TimeTicks)> AnimationCallback; |
+ virtual void SetNeedsAnimateFling(const AnimationCallback& animation) = 0; |
jdduke (slow)
2015/05/18 21:18:34
If we ever move smooth scrolling to the compositor
hush (inactive)
2015/05/19 18:14:59
Yes. I will rename this function to SetNeedsAnimat
|
virtual void DidOverscroll(gfx::Vector2dF accumulated_overscroll, |
gfx::Vector2dF latest_overscroll_delta, |