| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_INPUT_SCROLL_ELASTICITY_HELPER_H_ | 5 #ifndef CC_INPUT_SCROLL_ELASTICITY_HELPER_H_ |
| 6 #define CC_INPUT_SCROLL_ELASTICITY_HELPER_H_ | 6 #define CC_INPUT_SCROLL_ELASTICITY_HELPER_H_ |
| 7 | 7 |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "cc/base/cc_export.h" | 9 #include "cc/cc_export.h" |
| 10 #include "ui/gfx/geometry/scroll_offset.h" | 10 #include "ui/gfx/geometry/scroll_offset.h" |
| 11 #include "ui/gfx/geometry/vector2d_f.h" | 11 #include "ui/gfx/geometry/vector2d_f.h" |
| 12 | 12 |
| 13 namespace cc { | 13 namespace cc { |
| 14 | 14 |
| 15 class LayerTreeHostImpl; | 15 class LayerTreeHostImpl; |
| 16 | 16 |
| 17 // ScrollElasticityHelper is based on | 17 // ScrollElasticityHelper is based on |
| 18 // WebKit/Source/platform/mac/ScrollElasticityController.h | 18 // WebKit/Source/platform/mac/ScrollElasticityController.h |
| 19 /* | 19 /* |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 virtual void ScrollBy(const gfx::Vector2dF& delta) = 0; | 64 virtual void ScrollBy(const gfx::Vector2dF& delta) = 0; |
| 65 | 65 |
| 66 // Requests that another frame happens for the controller to continue ticking | 66 // Requests that another frame happens for the controller to continue ticking |
| 67 // animations. | 67 // animations. |
| 68 virtual void RequestOneBeginFrame() = 0; | 68 virtual void RequestOneBeginFrame() = 0; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace cc | 71 } // namespace cc |
| 72 | 72 |
| 73 #endif // CC_INPUT_SCROLL_ELASTICITY_HELPER_H_ | 73 #endif // CC_INPUT_SCROLL_ELASTICITY_HELPER_H_ |
| OLD | NEW |