Bug 137822

Summary: [GTK] Improve zooming gesture positioning
Product: WebKit Reporter: Carlos Garnacho <carlosg>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: cgarcia, commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 137812    
Bug Blocks:    
Attachments:
Description Flags
Patch to improve zooming gesture look&feel
cgarcia: review+, cgarcia: commit-queue-
Updated patch
none
Updated patch none

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.