| 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.h" | 9 #include "base/time.h" |
| 10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 bool anchor_point, | 82 bool anchor_point, |
| 83 float page_scale, | 83 float page_scale, |
| 84 base::TimeTicks start_time, | 84 base::TimeTicks start_time, |
| 85 base::TimeDelta duration) = 0; | 85 base::TimeDelta duration) = 0; |
| 86 | 86 |
| 87 // Request another callback to InputHandlerClient::Animate(). | 87 // Request another callback to InputHandlerClient::Animate(). |
| 88 virtual void ScheduleAnimation() = 0; | 88 virtual void ScheduleAnimation() = 0; |
| 89 | 89 |
| 90 virtual bool HaveTouchEventHandlersAt(gfx::Point viewport_point) = 0; | 90 virtual bool HaveTouchEventHandlersAt(gfx::Point viewport_point) = 0; |
| 91 | 91 |
| 92 virtual void DidReceiveLastInputEventForVSync( | 92 virtual void DidReceiveLastInputEventForBeginImplFrame( |
| 93 base::TimeTicks frame_time) = 0; | 93 base::TimeTicks frame_time) = 0; |
| 94 | 94 |
| 95 protected: | 95 protected: |
| 96 InputHandler() {} | 96 InputHandler() {} |
| 97 virtual ~InputHandler() {} | 97 virtual ~InputHandler() {} |
| 98 | 98 |
| 99 private: | 99 private: |
| 100 DISALLOW_COPY_AND_ASSIGN(InputHandler); | 100 DISALLOW_COPY_AND_ASSIGN(InputHandler); |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 class CC_EXPORT InputHandlerClient { | 103 class CC_EXPORT InputHandlerClient { |
| 104 public: | 104 public: |
| 105 virtual ~InputHandlerClient() {} | 105 virtual ~InputHandlerClient() {} |
| 106 | 106 |
| 107 virtual void BindToHandler(InputHandler* handler) = 0; | 107 virtual void BindToHandler(InputHandler* handler) = 0; |
| 108 virtual void Animate(base::TimeTicks time) = 0; | 108 virtual void Animate(base::TimeTicks time) = 0; |
| 109 virtual void MainThreadHasStoppedFlinging() = 0; | 109 virtual void MainThreadHasStoppedFlinging() = 0; |
| 110 | 110 |
| 111 protected: | 111 protected: |
| 112 InputHandlerClient() {} | 112 InputHandlerClient() {} |
| 113 | 113 |
| 114 private: | 114 private: |
| 115 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); | 115 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 } // namespace cc | 118 } // namespace cc |
| 119 | 119 |
| 120 #endif // CC_INPUT_INPUT_HANDLER_H_ | 120 #endif // CC_INPUT_INPUT_HANDLER_H_ |
| OLD | NEW |