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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 bool anchor_point, | 111 bool anchor_point, |
112 float page_scale, | 112 float page_scale, |
113 base::TimeTicks start_time, | 113 base::TimeTicks start_time, |
114 base::TimeDelta duration) = 0; | 114 base::TimeDelta duration) = 0; |
115 | 115 |
116 // Request another callback to InputHandlerClient::Animate(). | 116 // Request another callback to InputHandlerClient::Animate(). |
117 virtual void ScheduleAnimation() = 0; | 117 virtual void ScheduleAnimation() = 0; |
118 | 118 |
119 virtual bool HaveTouchEventHandlersAt(gfx::Point viewport_point) = 0; | 119 virtual bool HaveTouchEventHandlersAt(gfx::Point viewport_point) = 0; |
120 | 120 |
121 virtual void DidReceiveLastInputEventForVSync( | 121 virtual void DidReceiveLastInputEventForBeginFrame( |
122 base::TimeTicks frame_time) = 0; | 122 base::TimeTicks frame_time) = 0; |
123 | 123 |
124 protected: | 124 protected: |
125 InputHandler() {} | 125 InputHandler() {} |
126 virtual ~InputHandler() {} | 126 virtual ~InputHandler() {} |
127 | 127 |
128 private: | 128 private: |
129 DISALLOW_COPY_AND_ASSIGN(InputHandler); | 129 DISALLOW_COPY_AND_ASSIGN(InputHandler); |
130 }; | 130 }; |
131 | 131 |
132 } // namespace cc | 132 } // namespace cc |
133 | 133 |
134 #endif // CC_INPUT_INPUT_HANDLER_H_ | 134 #endif // CC_INPUT_INPUT_HANDLER_H_ |
OLD | NEW |