| 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_HANDLER_H_ | 5 #ifndef CC_INPUT_HANDLER_H_ |
| 6 #define CC_INPUT_HANDLER_H_ | 6 #define CC_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/cc_export.h" | 10 #include "cc/cc_export.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 bool anchorPoint, | 60 bool anchorPoint, |
| 61 float pageScale, | 61 float pageScale, |
| 62 base::TimeTicks startTime, | 62 base::TimeTicks startTime, |
| 63 base::TimeDelta duration) = 0; | 63 base::TimeDelta duration) = 0; |
| 64 | 64 |
| 65 // Request another callback to InputHandler::animate(). | 65 // Request another callback to InputHandler::animate(). |
| 66 virtual void scheduleAnimation() = 0; | 66 virtual void scheduleAnimation() = 0; |
| 67 | 67 |
| 68 virtual bool haveTouchEventHandlersAt(const gfx::Point&) = 0; | 68 virtual bool haveTouchEventHandlersAt(const gfx::Point&) = 0; |
| 69 | 69 |
| 70 virtual void didReceiveLastInputEventForVSync() = 0; |
| 71 |
| 70 protected: | 72 protected: |
| 71 InputHandlerClient() { } | 73 InputHandlerClient() { } |
| 72 virtual ~InputHandlerClient() { } | 74 virtual ~InputHandlerClient() { } |
| 73 | 75 |
| 74 private: | 76 private: |
| 75 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); | 77 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); |
| 76 }; | 78 }; |
| 77 | 79 |
| 78 class CC_EXPORT InputHandler { | 80 class CC_EXPORT InputHandler { |
| 79 public: | 81 public: |
| 80 virtual ~InputHandler() { } | 82 virtual ~InputHandler() { } |
| 81 | 83 |
| 82 virtual void bindToClient(InputHandlerClient*) = 0; | 84 virtual void bindToClient(InputHandlerClient*) = 0; |
| 83 virtual void animate(base::TimeTicks time) = 0; | 85 virtual void animate(base::TimeTicks time) = 0; |
| 84 virtual void mainThreadHasStoppedFlinging() = 0; | 86 virtual void mainThreadHasStoppedFlinging() = 0; |
| 85 | 87 |
| 86 protected: | 88 protected: |
| 87 InputHandler() { } | 89 InputHandler() { } |
| 88 | 90 |
| 89 private: | 91 private: |
| 90 DISALLOW_COPY_AND_ASSIGN(InputHandler); | 92 DISALLOW_COPY_AND_ASSIGN(InputHandler); |
| 91 }; | 93 }; |
| 92 | 94 |
| 93 } | 95 } |
| 94 | 96 |
| 95 #endif // CC_INPUT_HANDLER_H_ | 97 #endif // CC_INPUT_HANDLER_H_ |
| OLD | NEW |