| 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_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CLIENT_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CLIENT_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CLIENT_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CLIENT_H_ |
| 7 | 7 |
| 8 #include "content/browser/renderer_host/event_with_latency_info.h" | 8 #include "content/browser/renderer_host/event_with_latency_info.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/common/input/input_event_ack_source.h" | 10 #include "content/common/input/input_event_ack_source.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 // Called each time a WebInputEvent IPC is sent. | 36 // Called each time a WebInputEvent IPC is sent. |
| 37 virtual void IncrementInFlightEventCount(blink::WebInputEvent::Type type) = 0; | 37 virtual void IncrementInFlightEventCount(blink::WebInputEvent::Type type) = 0; |
| 38 | 38 |
| 39 // Called each time a WebInputEvent ACK IPC is received. | 39 // Called each time a WebInputEvent ACK IPC is received. |
| 40 virtual void DecrementInFlightEventCount(InputEventAckSource ack_source) = 0; | 40 virtual void DecrementInFlightEventCount(InputEventAckSource ack_source) = 0; |
| 41 | 41 |
| 42 // Called when the renderer notifies that it has touch event handlers. | 42 // Called when the renderer notifies that it has touch event handlers. |
| 43 virtual void OnHasTouchEventHandlers(bool has_handlers) = 0; | 43 virtual void OnHasTouchEventHandlers(bool has_handlers) = 0; |
| 44 | 44 |
| 45 // Called when the router has finished flushing all events queued at the time | |
| 46 // of the call to Flush. The call will typically be asynchronous with | |
| 47 // respect to the call to |Flush| on the InputRouter. | |
| 48 virtual void DidFlush() = 0; | |
| 49 | |
| 50 // Called when the router has received an overscroll notification from the | 45 // Called when the router has received an overscroll notification from the |
| 51 // renderer. | 46 // renderer. |
| 52 virtual void DidOverscroll(const ui::DidOverscrollParams& params) = 0; | 47 virtual void DidOverscroll(const ui::DidOverscrollParams& params) = 0; |
| 53 | 48 |
| 54 // Called when a renderer fling has terminated. | 49 // Called when a renderer fling has terminated. |
| 55 virtual void DidStopFlinging() = 0; | 50 virtual void DidStopFlinging() = 0; |
| 56 | 51 |
| 57 // Called when the input router generates an event. It is intended that the | 52 // Called when the input router generates an event. It is intended that the |
| 58 // client will do some processing on |gesture_event| and then send it back | 53 // client will do some processing on |gesture_event| and then send it back |
| 59 // to the InputRouter via SendGestureEvent. | 54 // to the InputRouter via SendGestureEvent. |
| 60 virtual void ForwardGestureEventWithLatencyInfo( | 55 virtual void ForwardGestureEventWithLatencyInfo( |
| 61 const blink::WebGestureEvent& gesture_event, | 56 const blink::WebGestureEvent& gesture_event, |
| 62 const ui::LatencyInfo& latency_info) = 0; | 57 const ui::LatencyInfo& latency_info) = 0; |
| 63 }; | 58 }; |
| 64 | 59 |
| 65 } // namespace content | 60 } // namespace content |
| 66 | 61 |
| 67 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CLIENT_H_ | 62 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CLIENT_H_ |
| OLD | NEW |