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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <queue> | 10 #include <queue> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "content/browser/renderer_host/input/gesture_event_queue.h" | 15 #include "content/browser/renderer_host/input/gesture_event_queue.h" |
16 #include "content/browser/renderer_host/input/input_router.h" | 16 #include "content/browser/renderer_host/input/input_router.h" |
17 #include "content/browser/renderer_host/input/mouse_wheel_event_queue.h" | 17 #include "content/browser/renderer_host/input/mouse_wheel_event_queue.h" |
18 #include "content/browser/renderer_host/input/touch_action_filter.h" | 18 #include "content/browser/renderer_host/input/touch_action_filter.h" |
19 #include "content/browser/renderer_host/input/touch_event_queue.h" | 19 #include "content/browser/renderer_host/input/touch_event_queue.h" |
20 #include "content/browser/renderer_host/input/touchpad_tap_suppression_controlle
r.h" | 20 #include "content/browser/renderer_host/input/touchpad_tap_suppression_controlle
r.h" |
| 21 #include "content/common/input/input_event_dispatch_type.h" |
21 #include "content/common/input/input_event_stream_validator.h" | 22 #include "content/common/input/input_event_stream_validator.h" |
22 #include "content/public/browser/native_web_keyboard_event.h" | 23 #include "content/public/browser/native_web_keyboard_event.h" |
23 | 24 |
24 namespace IPC { | 25 namespace IPC { |
25 class Sender; | 26 class Sender; |
26 } | 27 } |
27 | 28 |
28 namespace ui { | 29 namespace ui { |
29 class LatencyInfo; | 30 class LatencyInfo; |
30 } | 31 } |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 void OfferToHandlers(const blink::WebInputEvent& input_event, | 121 void OfferToHandlers(const blink::WebInputEvent& input_event, |
121 const ui::LatencyInfo& latency_info); | 122 const ui::LatencyInfo& latency_info); |
122 | 123 |
123 // Returns true if |input_event| was consumed by the client. | 124 // Returns true if |input_event| was consumed by the client. |
124 bool OfferToClient(const blink::WebInputEvent& input_event, | 125 bool OfferToClient(const blink::WebInputEvent& input_event, |
125 const ui::LatencyInfo& latency_info); | 126 const ui::LatencyInfo& latency_info); |
126 | 127 |
127 // Returns true if |input_event| was successfully sent to the renderer | 128 // Returns true if |input_event| was successfully sent to the renderer |
128 // as an async IPC Message. | 129 // as an async IPC Message. |
129 bool OfferToRenderer(const blink::WebInputEvent& input_event, | 130 bool OfferToRenderer(const blink::WebInputEvent& input_event, |
130 const ui::LatencyInfo& latency_info); | 131 const ui::LatencyInfo& latency_info, |
| 132 InputEventDispatchType dispatch_type); |
131 | 133 |
132 // IPC message handlers | 134 // IPC message handlers |
133 void OnInputEventAck(const InputEventAck& ack); | 135 void OnInputEventAck(const InputEventAck& ack); |
134 void OnDidOverscroll(const DidOverscrollParams& params); | 136 void OnDidOverscroll(const DidOverscrollParams& params); |
135 void OnMsgMoveCaretAck(); | 137 void OnMsgMoveCaretAck(); |
136 void OnSelectMessageAck(); | 138 void OnSelectMessageAck(); |
137 void OnHasTouchEventHandlers(bool has_handlers); | 139 void OnHasTouchEventHandlers(bool has_handlers); |
138 void OnSetTouchAction(TouchAction touch_action); | 140 void OnSetTouchAction(TouchAction touch_action); |
139 void OnDidStopFlinging(); | 141 void OnDidStopFlinging(); |
140 | 142 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 InputEventStreamValidator output_stream_validator_; | 255 InputEventStreamValidator output_stream_validator_; |
254 | 256 |
255 float device_scale_factor_; | 257 float device_scale_factor_; |
256 | 258 |
257 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); | 259 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); |
258 }; | 260 }; |
259 | 261 |
260 } // namespace content | 262 } // namespace content |
261 | 263 |
262 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ | 264 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ |
OLD | NEW |