| 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_IMMEDIATE_INPUT_ROUTER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "content/browser/renderer_host/input/gesture_event_filter.h" | 13 #include "content/browser/renderer_host/input/gesture_event_filter.h" |
| 14 #include "content/browser/renderer_host/input/input_router.h" | 14 #include "content/browser/renderer_host/input/input_router.h" |
| 15 #include "content/browser/renderer_host/input/touch_action_filter.h" |
| 15 #include "content/browser/renderer_host/input/touch_event_queue.h" | 16 #include "content/browser/renderer_host/input/touch_event_queue.h" |
| 16 #include "content/browser/renderer_host/input/touchpad_tap_suppression_controlle
r.h" | 17 #include "content/browser/renderer_host/input/touchpad_tap_suppression_controlle
r.h" |
| 17 #include "content/public/browser/native_web_keyboard_event.h" | 18 #include "content/public/browser/native_web_keyboard_event.h" |
| 18 | 19 |
| 19 namespace IPC { | 20 namespace IPC { |
| 20 class Sender; | 21 class Sender; |
| 21 } | 22 } |
| 22 | 23 |
| 23 namespace ui { | 24 namespace ui { |
| 24 struct LatencyInfo; | 25 struct LatencyInfo; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 const ui::LatencyInfo& latency_info, | 117 const ui::LatencyInfo& latency_info, |
| 117 bool is_keyboard_shortcut); | 118 bool is_keyboard_shortcut); |
| 118 | 119 |
| 119 // IPC message handlers | 120 // IPC message handlers |
| 120 void OnInputEventAck(blink::WebInputEvent::Type event_type, | 121 void OnInputEventAck(blink::WebInputEvent::Type event_type, |
| 121 InputEventAckState ack_result, | 122 InputEventAckState ack_result, |
| 122 const ui::LatencyInfo& latency_info); | 123 const ui::LatencyInfo& latency_info); |
| 123 void OnMsgMoveCaretAck(); | 124 void OnMsgMoveCaretAck(); |
| 124 void OnSelectRangeAck(); | 125 void OnSelectRangeAck(); |
| 125 void OnHasTouchEventHandlers(bool has_handlers); | 126 void OnHasTouchEventHandlers(bool has_handlers); |
| 127 void OnSetTouchAction(int touch_id, content::TouchAction touchAction); |
| 126 | 128 |
| 127 // Indicates the source of an ack provided to |ProcessInputEventAck()|. | 129 // Indicates the source of an ack provided to |ProcessInputEventAck()|. |
| 128 // The source is tracked by |current_ack_source_|, which aids in ack routing. | 130 // The source is tracked by |current_ack_source_|, which aids in ack routing. |
| 129 enum AckSource { | 131 enum AckSource { |
| 130 RENDERER, | 132 RENDERER, |
| 131 CLIENT, | 133 CLIENT, |
| 132 OVERSCROLL_CONTROLLER, | 134 OVERSCROLL_CONTROLLER, |
| 133 IGNORING_DISPOSITION, | 135 IGNORING_DISPOSITION, |
| 134 ACK_SOURCE_NONE | 136 ACK_SOURCE_NONE |
| 135 }; | 137 }; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 // then touch events are sent to the renderer. Otherwise, the touch events are | 236 // then touch events are sent to the renderer. Otherwise, the touch events are |
| 235 // not sent to the renderer. | 237 // not sent to the renderer. |
| 236 bool has_touch_handler_; | 238 bool has_touch_handler_; |
| 237 | 239 |
| 238 // The source of the ack within the scope of |ProcessInputEventAck()|. | 240 // The source of the ack within the scope of |ProcessInputEventAck()|. |
| 239 // Defaults to ACK_SOURCE_NONE. | 241 // Defaults to ACK_SOURCE_NONE. |
| 240 AckSource current_ack_source_; | 242 AckSource current_ack_source_; |
| 241 | 243 |
| 242 scoped_ptr<TouchEventQueue> touch_event_queue_; | 244 scoped_ptr<TouchEventQueue> touch_event_queue_; |
| 243 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 245 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
| 246 TouchActionFilter touch_action_filter_; |
| 244 | 247 |
| 245 DISALLOW_COPY_AND_ASSIGN(ImmediateInputRouter); | 248 DISALLOW_COPY_AND_ASSIGN(ImmediateInputRouter); |
| 246 }; | 249 }; |
| 247 | 250 |
| 248 } // namespace content | 251 } // namespace content |
| 249 | 252 |
| 250 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ | 253 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ |
| OLD | NEW |