WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
137735
[GTK] Move touch events handling from Platform to WebKit2
https://bugs.webkit.org/show_bug.cgi?id=137735
Summary
[GTK] Move touch events handling from Platform to WebKit2
Carlos Garcia Campos
Reported
2014-10-15 01:10:20 PDT
GtkTouchContextHelper is only used by WebKitWebViewBase, since it's the only one that can create touch events. The code can be simplified if the events are processed in the view, and the native touch events are created with the native event and touch points.
Attachments
Patch
(18.92 KB, patch)
2014-10-15 01:16 PDT
,
Carlos Garcia Campos
svillar
: review+
svillar
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2014-10-15 01:16:56 PDT
Created
attachment 239857
[details]
Patch
WebKit Commit Bot
Comment 2
2014-10-15 01:18:34 PDT
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
Sergio Villar Senin
Comment 3
2014-10-17 02:21:26 PDT
Comment on
attachment 239857
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=239857&action=review
Another file nuked yay! Everything seems to be right, it's a r+ for me, but consider my suggestions before landing.
> Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp:806 > +static void webkitWebViewBaseGetTouchPointForEvent(WebKitWebViewBase* webViewBase, GdkEvent* event, Vector<WebPlatformTouchPoint>& touchPoints)
Nit: GetTouchPoints
> Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp:811 > + for (auto it = priv->touchEvents.begin(); it != priv->touchEvents.end(); ++it) {
You can use a modern for loop here. for (auto& touchEvent : priv->touchEvents)
> Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp:828 > + }
I am not sure a lambda is appropriate here, for me it seems far more confusing than calling a function.
Carlos Garcia Campos
Comment 4
2014-10-17 03:04:43 PDT
Committed
r174817
: <
http://trac.webkit.org/changeset/174817
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug