| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_INPUT_HANDLER_H_ | 5 #ifndef CC_INPUT_INPUT_HANDLER_H_ |
| 6 #define CC_INPUT_INPUT_HANDLER_H_ | 6 #define CC_INPUT_INPUT_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 public: | 28 public: |
| 29 virtual ~InputHandlerClient() {} | 29 virtual ~InputHandlerClient() {} |
| 30 | 30 |
| 31 virtual void WillShutdown() = 0; | 31 virtual void WillShutdown() = 0; |
| 32 virtual void Animate(base::TimeTicks time) = 0; | 32 virtual void Animate(base::TimeTicks time) = 0; |
| 33 virtual void MainThreadHasStoppedFlinging() = 0; | 33 virtual void MainThreadHasStoppedFlinging() = 0; |
| 34 | 34 |
| 35 // Called when scroll deltas reaching the root scrolling layer go unused. | 35 // Called when scroll deltas reaching the root scrolling layer go unused. |
| 36 // The accumulated overscroll is scoped by the most recent call to | 36 // The accumulated overscroll is scoped by the most recent call to |
| 37 // InputHandler::ScrollBegin. | 37 // InputHandler::ScrollBegin. |
| 38 virtual void DidOverscroll(const gfx::Vector2dF& accumulated_overscroll, | 38 virtual void DidOverscroll(const gfx::PointF& causal_event_viewport_point, |
| 39 const gfx::Vector2dF& accumulated_overscroll, |
| 39 const gfx::Vector2dF& latest_overscroll_delta) = 0; | 40 const gfx::Vector2dF& latest_overscroll_delta) = 0; |
| 40 | 41 |
| 41 protected: | 42 protected: |
| 42 InputHandlerClient() {} | 43 InputHandlerClient() {} |
| 43 | 44 |
| 44 private: | 45 private: |
| 45 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); | 46 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); |
| 46 }; | 47 }; |
| 47 | 48 |
| 48 // The InputHandler is a way for the embedders to interact with the impl thread | 49 // The InputHandler is a way for the embedders to interact with the impl thread |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 InputHandler() {} | 149 InputHandler() {} |
| 149 virtual ~InputHandler() {} | 150 virtual ~InputHandler() {} |
| 150 | 151 |
| 151 private: | 152 private: |
| 152 DISALLOW_COPY_AND_ASSIGN(InputHandler); | 153 DISALLOW_COPY_AND_ASSIGN(InputHandler); |
| 153 }; | 154 }; |
| 154 | 155 |
| 155 } // namespace cc | 156 } // namespace cc |
| 156 | 157 |
| 157 #endif // CC_INPUT_INPUT_HANDLER_H_ | 158 #endif // CC_INPUT_INPUT_HANDLER_H_ |
| OLD | NEW |