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/time.h" | 9 #include "base/time/time.h" |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 virtual void WillShutdown() = 0; | 37 virtual void WillShutdown() = 0; |
38 virtual void Animate(base::TimeTicks time) = 0; | 38 virtual void Animate(base::TimeTicks time) = 0; |
39 virtual void MainThreadHasStoppedFlinging() = 0; | 39 virtual void MainThreadHasStoppedFlinging() = 0; |
40 | 40 |
41 // Called when scroll deltas reaching the root scrolling layer go unused. | 41 // Called when scroll deltas reaching the root scrolling layer go unused. |
42 // The accumulated overscroll is scoped by the most recent call to | 42 // The accumulated overscroll is scoped by the most recent call to |
43 // InputHandler::ScrollBegin. | 43 // InputHandler::ScrollBegin. |
44 virtual void DidOverscroll(const DidOverscrollParams& params) = 0; | 44 virtual void DidOverscroll(const DidOverscrollParams& params) = 0; |
45 | 45 |
| 46 // Called when the TopControlsManager has finished handling the top control |
| 47 // auto-hide/auto-show gesture. |
| 48 virtual void DidFinishTopControlsGesture() = 0; |
| 49 |
46 protected: | 50 protected: |
47 InputHandlerClient() {} | 51 InputHandlerClient() {} |
48 | 52 |
49 private: | 53 private: |
50 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); | 54 DISALLOW_COPY_AND_ASSIGN(InputHandlerClient); |
51 }; | 55 }; |
52 | 56 |
53 // The InputHandler is a way for the embedders to interact with the impl thread | 57 // The InputHandler is a way for the embedders to interact with the impl thread |
54 // side of the compositor implementation. There is one InputHandler per | 58 // side of the compositor implementation. There is one InputHandler per |
55 // LayerTreeHost. To use the input handler, implement the InputHanderClient | 59 // LayerTreeHost. To use the input handler, implement the InputHanderClient |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 InputHandler() {} | 143 InputHandler() {} |
140 virtual ~InputHandler() {} | 144 virtual ~InputHandler() {} |
141 | 145 |
142 private: | 146 private: |
143 DISALLOW_COPY_AND_ASSIGN(InputHandler); | 147 DISALLOW_COPY_AND_ASSIGN(InputHandler); |
144 }; | 148 }; |
145 | 149 |
146 } // namespace cc | 150 } // namespace cc |
147 | 151 |
148 #endif // CC_INPUT_INPUT_HANDLER_H_ | 152 #endif // CC_INPUT_INPUT_HANDLER_H_ |
OLD | NEW |