RESOLVED INVALID 39757
Add TransformActionEvent support
https://bugs.webkit.org/show_bug.cgi?id=39757
Summary Add TransformActionEvent support
Kim Grönholm
Reported 2010-05-26 12:54:49 PDT
The TransformAction events enable direct manipulation of a DOM element. Typically these events are generated as the user does an action or gesture such as "pan", "zoom", or "rotate" requesting transformation of a visual element. As the gestures and actions to transform a visual element vary from device to device, this proposal abstracts them out and provides interface to the actual action the end user is attempting to do. A draft of the proposal can be found from: http://portaali.org/~ilkkao/w3c/manipulate/Transformaction.html
Attachments
Adds TransformActionEvent interfaces (29.66 KB, patch)
2010-05-26 13:53 PDT, Kim Grönholm
no flags
Updated patch (32.74 KB, patch)
2010-05-26 22:36 PDT, Kim Grönholm
no flags
Manual TransformActionEvent test (1.74 KB, text/html)
2010-05-27 05:13 PDT, Kim Grönholm
no flags
Enables generating TransformAction events from touch gestures (28.22 KB, patch)
2010-05-27 05:52 PDT, Kim Grönholm
no flags
TransformActionEvent patch #3 (36.55 KB, patch)
2010-05-27 23:02 PDT, Kim Grönholm
no flags
TransformActionEvent patch #4 (36.49 KB, patch)
2010-05-31 19:47 PDT, Kim Grönholm
no flags
TransformActionEvent patch #5 (36.48 KB, patch)
2010-06-03 01:32 PDT, Kim Grönholm
no flags
TransformActionEvent patch #6 (41.49 KB, patch)
2010-06-16 14:11 PDT, Kim Grönholm
no flags
TransformActionEvent patch #7 (42.40 KB, patch)
2010-06-20 22:47 PDT, Kim Grönholm
no flags
Kim Grönholm
Comment 1 2010-05-26 13:53:39 PDT
Created attachment 57130 [details] Adds TransformActionEvent interfaces Added only the necessary TransformAction event interfaces and not e.g. any eventhandler hooks that generate and dispatch them. I will later add another patch that enables generating these events from multi-touch gestures. This separation is done to make reviewing easier.
WebKit Review Bot
Comment 2 2010-05-26 14:32:30 PDT
WebKit Review Bot
Comment 3 2010-05-26 16:09:23 PDT
Kim Grönholm
Comment 4 2010-05-26 22:36:12 PDT
Created attachment 57194 [details] Updated patch Missed some V8 bindings etc. Added updated patch.
Kim Grönholm
Comment 5 2010-05-27 05:13:27 PDT
Created attachment 57226 [details] Manual TransformActionEvent test Uploading a manual test case for TransformAction events.
Kim Grönholm
Comment 6 2010-05-27 05:52:50 PDT
Created attachment 57229 [details] Enables generating TransformAction events from touch gestures This patch enables transformaction events to be generated from touch gestures by adding gesture handling machinery and eventhandler hooks.
Ben Murdoch
Comment 7 2010-05-27 05:58:31 PDT
Hi Kim, I think that the second patch should be in a separate bug that is blocked by this one to make reviews easier. What do you think? Thanks, Ben
Ben Murdoch
Comment 8 2010-05-27 07:18:49 PDT
Comment on attachment 57194 [details] Updated patch Looks like a good start! I'm not a reviewer but some comments after trying the first patch on Android: WebCore/dom/Document.idl:313 + attribute [DontEnum,Conditional=TRANSFORMACTION_EVENTS,EnabledAtRuntime] EventListener ontransformactionstart; If you want to make this a runtime enabled feature then you also need to add methods to the RuntimeEnabledFeatures class in WebCore/bindings/generic/RuntimeEnabledFeatures.h|cpp - see how touch does it for an example. I think as the feature is protected by a compile time guard it is safe to default the runtime flag to true. And a few whitespace nits that my patch tool complained about: WebCore/dom/TransformActionEvent.cpp:49 + int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, Trailing whitespace WebCore/dom/TransformActionEvent.cpp:51 + int translateSpeedX, int translateSpeedY, float scale, float scaleSpeed, Trailing whitespace WebCore/dom/TransformActionEvent.h:35 + static PassRefPtr<TransformActionEvent> create(const AtomicString& type, Trailing whitespace WebCore/dom/TransformActionEvent.h:36 + bool canBubble, bool cancelable, PassRefPtr<AbstractView> view, Trailing whitespace WebCore/dom/TransformActionEvent.h:43 + view, screenX, screenY, pageX, pageY, ctrlKey, altKey, shiftKey, Trailing whitespace Would you also mind adding the new files to the Android makefiles? TransformActionEvent.cpp should go in WebCore/Android.mk and the idl should go into WebCore/Android.derived.v8bindings.mk and WebCore/Android.derived.jscbindings.mk. Thanks!
Kim Grönholm
Comment 9 2010-05-27 23:02:45 PDT
Created attachment 57294 [details] TransformActionEvent patch #3 Thanks Ben! I made the changes that you requested and added the new files to the Android makefiles. Hopefully you have time to test these more and enable support for the event also in the Android port. At least with QtWebKit on Win7 multi-touch laptop the event and the test page work fine! :)
Kim Grönholm
Comment 10 2010-05-31 19:47:49 PDT
Created attachment 57509 [details] TransformActionEvent patch #4 Changed my e-mail address in the Changelogs to my new Nokia e-mail address. Obsoleted also the touch gestures patch as I'm going to create a separate bug for that.
Simon Hausmann
Comment 11 2010-06-01 00:25:24 PDT
Comment on attachment 57509 [details] TransformActionEvent patch #4 r=me Landing this may require adjusting LayoutTests/platform/chromium/test_expectations.txt This is work in progress and we must make sure in our communication that the interface is going to change in the future.
Ben Murdoch
Comment 12 2010-06-01 11:51:22 PDT
Latest patch LGTM as far as Android goes! I'll try to take a look at the other bug/patch tomorrow. Cheers, Ben
Kim Grönholm
Comment 13 2010-06-03 01:32:41 PDT
Created attachment 57744 [details] TransformActionEvent patch #5 Rebased the patch.
WebKit Review Bot
Comment 14 2010-06-03 02:40:53 PDT
http://trac.webkit.org/changeset/60614 might have broken Qt Linux Release
Simon Hausmann
Comment 15 2010-06-03 03:00:09 PDT
Simon Hausmann
Comment 16 2010-06-03 03:00:48 PDT
Simon Hausmann
Comment 17 2010-06-03 03:23:00 PDT
Csaba Osztrogonác
Comment 19 2010-06-03 09:50:17 PDT
It is a very-very strange bug, because I can't reopen it as other bugs. I can only choose RESOLVED/UNCONFIRMED/VERIED/CLOSED. :o
Kim Grönholm
Comment 20 2010-06-07 06:21:47 PDT
The failing test is due to a separate bug which this patch revealed. The bug is being tracked here: https://bugs.webkit.org/show_bug.cgi?id=40232
Kim Grönholm
Comment 21 2010-06-16 14:11:52 PDT
Created attachment 58935 [details] TransformActionEvent patch #6 Rebased and added the necessary expected results to qt tests.
WebKit Review Bot
Comment 22 2010-06-16 15:05:23 PDT
Kim Grönholm
Comment 23 2010-06-16 22:34:47 PDT
Could you Ben take a look at what is wrong? To me it looks like the patch is effectively identical to the previous ones that didn't break the chromium build. Has something changed somewhere?
Ben Murdoch
Comment 24 2010-06-17 12:03:44 PDT
(In reply to comment #23) > Could you Ben take a look at what is wrong? To me it looks like the patch is effectively identical to the previous ones that didn't break the chromium build. Has something changed somewhere? Hmm, looks to me like the EWS bot didn't regenerate the makefile for the derived bindings to add in the new TransformAction.idl... Eric, Dimitri, what do you think? Is it possible to get the EWS to try again and force it to do a clean build?
Kim Grönholm
Comment 25 2010-06-20 22:47:20 PDT
Created attachment 59229 [details] TransformActionEvent patch #7 Modified the patch so that it changes the expected result of LayoutTests/fast/dom/Window/window-postmessage-clone.html so that it doesn't fail due to a separate bug. See: https://bugs.webkit.org/show_bug.cgi?id=40329
WebKit Review Bot
Comment 26 2010-06-20 23:29:52 PDT
Simon Hausmann
Comment 27 2010-07-30 05:56:51 PDT
Comment on attachment 59229 [details] TransformActionEvent patch #7 Postponing the review until we have more progress on the standardization side.
Simon Hausmann
Comment 28 2010-07-30 05:58:05 PDT
Re-opening as it's not landed.
Eric Seidel (no email)
Comment 29 2010-08-04 10:25:14 PDT
Comment on attachment 57509 [details] TransformActionEvent patch #4 Cleared Simon Hausmann's review+ from obsolete attachment 57509 [details] so that this bug does not appear in http://webkit.org/pending-commit.
Eric Seidel (no email)
Comment 30 2010-08-04 10:25:19 PDT
Comment on attachment 57744 [details] TransformActionEvent patch #5 Cleared Simon Hausmann's review+ from obsolete attachment 57744 [details] so that this bug does not appear in http://webkit.org/pending-commit.
Ademar Reis
Comment 31 2011-01-13 12:05:30 PST
This patch was applied to QtWebKit-2.1 but now it has been reverted. Nobody is requiring this anymore, so we'll wait for it be standardized and get into trunk first.
Simon Hausmann
Comment 32 2012-02-23 01:53:11 PST
This development is not active anymore.
Note You need to log in before you can comment on or make changes to this bug.