RESOLVED FIXED 204748
[iOS] Introduce a gesture recognizer that can be used to defer recognition of other gestures
https://bugs.webkit.org/show_bug.cgi?id=204748
Summary [iOS] Introduce a gesture recognizer that can be used to defer recognition of...
Wenson Hsieh
Reported 2019-12-02 08:09:56 PST
Work towards webkit.org/b/204664.
Attachments
Patch (21.78 KB, patch)
2019-12-02 08:58 PST, Wenson Hsieh
thorton: review+
Address comments (22.26 KB, patch)
2019-12-02 10:01 PST, Wenson Hsieh
no flags
Address comments (22.71 KB, patch)
2019-12-02 10:10 PST, Wenson Hsieh
no flags
Wenson Hsieh
Comment 1 2019-12-02 08:51:22 PST
Wenson Hsieh
Comment 2 2019-12-02 08:58:19 PST
Tim Horton
Comment 3 2019-12-02 09:35:41 PST
Comment on attachment 384628 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=384628&action=review > Source/WebKit/ChangeLog:25 > + gesture from connecting the entire gesture subgraph under WKWebView through failure depencies. This would result sp depencies > Source/WebKit/UIProcess/ios/WKContentViewInteraction.h:209 > + RetainPtr<WKDeferringGestureRecognizer> _touchEventDeferringGestureRecognizerForImmediatelyResettableGestures; > + RetainPtr<WKDeferringGestureRecognizer> _touchEventDeferringGestureRecognizerForDelayedResettableGestures; Are these "touch-event-deferring" (that's how I read it)? Don't they defer many things /pending/ touch event reply? > Source/WebKit/UIProcess/ios/WKDeferringGestureRecognizer.h:36 > +- (instancetype)initWithView:(WKContentView *)view; In an ideally-generic world this would probably be - (instancetype)initWithView:(UIView *)view delegate:(id <WKDeferringGestureRecognizerDelegate>)delegate; And not know anything about WKContentView. Does that make it any more useful? It does seem like it could be useful outside of WKContentView.
Wenson Hsieh
Comment 4 2019-12-02 09:45:12 PST
Comment on attachment 384628 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=384628&action=review Thanks for taking a look! >> Source/WebKit/ChangeLog:25 >> + gesture from connecting the entire gesture subgraph under WKWebView through failure depencies. This would result > > sp depencies oops! fixed. >> Source/WebKit/UIProcess/ios/WKContentViewInteraction.h:209 >> + RetainPtr<WKDeferringGestureRecognizer> _touchEventDeferringGestureRecognizerForDelayedResettableGestures; > > Are these "touch-event-deferring" (that's how I read it)? Don't they defer many things /pending/ touch event reply? That’s true. Maybe these should just be _deferringGestureRecognizerForImmediatelyResettableGestures and _deferringGestureRecognizerForDelayedResettableGestures (would make the names a little bit less of a mouthful as well). >> Source/WebKit/UIProcess/ios/WKDeferringGestureRecognizer.h:36 >> +- (instancetype)initWithView:(WKContentView *)view; > > In an ideally-generic world this would probably be > > - (instancetype)initWithView:(UIView *)view delegate:(id <WKDeferringGestureRecognizerDelegate>)delegate; > > And not know anything about WKContentView. > > Does that make it any more useful? It does seem like it could be useful outside of WKContentView. While I don’t foresee any use outside of WKContentView, it wouldn’t hurt to architect it this way from the get-go; I’ll change it to be delegate-based instead of directly talking to the content view.
Wenson Hsieh
Comment 5 2019-12-02 10:01:42 PST Comment hidden (obsolete)
Wenson Hsieh
Comment 6 2019-12-02 10:10:30 PST
Created attachment 384637 [details] Address comments
Wenson Hsieh
Comment 7 2019-12-02 11:25:07 PST
The Windows test failure (webanimations/accelerated-animation-removal-upon-transition-completion.html) is not relevant to this change.
WebKit Commit Bot
Comment 8 2019-12-02 12:21:20 PST
Comment on attachment 384637 [details] Address comments Clearing flags on attachment: 384637 Committed r253005: <https://trac.webkit.org/changeset/253005>
Note You need to log in before you can comment on or make changes to this bug.