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

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

Issue 132083006: Delegate touch handler registration logic to the TouchEventQueue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment cleanup Created 6 years, 11 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
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