Bug 137822 - [GTK] Improve zooming gesture positioning
Summary: [GTK] Improve zooming gesture positioning
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 137812
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-17 09:36 PDT by Carlos Garnacho
Modified: 2014-10-20 03:40 PDT (History)
2 users (show)

See Also:


Attachments
Patch to improve zooming gesture look&feel (8.40 KB, patch)
2014-10-17 09:38 PDT, Carlos Garnacho
cgarcia: review+
cgarcia: commit-queue-
Details | Formatted Diff | Diff
Updated patch (7.82 KB, patch)
2014-10-17 10:02 PDT, Carlos Garnacho
no flags Details | Formatted Diff | Diff
Updated patch (7.89 KB, patch)
2014-10-17 10:08 PDT, Carlos Garnacho
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garnacho 2014-10-17 09:36:29 PDT
I'm attaching a patch, on top of bug #137812 , that fixes the zooming gesture positioning on 2-finger interaction with WebKitGTK+
Comment 1 Carlos Garnacho 2014-10-17 09:38:54 PDT
Created attachment 240016 [details]
Patch to improve zooming gesture look&feel
Comment 2 Carlos Garcia Campos 2014-10-17 09:47:42 PDT
Comment on attachment 240016 [details]
Patch to improve zooming gesture look&feel

View in context: https://bugs.webkit.org/attachment.cgi?id=240016&action=review

This makes the zoom gesture work as expected, thanks!

> Source/WebKit2/UIProcess/WebPageProxy.h:470
> +
> +    void getCenterForZoomGesture(const WebCore::IntPoint& centerInViewCoordinates, WebCore::IntPoint& center);
>  #endif

I would use a separate block since this is for text composition stuff.

> Source/WebKit2/UIProcess/gtk/GestureController.cpp:33
> +#include "WebPageMessages.h"

You shouldn't need this.

> Source/WebKit2/WebProcess/WebPage/WebPage.h:581
> +
> +    void getCenterForZoomGesture(const WebCore::IntPoint& centerInViewCoordinates, WebCore::IntPoint& result);
>  #endif

Same here.

> Source/WebKit2/WebProcess/WebPage/WebPage.messages.in:313
> +
> +    GetCenterForZoomGesture(WebCore::IntPoint centerInViewCoordinates) -> (WebCore::IntPoint center)
>  #endif

Ditto.
Comment 3 Carlos Garcia Campos 2014-10-17 09:52:46 PDT
Comment on attachment 240016 [details]
Patch to improve zooming gesture look&feel

View in context: https://bugs.webkit.org/attachment.cgi?id=240016&action=review

>> Source/WebKit2/UIProcess/WebPageProxy.h:470
>>  #endif
> 
> I would use a separate block since this is for text composition stuff.

The block should probably also include HAVE(GTK_GESTURES) since this is only used when GTK gestures are supported.
Comment 4 Carlos Garnacho 2014-10-17 10:02:58 PDT
Created attachment 240017 [details]
Updated patch

This updated patch applies all suggestions
Comment 5 Carlos Garnacho 2014-10-17 10:08:50 PDT
Created attachment 240019 [details]
Updated patch

Another update version, wrap the implementations in #if/#endif too
Comment 6 WebKit Commit Bot 2014-10-20 03:39:57 PDT
Comment on attachment 240019 [details]
Updated patch

Clearing flags on attachment: 240019

Committed r174882: <http://trac.webkit.org/changeset/174882>
Comment 7 WebKit Commit Bot 2014-10-20 03:40:01 PDT
All reviewed patches have been landed.  Closing bug.