Bug 100884 - [chromium] Use embedder-supported gesture curves
Summary: [chromium] Use embedder-supported gesture curves
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Robert Kroeger
URL:
Keywords:
Depends on: 100675
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-31 13:28 PDT by Robert Kroeger
Modified: 2012-11-20 15:28 PST (History)
4 users (show)

See Also:


Attachments
Patch (12.05 KB, patch)
2012-10-31 13:45 PDT, Robert Kroeger
no flags Details | Formatted Diff | Diff
Patch (13.25 KB, patch)
2012-11-15 14:41 PST, Robert Kroeger
no flags Details | Formatted Diff | Diff
Patch (13.25 KB, patch)
2012-11-15 15:27 PST, Robert Kroeger
no flags Details | Formatted Diff | Diff
Patch (13.54 KB, patch)
2012-11-20 14:33 PST, Robert Kroeger
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Kroeger 2012-10-31 13:28:35 PDT
Modify portions of Chromium WebKit to use the embedder-provided gesture curves.
Comment 1 Robert Kroeger 2012-10-31 13:45:33 PDT
Created attachment 171713 [details]
Patch
Comment 2 Robert Kroeger 2012-11-15 14:41:03 PST
Created attachment 174520 [details]
Patch
Comment 3 Adam Barth 2012-11-15 14:48:03 PST
Comment on attachment 174520 [details]
Patch

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

> Source/WebKit/chromium/src/WebCompositorInputHandlerImpl.cpp:209
> +        m_wheelFlingCurve = WTF::adoptPtr(Platform::current()->createFlingAnimationCurve(gestureEvent.data.flingStart.sourceDevice, WebFloatPoint(gestureEvent.data.flingStart.velocityX, gestureEvent.data.flingStart.velocityY), WebSize()));

WTF::   <--- no need for the WTF prefix.
Comment 4 WebKit Review Bot 2012-11-15 14:51:12 PST
Attachment 174520 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit/chromium/ChangeLog', u'Sourc..." exit_code: 1
Source/WebKit/chromium/src/WebViewImpl.h:123:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 1 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Robert Kroeger 2012-11-15 15:27:05 PST
Created attachment 174533 [details]
Patch
Comment 6 Robert Kroeger 2012-11-15 15:30:58 PST
Is the style-bot being silly? I've written the change preserves the spacing that was there. Or should I relayout the code?

And abarth: your suggestion made in p3.
Comment 7 WebKit Review Bot 2012-11-15 15:33:02 PST
Attachment 174533 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit/chromium/ChangeLog', u'Sourc..." exit_code: 1
Source/WebKit/chromium/src/WebViewImpl.h:123:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 1 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 8 James Robinson 2012-11-15 16:30:46 PST
Comment on attachment 174533 [details]
Patch

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

R=me

> Source/WebKit/chromium/src/WebViewImpl.cpp:698
>          // FIXME: Make the curve parametrizable from the browser.
> -        OwnPtr<PlatformGestureCurve> flingCurve = PlatformGestureCurveFactory::get()->createCurve(event.data.flingStart.sourceDevice, FloatPoint(event.data.flingStart.velocityX, event.data.flingStart.velocityY));
> -        m_gestureAnimation = ActivePlatformGestureAnimation::create(flingCurve.release(), this);
> +        OwnPtr<WebGestureCurve> flingCurve = adoptPtr(Platform::current()->createFlingAnimationCurve(event.data.flingStart.sourceDevice, WebFloatPoint(event.data.flingStart.velocityX, event.data.flingStart.velocityY), WebSize()));

I think you can remove the FIXME here now, right?

>> Source/WebKit/chromium/src/WebViewImpl.h:123
>> +                  , public WebGestureCurveTarget
> 
> Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]

I think it's being a bit silly here, although this method of listing base classes is a bit unorthodox.
Comment 9 Robert Kroeger 2012-11-20 14:33:06 PST
Created attachment 175281 [details]
Patch
Comment 10 WebKit Review Bot 2012-11-20 15:28:20 PST
Comment on attachment 175281 [details]
Patch

Clearing flags on attachment: 175281

Committed r135318: <http://trac.webkit.org/changeset/135318>
Comment 11 WebKit Review Bot 2012-11-20 15:28:24 PST
All reviewed patches have been landed.  Closing bug.