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

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

Issue 718153002: Indicate whether a touch event will cause scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // Send touchmove events throughout a scroll, but throttle sending and 52 // Send touchmove events throughout a scroll, but throttle sending and
53 // ignore the ACK as long as scrolling remains possible. Unconsumed scroll 53 // ignore the ACK as long as scrolling remains possible. Unconsumed scroll
54 // events return touchmove events to being dispatched synchronously. 54 // events return touchmove events to being dispatched synchronously.
55 TOUCH_SCROLLING_MODE_ASYNC_TOUCHMOVE, 55 TOUCH_SCROLLING_MODE_ASYNC_TOUCHMOVE,
56 TOUCH_SCROLLING_MODE_DEFAULT = TOUCH_SCROLLING_MODE_ASYNC_TOUCHMOVE 56 TOUCH_SCROLLING_MODE_DEFAULT = TOUCH_SCROLLING_MODE_ASYNC_TOUCHMOVE
57 }; 57 };
58 58
59 struct CONTENT_EXPORT Config { 59 struct CONTENT_EXPORT Config {
60 Config(); 60 Config();
61 61
62 // Determines the bounds of the (square) touchmove slop suppression region.
63 // Defaults to 0 (disabled).
64 double touchmove_slop_suppression_length_dips;
65
66 // Determines the type of touch scrolling. 62 // Determines the type of touch scrolling.
67 // Defaults to TouchEventQueue:::TOUCH_SCROLLING_MODE_DEFAULT. 63 // Defaults to TouchEventQueue:::TOUCH_SCROLLING_MODE_DEFAULT.
68 TouchEventQueue::TouchScrollingMode touch_scrolling_mode; 64 TouchEventQueue::TouchScrollingMode touch_scrolling_mode;
69 65
70 // Controls whether touch ack timeouts will trigger touch cancellation. 66 // Controls whether touch ack timeouts will trigger touch cancellation.
71 // Defaults to 200ms. 67 // Defaults to 200ms.
72 base::TimeDelta touch_ack_timeout_delay; 68 base::TimeDelta touch_ack_timeout_delay;
73 69
74 // Whether the platform supports touch ack timeout behavior. 70 // Whether the platform supports touch ack timeout behavior.
75 // Defaults to false (disabled). 71 // Defaults to false (disabled).
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // setting for experimentation, but we may evolve it into an app-controlled 236 // setting for experimentation, but we may evolve it into an app-controlled
241 // mode. 237 // mode.
242 const TouchScrollingMode touch_scrolling_mode_; 238 const TouchScrollingMode touch_scrolling_mode_;
243 239
244 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); 240 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue);
245 }; 241 };
246 242
247 } // namespace content 243 } // namespace content
248 244
249 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ 245 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/input/touch_emulator.cc ('k') | content/browser/renderer_host/input/touch_event_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698