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