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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 virtual void SetBoundHandler(const Handler& handler) = 0; | 44 virtual void SetBoundHandler(const Handler& handler) = 0; |
45 | 45 |
46 // Called from the compositor thread. | 46 // Called from the compositor thread. |
47 virtual void DidAddInputHandler(int routing_id) = 0; | 47 virtual void DidAddInputHandler(int routing_id) = 0; |
48 virtual void DidRemoveInputHandler(int routing_id) = 0; | 48 virtual void DidRemoveInputHandler(int routing_id) = 0; |
49 virtual void DidOverscroll(int routing_id, | 49 virtual void DidOverscroll(int routing_id, |
50 const DidOverscrollParams& params) = 0; | 50 const DidOverscrollParams& params) = 0; |
51 virtual void DidStopFlinging(int routing_id) = 0; | 51 virtual void DidStopFlinging(int routing_id) = 0; |
52 virtual void NotifyInputEventHandled(int routing_id, | 52 virtual void NotifyInputEventHandled(int routing_id, |
53 blink::WebInputEvent::Type type) = 0; | 53 blink::WebInputEvent::Type type) = 0; |
| 54 virtual void DidStartFlinging(bool is_on_impl) = 0; |
54 | 55 |
55 protected: | 56 protected: |
56 InputHandlerManagerClient() {} | 57 InputHandlerManagerClient() {} |
57 | 58 |
58 private: | 59 private: |
59 DISALLOW_COPY_AND_ASSIGN(InputHandlerManagerClient); | 60 DISALLOW_COPY_AND_ASSIGN(InputHandlerManagerClient); |
60 }; | 61 }; |
61 | 62 |
62 class CONTENT_EXPORT SynchronousInputHandlerProxyClient { | 63 class CONTENT_EXPORT SynchronousInputHandlerProxyClient { |
63 public: | 64 public: |
64 virtual ~SynchronousInputHandlerProxyClient() {} | 65 virtual ~SynchronousInputHandlerProxyClient() {} |
65 | 66 |
66 virtual void DidAddSynchronousHandlerProxy( | 67 virtual void DidAddSynchronousHandlerProxy( |
67 int routing_id, | 68 int routing_id, |
68 ui::SynchronousInputHandlerProxy* synchronous_handler) = 0; | 69 ui::SynchronousInputHandlerProxy* synchronous_handler) = 0; |
69 virtual void DidRemoveSynchronousHandlerProxy(int routing_id) = 0; | 70 virtual void DidRemoveSynchronousHandlerProxy(int routing_id) = 0; |
70 | 71 |
71 protected: | 72 protected: |
72 SynchronousInputHandlerProxyClient() {} | 73 SynchronousInputHandlerProxyClient() {} |
73 | 74 |
74 private: | 75 private: |
75 DISALLOW_COPY_AND_ASSIGN(SynchronousInputHandlerProxyClient); | 76 DISALLOW_COPY_AND_ASSIGN(SynchronousInputHandlerProxyClient); |
76 }; | 77 }; |
77 | 78 |
78 } // namespace content | 79 } // namespace content |
79 | 80 |
80 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ | 81 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ |
OLD | NEW |