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

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

Issue 228973003: Don't treat first touch move differently from future touch moves (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add extra return. Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/input/touch_event_queue.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_TOUCH_EVENT_QUEUE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 10
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 bool send_touch_events_async_; 238 bool send_touch_events_async_;
239 bool needs_async_touchmove_for_outer_slop_region_; 239 bool needs_async_touchmove_for_outer_slop_region_;
240 scoped_ptr<TouchEventWithLatencyInfo> pending_async_touchmove_; 240 scoped_ptr<TouchEventWithLatencyInfo> pending_async_touchmove_;
241 double last_sent_touch_timestamp_sec_; 241 double last_sent_touch_timestamp_sec_;
242 242
243 // How touch events are handled during scrolling. For now this is a global 243 // How touch events are handled during scrolling. For now this is a global
244 // setting for experimentation, but we may evolve it into an app-controlled 244 // setting for experimentation, but we may evolve it into an app-controlled
245 // mode. 245 // mode.
246 const TouchScrollingMode touch_scrolling_mode_; 246 const TouchScrollingMode touch_scrolling_mode_;
247 247
248 // Whether or not a GestureScrollUpdate has been observed this touch
249 // sequence. When the first scroll update of the touch sequence is observed,
250 // we begin absorbing touch moves.
251 bool seen_scroll_update_this_sequence_;
252
248 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); 253 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue);
249 }; 254 };
250 255
251 } // namespace content 256 } // namespace content
252 257
253 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ 258 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/input/touch_event_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698