OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ | 5 #ifndef CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ |
6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ | 6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 // Called from the compositor thread. | 41 // Called from the compositor thread. |
42 virtual void RegisterRoutingID(int routing_id) = 0; | 42 virtual void RegisterRoutingID(int routing_id) = 0; |
43 virtual void UnregisterRoutingID(int routing_id) = 0; | 43 virtual void UnregisterRoutingID(int routing_id) = 0; |
44 | 44 |
45 // |HandleInputEvent| will respond to overscroll by calling the passed in | 45 // |HandleInputEvent| will respond to overscroll by calling the passed in |
46 // callback. | 46 // callback. |
47 // Otherwise |DidOverscroll| will be fired. | 47 // Otherwise |DidOverscroll| will be fired. |
48 virtual void DidOverscroll(int routing_id, | 48 virtual void DidOverscroll(int routing_id, |
49 const ui::DidOverscrollParams& params) = 0; | 49 const ui::DidOverscrollParams& params) = 0; |
50 virtual void DidStartFlinging(int routing_id) = 0; | |
51 virtual void DidStopFlinging(int routing_id) = 0; | 50 virtual void DidStopFlinging(int routing_id) = 0; |
52 virtual void DispatchNonBlockingEventToMainThread( | 51 virtual void DispatchNonBlockingEventToMainThread( |
53 int routing_id, | 52 int routing_id, |
54 ui::ScopedWebInputEvent event, | 53 ui::ScopedWebInputEvent event, |
55 const ui::LatencyInfo& latency_info) = 0; | 54 const ui::LatencyInfo& latency_info) = 0; |
56 | 55 |
57 protected: | 56 protected: |
58 InputHandlerManagerClient() {} | 57 InputHandlerManagerClient() {} |
59 | 58 |
60 private: | 59 private: |
(...skipping 12 matching lines...) Expand all Loading... |
73 protected: | 72 protected: |
74 SynchronousInputHandlerProxyClient() {} | 73 SynchronousInputHandlerProxyClient() {} |
75 | 74 |
76 private: | 75 private: |
77 DISALLOW_COPY_AND_ASSIGN(SynchronousInputHandlerProxyClient); | 76 DISALLOW_COPY_AND_ASSIGN(SynchronousInputHandlerProxyClient); |
78 }; | 77 }; |
79 | 78 |
80 } // namespace content | 79 } // namespace content |
81 | 80 |
82 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ | 81 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ |
OLD | NEW |