| 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 <map> | 10 #include <map> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <queue> | 12 #include <queue> |
| 13 | 13 |
| 14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 17 #include "cc/input/touch_action.h" |
| 17 #include "content/browser/renderer_host/input/gesture_event_queue.h" | 18 #include "content/browser/renderer_host/input/gesture_event_queue.h" |
| 18 #include "content/browser/renderer_host/input/input_router.h" | 19 #include "content/browser/renderer_host/input/input_router.h" |
| 19 #include "content/browser/renderer_host/input/mouse_wheel_event_queue.h" | 20 #include "content/browser/renderer_host/input/mouse_wheel_event_queue.h" |
| 20 #include "content/browser/renderer_host/input/touch_action_filter.h" | 21 #include "content/browser/renderer_host/input/touch_action_filter.h" |
| 21 #include "content/browser/renderer_host/input/touch_event_queue.h" | 22 #include "content/browser/renderer_host/input/touch_event_queue.h" |
| 22 #include "content/browser/renderer_host/input/touchpad_tap_suppression_controlle
r.h" | 23 #include "content/browser/renderer_host/input/touchpad_tap_suppression_controlle
r.h" |
| 23 #include "content/common/input/input_event_dispatch_type.h" | 24 #include "content/common/input/input_event_dispatch_type.h" |
| 24 #include "content/common/input/input_event_stream_validator.h" | 25 #include "content/common/input/input_event_stream_validator.h" |
| 25 #include "content/public/browser/native_web_keyboard_event.h" | 26 #include "content/public/browser/native_web_keyboard_event.h" |
| 26 | 27 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 bool OfferToRenderer(const blink::WebInputEvent& input_event, | 142 bool OfferToRenderer(const blink::WebInputEvent& input_event, |
| 142 const ui::LatencyInfo& latency_info, | 143 const ui::LatencyInfo& latency_info, |
| 143 InputEventDispatchType dispatch_type); | 144 InputEventDispatchType dispatch_type); |
| 144 | 145 |
| 145 // IPC message handlers | 146 // IPC message handlers |
| 146 void OnInputEventAck(const InputEventAck& ack); | 147 void OnInputEventAck(const InputEventAck& ack); |
| 147 void OnDidOverscroll(const ui::DidOverscrollParams& params); | 148 void OnDidOverscroll(const ui::DidOverscrollParams& params); |
| 148 void OnMsgMoveCaretAck(); | 149 void OnMsgMoveCaretAck(); |
| 149 void OnSelectMessageAck(); | 150 void OnSelectMessageAck(); |
| 150 void OnHasTouchEventHandlers(bool has_handlers); | 151 void OnHasTouchEventHandlers(bool has_handlers); |
| 151 void OnSetTouchAction(TouchAction touch_action); | 152 void OnSetTouchAction(cc::TouchAction touch_action); |
| 152 void OnDidStopFlinging(); | 153 void OnDidStopFlinging(); |
| 153 | 154 |
| 154 // Indicates the source of an ack provided to |ProcessInputEventAck()|. | 155 // Indicates the source of an ack provided to |ProcessInputEventAck()|. |
| 155 // The source is tracked by |current_ack_source_|, which aids in ack routing. | 156 // The source is tracked by |current_ack_source_|, which aids in ack routing. |
| 156 enum AckSource { | 157 enum AckSource { |
| 157 RENDERER, | 158 RENDERER, |
| 158 CLIENT, | 159 CLIENT, |
| 159 IGNORING_DISPOSITION, | 160 IGNORING_DISPOSITION, |
| 160 ACK_SOURCE_NONE | 161 ACK_SOURCE_NONE |
| 161 }; | 162 }; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 268 |
| 268 // Last touch position relative to screen. Used to compute movementX/Y. | 269 // Last touch position relative to screen. Used to compute movementX/Y. |
| 269 std::map<int, gfx::Point> global_touch_position_; | 270 std::map<int, gfx::Point> global_touch_position_; |
| 270 | 271 |
| 271 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); | 272 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); |
| 272 }; | 273 }; |
| 273 | 274 |
| 274 } // namespace content | 275 } // namespace content |
| 275 | 276 |
| 276 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ | 277 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ |
| OLD | NEW |