| 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/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 gfx::Vector2dF unused_scroll_delta; | 41 gfx::Vector2dF unused_scroll_delta; |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 class CC_EXPORT InputHandlerClient { | 44 class CC_EXPORT InputHandlerClient { |
| 45 public: | 45 public: |
| 46 virtual ~InputHandlerClient() {} | 46 virtual ~InputHandlerClient() {} |
| 47 | 47 |
| 48 virtual void WillShutdown() = 0; | 48 virtual void WillShutdown() = 0; |
| 49 virtual void Animate(base::TimeTicks time) = 0; | 49 virtual void Animate(base::TimeTicks time) = 0; |
| 50 virtual void MainThreadHasStoppedFlinging() = 0; | 50 virtual void MainThreadHasStoppedFlinging() = 0; |
| 51 virtual void ReconcileElasticOverscrollAndRootScroll() = 0; |
| 51 | 52 |
| 52 protected: | 53 protected: |
| 53 InputHandlerClient() {} | 54 InputHandlerClient() {} |
| 54 | 55 |
| 55 private: | 56 private: |
| 56 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); | 57 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 // The InputHandler is a way for the embedders to interact with the impl thread | 60 // The InputHandler is a way for the embedders to interact with the impl thread |
| 60 // side of the compositor implementation. There is one InputHandler per | 61 // side of the compositor implementation. There is one InputHandler per |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 InputHandler() {} | 158 InputHandler() {} |
| 158 virtual ~InputHandler() {} | 159 virtual ~InputHandler() {} |
| 159 | 160 |
| 160 private: | 161 private: |
| 161 DISALLOW_COPY_AND_ASSIGN(InputHandler); | 162 DISALLOW_COPY_AND_ASSIGN(InputHandler); |
| 162 }; | 163 }; |
| 163 | 164 |
| 164 } // namespace cc | 165 } // namespace cc |
| 165 | 166 |
| 166 #endif // CC_INPUT_INPUT_HANDLER_H_ | 167 #endif // CC_INPUT_INPUT_HANDLER_H_ |
| OLD | NEW |