| 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/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 #include "content/port/browser/event_with_latency_info.h" | 9 #include "content/port/browser/event_with_latency_info.h" |
| 10 #include "content/port/common/input_event_ack_state.h" | 10 #include "content/port/common/input_event_ack_state.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 public: | 23 public: |
| 24 virtual ~InputRouterClient() {} | 24 virtual ~InputRouterClient() {} |
| 25 | 25 |
| 26 // Called just prior to events being sent to the renderer, giving the client | 26 // Called just prior to events being sent to the renderer, giving the client |
| 27 // a chance to perform in-process event filtering. | 27 // a chance to perform in-process event filtering. |
| 28 // The returned disposition will yield the following behavior: | 28 // The returned disposition will yield the following behavior: |
| 29 // * |NOT_CONSUMED| will result in |input_event| being sent as usual. | 29 // * |NOT_CONSUMED| will result in |input_event| being sent as usual. |
| 30 // * |CONSUMED| or |NO_CONSUMER_EXISTS| will trigger the appropriate ack. | 30 // * |CONSUMED| or |NO_CONSUMER_EXISTS| will trigger the appropriate ack. |
| 31 // * |UNKNOWN| will result in |input_event| being dropped. | 31 // * |UNKNOWN| will result in |input_event| being dropped. |
| 32 virtual InputEventAckState FilterInputEvent( | 32 virtual InputEventAckState FilterInputEvent( |
| 33 const WebKit::WebInputEvent& input_event, | 33 const blink::WebInputEvent& input_event, |
| 34 const ui::LatencyInfo& latency_info) = 0; | 34 const ui::LatencyInfo& latency_info) = 0; |
| 35 | 35 |
| 36 // Called each time a WebInputEvent IPC is sent. | 36 // Called each time a WebInputEvent IPC is sent. |
| 37 virtual void IncrementInFlightEventCount() = 0; | 37 virtual void IncrementInFlightEventCount() = 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() = 0; | 40 virtual void DecrementInFlightEventCount() = 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; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 54 | 54 |
| 55 // Called when the router has finished flushing all events queued at the time | 55 // Called when the router has finished flushing all events queued at the time |
| 56 // of the call to Flush. The call will typically be asynchronous with | 56 // of the call to Flush. The call will typically be asynchronous with |
| 57 // respect to the call to |Flush| on the InputRouter. | 57 // respect to the call to |Flush| on the InputRouter. |
| 58 virtual void DidFlush() = 0; | 58 virtual void DidFlush() = 0; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace content | 61 } // namespace content |
| 62 | 62 |
| 63 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CLIENT_H_ | 63 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CLIENT_H_ |
| OLD | NEW |