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

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

Issue 183013010: Don't send touchcancel on touch scroll start (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update test 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 | Annotate | Revision Log
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // Send a touchcancel on scroll start and no further touch events for the 43 // Send a touchcancel on scroll start and no further touch events for the
44 // duration of the scroll. Chrome Android's traditional behavior. 44 // duration of the scroll. Chrome Android's traditional behavior.
45 TOUCH_SCROLLING_MODE_TOUCHCANCEL, 45 TOUCH_SCROLLING_MODE_TOUCHCANCEL,
46 // Send touchmove events throughout a scroll, blocking on each ACK and 46 // Send touchmove events throughout a scroll, blocking on each ACK and
47 // using the disposition to determine whether a scroll update should be 47 // using the disposition to determine whether a scroll update should be
48 // sent. Mobile Safari's default overflow scroll behavior. 48 // sent. Mobile Safari's default overflow scroll behavior.
49 TOUCH_SCROLLING_MODE_SYNC_TOUCHMOVE, 49 TOUCH_SCROLLING_MODE_SYNC_TOUCHMOVE,
50 // Like sync, except that consumed scroll events cause subsequent touchmove 50 // Like sync, except that consumed scroll events cause subsequent touchmove
51 // events to be suppressed. Unconsumed scroll events return touchmove 51 // events to be suppressed. Unconsumed scroll events return touchmove
52 // events to being dispatched synchronously (so scrolling may be hijacked 52 // events to being dispatched synchronously (so scrolling may be hijacked
53 // when a scroll limit is reached, and later resumed). 53 // when a scroll limit is reached, and later resumed). http://goo.gl/RShsdN
54 TOUCH_SCROLLING_MODE_ABSORB_TOUCHMOVE, 54 TOUCH_SCROLLING_MODE_ABSORB_TOUCHMOVE,
55 TOUCH_SCROLLING_MODE_DEFAULT = TOUCH_SCROLLING_MODE_TOUCHCANCEL 55 TOUCH_SCROLLING_MODE_DEFAULT = TOUCH_SCROLLING_MODE_ABSORB_TOUCHMOVE
56 }; 56 };
57 57
58 // The |client| must outlive the TouchEventQueue. If 58 // The |client| must outlive the TouchEventQueue. If
59 // |touchmove_suppression_length_dips| <= 0, touch move suppression is 59 // |touchmove_suppression_length_dips| <= 0, touch move suppression is
60 // disabled. 60 // disabled.
61 TouchEventQueue(TouchEventQueueClient* client, 61 TouchEventQueue(TouchEventQueueClient* client,
62 TouchScrollingMode mode, 62 TouchScrollingMode mode,
63 double touchmove_suppression_length_dips); 63 double touchmove_suppression_length_dips);
64 ~TouchEventQueue(); 64 ~TouchEventQueue();
65 65
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // setting for experimentation, but we may evolve it into an app-controlled 197 // setting for experimentation, but we may evolve it into an app-controlled
198 // mode. 198 // mode.
199 const TouchScrollingMode touch_scrolling_mode_; 199 const TouchScrollingMode touch_scrolling_mode_;
200 200
201 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); 201 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue);
202 }; 202 };
203 203
204 } // namespace content 204 } // namespace content
205 205
206 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ 206 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698