Chromium Code Reviews| Index: ui/android/overscroll_glow.h |
| diff --git a/ui/android/overscroll_glow.h b/ui/android/overscroll_glow.h |
| index 8253de04575409bc89361f322adc9399fa1c124f..62a7a38d43d47306933babb7288870a6ab745732 100644 |
| --- a/ui/android/overscroll_glow.h |
| +++ b/ui/android/overscroll_glow.h |
| @@ -47,11 +47,12 @@ class UI_ANDROID_EXPORT OverscrollGlow { |
| // |velocity| is in device pixels / second. |
| // |overscroll_location| is the coordinate of the causal overscrolling event. |
| // Returns true if the effect still needs animation ticks. |
| - bool OnOverscrolled(base::TimeTicks current_time, |
| - const gfx::Vector2dF& accumulated_overscroll, |
| - gfx::Vector2dF overscroll_delta, |
| - gfx::Vector2dF velocity, |
| - const gfx::Vector2dF& overscroll_location); |
| + // This method is made virtual for mocking. |
| + virtual bool OnOverscrolled(base::TimeTicks current_time, |
| + const gfx::Vector2dF& accumulated_overscroll, |
| + gfx::Vector2dF overscroll_delta, |
|
dcheng
2017/08/25 23:12:17
Not introduced by this CL, but shouldn't these all
sunyunjia
2017/08/29 17:32:31
Done.
|
| + gfx::Vector2dF velocity, |
| + const gfx::Vector2dF& overscroll_location); |
| // Returns true if the effect still needs animation ticks, with effect layers |
| // attached to |parent_layer| if necessary. |