| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 base::TimeTicks input_event_start_time_; | 223 base::TimeTicks input_event_start_time_; |
| 224 | 224 |
| 225 // Queue of keyboard events that we need to track. | 225 // Queue of keyboard events that we need to track. |
| 226 typedef std::deque<NativeWebKeyboardEvent> KeyQueue; | 226 typedef std::deque<NativeWebKeyboardEvent> KeyQueue; |
| 227 | 227 |
| 228 // A queue of keyboard events. We can't trust data from the renderer so we | 228 // A queue of keyboard events. We can't trust data from the renderer so we |
| 229 // stuff key events into a queue and pop them out on ACK, feeding our copy | 229 // stuff key events into a queue and pop them out on ACK, feeding our copy |
| 230 // back to whatever unhandled handler instead of the returned version. | 230 // back to whatever unhandled handler instead of the returned version. |
| 231 KeyQueue key_queue_; | 231 KeyQueue key_queue_; |
| 232 | 232 |
| 233 // Keeps track of whether the webpage has any touch event handler. If it does, | |
| 234 // then touch events are sent to the renderer. Otherwise, the touch events are | |
| 235 // not sent to the renderer. | |
| 236 bool has_touch_handler_; | |
| 237 | |
| 238 // Whether touch ack timeout handling has been enabled via the command line. | 233 // Whether touch ack timeout handling has been enabled via the command line. |
| 239 bool touch_ack_timeout_enabled_; | 234 bool touch_ack_timeout_enabled_; |
| 240 size_t touch_ack_timeout_delay_ms_; | 235 size_t touch_ack_timeout_delay_ms_; |
| 241 | 236 |
| 242 // The source of the ack within the scope of |ProcessInputEventAck()|. | 237 // The source of the ack within the scope of |ProcessInputEventAck()|. |
| 243 // Defaults to ACK_SOURCE_NONE. | 238 // Defaults to ACK_SOURCE_NONE. |
| 244 AckSource current_ack_source_; | 239 AckSource current_ack_source_; |
| 245 | 240 |
| 246 scoped_ptr<TouchEventQueue> touch_event_queue_; | 241 scoped_ptr<TouchEventQueue> touch_event_queue_; |
| 247 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 242 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
| 248 TouchActionFilter touch_action_filter_; | 243 TouchActionFilter touch_action_filter_; |
| 249 | 244 |
| 250 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); | 245 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); |
| 251 }; | 246 }; |
| 252 | 247 |
| 253 } // namespace content | 248 } // namespace content |
| 254 | 249 |
| 255 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ | 250 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ |
| OLD | NEW |