| 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 21 matching lines...) Expand all Loading... |
| 32 virtual void NotifyInputEventHandled(int routing_id, | 32 virtual void NotifyInputEventHandled(int routing_id, |
| 33 blink::WebInputEvent::Type type, | 33 blink::WebInputEvent::Type type, |
| 34 blink::WebInputEventResult result, | 34 blink::WebInputEventResult result, |
| 35 InputEventAckState ack_result) = 0; | 35 InputEventAckState ack_result) = 0; |
| 36 virtual void ProcessRafAlignedInput(int routing_id, | 36 virtual void ProcessRafAlignedInput(int routing_id, |
| 37 base::TimeTicks frame_time) = 0; | 37 base::TimeTicks frame_time) = 0; |
| 38 | 38 |
| 39 // Called from the compositor thread. | 39 // Called from the compositor thread. |
| 40 virtual void RegisterRoutingID(int routing_id) = 0; | 40 virtual void RegisterRoutingID(int routing_id) = 0; |
| 41 virtual void UnregisterRoutingID(int routing_id) = 0; | 41 virtual void UnregisterRoutingID(int routing_id) = 0; |
| 42 virtual void AssociateRenderFrameRoutingID(int render_frame_routing_id, |
| 43 int render_view_routing_id) = 0; |
| 44 virtual void QueueClosureForMainThreadEventQueue( |
| 45 int routing_id, |
| 46 const base::Closure& closure) = 0; |
| 42 | 47 |
| 43 // |HandleInputEvent| will respond to overscroll by calling the passed in | 48 // |HandleInputEvent| will respond to overscroll by calling the passed in |
| 44 // callback. | 49 // callback. |
| 45 // Otherwise |DidOverscroll| will be fired. | 50 // Otherwise |DidOverscroll| will be fired. |
| 46 virtual void DidOverscroll(int routing_id, | 51 virtual void DidOverscroll(int routing_id, |
| 47 const ui::DidOverscrollParams& params) = 0; | 52 const ui::DidOverscrollParams& params) = 0; |
| 48 virtual void DidStopFlinging(int routing_id) = 0; | 53 virtual void DidStopFlinging(int routing_id) = 0; |
| 49 virtual void DispatchNonBlockingEventToMainThread( | 54 virtual void DispatchNonBlockingEventToMainThread( |
| 50 int routing_id, | 55 int routing_id, |
| 51 ui::WebScopedInputEvent event, | 56 ui::WebScopedInputEvent event, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 70 protected: | 75 protected: |
| 71 SynchronousInputHandlerProxyClient() {} | 76 SynchronousInputHandlerProxyClient() {} |
| 72 | 77 |
| 73 private: | 78 private: |
| 74 DISALLOW_COPY_AND_ASSIGN(SynchronousInputHandlerProxyClient); | 79 DISALLOW_COPY_AND_ASSIGN(SynchronousInputHandlerProxyClient); |
| 75 }; | 80 }; |
| 76 | 81 |
| 77 } // namespace content | 82 } // namespace content |
| 78 | 83 |
| 79 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ | 84 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_CLIENT_H_ |
| OLD | NEW |