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

Issue 140253005: Add touch scrolling modes experimental flags (DEPRECATED) (Closed)

Created:
6 years, 11 months ago by Rick Byers
Modified:
6 years, 10 months ago
Reviewers:
jdduke (slow), tdresser
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Add touch scrolling modes experimental flags Superceded by https://codereview.chromium.org/166923002/. In particular, adds --touch-scrolling-mode=absorb-touchmove TODO: work in progress Appears to work properly on Android, but I've only run some basic tests and done some manual testing. I haven't tested Aura recently so it may be broken (and tests probably need to be updated for it). BUG=328503

Patch Set 1 #

Patch Set 2 : Add absorb-touchmove mode, remove async-touchmove #

Patch Set 3 : Update for eager GR #

Total comments: 4

Patch Set 4 : Correct semantics to deal with ending events #

Total comments: 8

Patch Set 5 : Address my own nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+387 lines, -36 lines) Patch
M content/browser/renderer_host/input/gesture_event_packet.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/gesture_event_packet.cc View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/gesture_event_queue.h View 1 2 3 2 chunks +14 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/gesture_event_queue.cc View 1 2 3 4 6 chunks +52 lines, -10 lines 0 comments Download
M content/browser/renderer_host/input/gesture_event_queue_unittest.cc View 1 2 3 4 7 chunks +209 lines, -14 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl.cc View 1 2 3 3 chunks +16 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.h View 1 2 3 4 chunks +35 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.cc View 1 2 3 5 chunks +31 lines, -2 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M ui/events/gestures/gesture_sequence.cc View 1 2 3 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
jdduke (slow)
I don't have any serious problems with this addition. I'd love to get a more ...
6 years, 10 months ago (2014-01-31 20:01:16 UTC) #1
Rick Byers
Thanks Jared. I realized I wasn't properly handling GestureScrollEnd/GesturePinchEnd (we can't throw them away when ...
6 years, 10 months ago (2014-02-01 23:09:33 UTC) #2
tdresser
I'm leaning towards re-implementing as a more explicit table. I think long term that will ...
6 years, 10 months ago (2014-02-03 15:52:57 UTC) #3
tdresser
https://codereview.chromium.org/140253005/diff/120001/content/browser/renderer_host/input/gesture_event_packet.cc File content/browser/renderer_host/input/gesture_event_packet.cc (right): https://codereview.chromium.org/140253005/diff/120001/content/browser/renderer_host/input/gesture_event_packet.cc#newcode40 content/browser/renderer_host/input/gesture_event_packet.cc:40: is_independent_(true) {} On 2014/02/03 15:52:58, tdresser wrote: > It ...
6 years, 10 months ago (2014-02-03 18:55:14 UTC) #4
tdresser
6 years, 10 months ago (2014-02-10 18:35:02 UTC) #5
On 2014/02/03 18:55:14, tdresser wrote:
>
https://codereview.chromium.org/140253005/diff/120001/content/browser/rendere...
> File content/browser/renderer_host/input/gesture_event_packet.cc (right):
> 
>
https://codereview.chromium.org/140253005/diff/120001/content/browser/rendere...
> content/browser/renderer_host/input/gesture_event_packet.cc:40:
> is_independent_(true) {}
> On 2014/02/03 15:52:58, tdresser wrote:
> > It feels odd to me that we default this to true, and then switch it to false
> if
> > necessary. It would feel more natural to default to false and switch to true
> if
> > necessary.
> 
> Nevermind, this makes sense.
> 
>
https://codereview.chromium.org/140253005/diff/120001/content/browser/rendere...
> File content/browser/renderer_host/input/gesture_event_queue.cc (right):
> 
>
https://codereview.chromium.org/140253005/diff/120001/content/browser/rendere...
> content/browser/renderer_host/input/gesture_event_queue.cc:115: bool send =
> false;
> On 2014/02/03 15:52:58, tdresser wrote:
> > Need {} in this conditional.
> 
> Done.
> 
>
https://codereview.chromium.org/140253005/diff/120001/content/browser/rendere...
> File content/browser/renderer_host/input/gesture_event_queue_unittest.cc
> (right):
> 
>
https://codereview.chromium.org/140253005/diff/120001/content/browser/rendere...
> content/browser/renderer_host/input/gesture_event_queue_unittest.cc:210: // An
> consumed touch's gesture should be sent.
> On 2014/02/03 15:52:58, tdresser wrote:
> > I'm not clear on the purpose of this comment modification.
> > Aren't we still testing that consumed a consumed touch's gesture should not
be
> > sent?
> > 
> > Also, "An" -> "A". 
> 
> Done.
> 
>
https://codereview.chromium.org/140253005/diff/120001/content/browser/rendere...
> content/browser/renderer_host/input/gesture_event_queue_unittest.cc:294: //
End
> events dispatched when their start events were independent
> On 2014/02/03 15:52:58, tdresser wrote:
> > "when their start events were" -> "when their start events were,"
> 
> Done.

I've rewritten using the table approach here
(https://codereview.chromium.org/156783006).
There are a few issues with the current table which I've commented on in the
doc.

I'll add some unit tests, and get Aura behaving reasonably.

Powered by Google App Engine
This is Rietveld 408576698