| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 virtual void startPageScaleAnimation(const IntSize& targetPosition, | 58 virtual void startPageScaleAnimation(const IntSize& targetPosition, |
| 59 bool anchorPoint, | 59 bool anchorPoint, |
| 60 float pageScale, | 60 float pageScale, |
| 61 base::TimeTicks startTime, | 61 base::TimeTicks startTime, |
| 62 base::TimeDelta duration) = 0; | 62 base::TimeDelta duration) = 0; |
| 63 | 63 |
| 64 // Request another callback to InputHandler::animate(). | 64 // Request another callback to InputHandler::animate(). |
| 65 virtual void scheduleAnimation() = 0; | 65 virtual void scheduleAnimation() = 0; |
| 66 | 66 |
| 67 virtual bool checkTouchEventHandlerRegionHit(const gfx::Point&) = 0; |
| 68 |
| 67 protected: | 69 protected: |
| 68 InputHandlerClient() { } | 70 InputHandlerClient() { } |
| 69 virtual ~InputHandlerClient() { } | 71 virtual ~InputHandlerClient() { } |
| 70 | 72 |
| 71 private: | 73 private: |
| 72 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); | 74 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); |
| 73 }; | 75 }; |
| 74 | 76 |
| 75 class CC_EXPORT InputHandler { | 77 class CC_EXPORT InputHandler { |
| 76 public: | 78 public: |
| 77 virtual ~InputHandler() { } | 79 virtual ~InputHandler() { } |
| 78 | 80 |
| 79 virtual void bindToClient(InputHandlerClient*) = 0; | 81 virtual void bindToClient(InputHandlerClient*) = 0; |
| 80 virtual void animate(base::TimeTicks time) = 0; | 82 virtual void animate(base::TimeTicks time) = 0; |
| 81 | 83 |
| 82 protected: | 84 protected: |
| 83 InputHandler() { } | 85 InputHandler() { } |
| 84 | 86 |
| 85 private: | 87 private: |
| 86 DISALLOW_COPY_AND_ASSIGN(InputHandler); | 88 DISALLOW_COPY_AND_ASSIGN(InputHandler); |
| 87 }; | 89 }; |
| 88 | 90 |
| 89 } | 91 } |
| 90 | 92 |
| 91 #endif // CC_INPUT_HANDLER_H_ | 93 #endif // CC_INPUT_HANDLER_H_ |
| OLD | NEW |