Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Side by Side Diff: content/browser/renderer_host/input/input_router_impl.h

Issue 188833004: [Android] Properly disable the touch ack timeout during a touch sequence (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@input_log_verbose
Patch Set: Timeout tweaks Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // Queue of keyboard events that we need to track. 232 // Queue of keyboard events that we need to track.
233 typedef std::deque<NativeWebKeyboardEvent> KeyQueue; 233 typedef std::deque<NativeWebKeyboardEvent> KeyQueue;
234 234
235 // A queue of keyboard events. We can't trust data from the renderer so we 235 // A queue of keyboard events. We can't trust data from the renderer so we
236 // stuff key events into a queue and pop them out on ACK, feeding our copy 236 // stuff key events into a queue and pop them out on ACK, feeding our copy
237 // back to whatever unhandled handler instead of the returned version. 237 // back to whatever unhandled handler instead of the returned version.
238 KeyQueue key_queue_; 238 KeyQueue key_queue_;
239 239
240 // Whether touch ack timeout handling has been enabled via the command line. 240 // Whether touch ack timeout handling has been enabled via the command line.
241 bool touch_ack_timeout_supported_; 241 bool touch_ack_timeout_supported_;
242 size_t touch_ack_timeout_delay_ms_; 242 base::TimeDelta touch_ack_timeout_delay_;
243 243
244 // Cached flags from |OnViewUpdated()|, defaults to 0. 244 // Cached flags from |OnViewUpdated()|, defaults to 0.
245 int current_view_flags_; 245 int current_view_flags_;
246 246
247 // The source of the ack within the scope of |ProcessInputEventAck()|. 247 // The source of the ack within the scope of |ProcessInputEventAck()|.
248 // Defaults to ACK_SOURCE_NONE. 248 // Defaults to ACK_SOURCE_NONE.
249 AckSource current_ack_source_; 249 AckSource current_ack_source_;
250 250
251 scoped_ptr<TouchEventQueue> touch_event_queue_; 251 scoped_ptr<TouchEventQueue> touch_event_queue_;
252 scoped_ptr<GestureEventQueue> gesture_event_queue_; 252 scoped_ptr<GestureEventQueue> gesture_event_queue_;
253 TouchActionFilter touch_action_filter_; 253 TouchActionFilter touch_action_filter_;
254 InputEventStreamValidator event_stream_validator_; 254 InputEventStreamValidator event_stream_validator_;
255 255
256 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); 256 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl);
257 }; 257 };
258 258
259 } // namespace content 259 } // namespace content
260 260
261 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ 261 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698