| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 bool OfferToRenderer(const blink::WebInputEvent& input_event, | 120 bool OfferToRenderer(const blink::WebInputEvent& input_event, |
| 121 const ui::LatencyInfo& latency_info, | 121 const ui::LatencyInfo& latency_info, |
| 122 bool is_keyboard_shortcut); | 122 bool is_keyboard_shortcut); |
| 123 | 123 |
| 124 // IPC message handlers | 124 // IPC message handlers |
| 125 void OnInputEventAck(const InputEventAck& ack); | 125 void OnInputEventAck(const InputEventAck& ack); |
| 126 void OnDidOverscroll(const DidOverscrollParams& params); | 126 void OnDidOverscroll(const DidOverscrollParams& params); |
| 127 void OnMsgMoveCaretAck(); | 127 void OnMsgMoveCaretAck(); |
| 128 void OnSelectMessageAck(); | 128 void OnSelectMessageAck(); |
| 129 void OnHasTouchEventHandlers(bool has_handlers); | 129 void OnHasTouchEventHandlers(bool has_handlers); |
| 130 void OnHasTouchMoveEventHandlers(bool has_handlers); |
| 130 void OnSetTouchAction(TouchAction touch_action); | 131 void OnSetTouchAction(TouchAction touch_action); |
| 131 void OnDidStopFlinging(); | 132 void OnDidStopFlinging(); |
| 132 | 133 |
| 133 // Indicates the source of an ack provided to |ProcessInputEventAck()|. | 134 // Indicates the source of an ack provided to |ProcessInputEventAck()|. |
| 134 // The source is tracked by |current_ack_source_|, which aids in ack routing. | 135 // The source is tracked by |current_ack_source_|, which aids in ack routing. |
| 135 enum AckSource { | 136 enum AckSource { |
| 136 RENDERER, | 137 RENDERER, |
| 137 CLIENT, | 138 CLIENT, |
| 138 IGNORING_DISPOSITION, | 139 IGNORING_DISPOSITION, |
| 139 ACK_SOURCE_NONE | 140 ACK_SOURCE_NONE |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 TouchActionFilter touch_action_filter_; | 258 TouchActionFilter touch_action_filter_; |
| 258 InputEventStreamValidator input_stream_validator_; | 259 InputEventStreamValidator input_stream_validator_; |
| 259 InputEventStreamValidator output_stream_validator_; | 260 InputEventStreamValidator output_stream_validator_; |
| 260 | 261 |
| 261 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); | 262 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); |
| 262 }; | 263 }; |
| 263 | 264 |
| 264 } // namespace content | 265 } // namespace content |
| 265 | 266 |
| 266 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ | 267 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ |
| OLD | NEW |