RESOLVED FIXED 194201
[GTK] Allow pinch zoom on touchpad
https://bugs.webkit.org/show_bug.cgi?id=194201
Summary [GTK] Allow pinch zoom on touchpad
Alice Mikhaylenko
Reported 2019-02-03 05:37:03 PST
A follow-up to bug 193919, another touchpad gesture missing in GTK port.
Attachments
Patch (2.71 KB, patch)
2019-02-03 05:43 PST, Alice Mikhaylenko
no flags
Patch (2.59 KB, patch)
2019-02-03 12:36 PST, Alice Mikhaylenko
no flags
Patch (2.63 KB, patch)
2019-02-03 14:07 PST, Alice Mikhaylenko
no flags
Patch (2.62 KB, patch)
2019-02-03 14:20 PST, Alice Mikhaylenko
no flags
Alice Mikhaylenko
Comment 1 2019-02-03 05:43:51 PST
EWS Watchlist
Comment 2 2019-02-03 05:46:27 PST
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Michael Catanzaro
Comment 3 2019-02-03 12:32:47 PST
Comment on attachment 361011 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=361011&action=review Does this depend on the other patch? If not, you can request cq? for commit-queue. > Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp:1202 > + if (event->type == GDK_TOUCHPAD_PINCH) { > + WebKitWebViewBase* webViewBase = WEBKIT_WEB_VIEW_BASE(widget); > + GestureController& controller = webkitWebViewBaseGestureController(webViewBase); > + controller.handleEvent(event); > + } Style: just do it on one line: if (event->type == GDK_TOUCHPAD_PINCH) webkitWebViewBaseGestureController(WEBKIT_WEB_VIEW_BASE(widget)).handleEvent(event); In C it would be too hard to read if we don't use multiple lines, but this is C++. :)
Alice Mikhaylenko
Comment 4 2019-02-03 12:36:49 PST
Alice Mikhaylenko
Comment 5 2019-02-03 12:37:43 PST
> Does this depend on the other patch? No > just do it on one line: Ok
Alice Mikhaylenko
Comment 6 2019-02-03 14:07:35 PST
Alice Mikhaylenko
Comment 7 2019-02-03 14:20:52 PST
Alice Mikhaylenko
Comment 8 2019-02-03 14:21:23 PST
I've added #if HAVE(GTK_GESTURES) checks around the added code.
Michael Catanzaro
Comment 9 2019-02-03 18:31:43 PST
Comment on attachment 361030 [details] Patch Remember to request cq? for commit queue when it's ready to land!
Alice Mikhaylenko
Comment 10 2019-02-04 00:29:28 PST
> Remember to request cq? for commit queue when it's ready to land! Done
WebKit Commit Bot
Comment 11 2019-02-04 07:47:12 PST
Comment on attachment 361030 [details] Patch Clearing flags on attachment: 361030 Committed r240922: <https://trac.webkit.org/changeset/240922>
WebKit Commit Bot
Comment 12 2019-02-04 07:47:14 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.