| 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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 const ui::LatencyInfo& latency_info); | 118 const ui::LatencyInfo& latency_info); |
| 119 | 119 |
| 120 // Returns true if |input_event| was successfully sent to the renderer | 120 // Returns true if |input_event| was successfully sent to the renderer |
| 121 // as an async IPC Message. | 121 // as an async IPC Message. |
| 122 bool OfferToRenderer(const blink::WebInputEvent& input_event, | 122 bool OfferToRenderer(const blink::WebInputEvent& input_event, |
| 123 const ui::LatencyInfo& latency_info, | 123 const ui::LatencyInfo& latency_info, |
| 124 bool is_keyboard_shortcut); | 124 bool is_keyboard_shortcut); |
| 125 | 125 |
| 126 // IPC message handlers | 126 // IPC message handlers |
| 127 void OnInputEventAck(const InputHostMsg_HandleInputEvent_ACK_Params& ack); | 127 void OnInputEventAck(const InputHostMsg_HandleInputEvent_ACK_Params& ack); |
| 128 void OnUncancelableTouchMoveAck(); |
| 128 void OnDidOverscroll(const DidOverscrollParams& params); | 129 void OnDidOverscroll(const DidOverscrollParams& params); |
| 129 void OnMsgMoveCaretAck(); | 130 void OnMsgMoveCaretAck(); |
| 130 void OnSelectMessageAck(); | 131 void OnSelectMessageAck(); |
| 131 void OnHasTouchEventHandlers(bool has_handlers); | 132 void OnHasTouchEventHandlers(bool has_handlers); |
| 132 void OnSetTouchAction(TouchAction touch_action); | 133 void OnSetTouchAction(TouchAction touch_action); |
| 133 void OnDidStopFlinging(); | 134 void OnDidStopFlinging(); |
| 134 | 135 |
| 135 // Indicates the source of an ack provided to |ProcessInputEventAck()|. | 136 // Indicates the source of an ack provided to |ProcessInputEventAck()|. |
| 136 // The source is tracked by |current_ack_source_|, which aids in ack routing. | 137 // The source is tracked by |current_ack_source_|, which aids in ack routing. |
| 137 enum AckSource { | 138 enum AckSource { |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 TouchActionFilter touch_action_filter_; | 253 TouchActionFilter touch_action_filter_; |
| 253 InputEventStreamValidator input_stream_validator_; | 254 InputEventStreamValidator input_stream_validator_; |
| 254 InputEventStreamValidator output_stream_validator_; | 255 InputEventStreamValidator output_stream_validator_; |
| 255 | 256 |
| 256 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); | 257 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); |
| 257 }; | 258 }; |
| 258 | 259 |
| 259 } // namespace content | 260 } // namespace content |
| 260 | 261 |
| 261 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ | 262 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ |
| OLD | NEW |