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

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

Issue 273933002: Allow exclusive touchmove slop regions in the TouchEventQueue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 6 years, 7 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 TOUCH_SCROLLING_MODE_DEFAULT = TOUCH_SCROLLING_MODE_ASYNC_TOUCHMOVE 55 TOUCH_SCROLLING_MODE_DEFAULT = TOUCH_SCROLLING_MODE_ASYNC_TOUCHMOVE
56 }; 56 };
57 57
58 struct CONTENT_EXPORT Config { 58 struct CONTENT_EXPORT Config {
59 Config(); 59 Config();
60 60
61 // Determines the bounds of the (square) touchmove slop suppression region. 61 // Determines the bounds of the (square) touchmove slop suppression region.
62 // Defaults to 0 (disabled). 62 // Defaults to 0 (disabled).
63 double touchmove_slop_suppression_length_dips; 63 double touchmove_slop_suppression_length_dips;
64 64
65 // Whether the touchmove slop suppression region is boundary inclusive.
66 // Defaults to true.
67 // TODO(jdduke): Remove when unified GR enabled, crbug.com/332418.
68 bool touchmove_slop_suppression_region_includes_boundary;
69
65 // Determines the type of touch scrolling. 70 // Determines the type of touch scrolling.
66 // Defaults to TouchEventQueue:::TOUCH_SCROLLING_MODE_DEFAULT. 71 // Defaults to TouchEventQueue:::TOUCH_SCROLLING_MODE_DEFAULT.
67 TouchEventQueue::TouchScrollingMode touch_scrolling_mode; 72 TouchEventQueue::TouchScrollingMode touch_scrolling_mode;
68 73
69 // Controls whether touch ack timeouts will trigger touch cancellation. 74 // Controls whether touch ack timeouts will trigger touch cancellation.
70 // Defaults to 200ms. 75 // Defaults to 200ms.
71 base::TimeDelta touch_ack_timeout_delay; 76 base::TimeDelta touch_ack_timeout_delay;
72 77
73 // Whether the platform supports touch ack timeout behavior. 78 // Whether the platform supports touch ack timeout behavior.
74 // Defaults to false (disabled). 79 // Defaults to false (disabled).
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // 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
240 // mode. 245 // mode.
241 const TouchScrollingMode touch_scrolling_mode_; 246 const TouchScrollingMode touch_scrolling_mode_;
242 247
243 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); 248 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue);
244 }; 249 };
245 250
246 } // namespace content 251 } // namespace content
247 252
248 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ 253 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/input/input_router_impl.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