Bug 99763 - [chromium] Storing the enclosing rect dimensions of the first finger for a two finger tap
Summary: [chromium] Storing the enclosing rect dimensions of the first finger for a tw...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Terry Anderson
URL:
Keywords:
Depends on:
Blocks: 99947
  Show dependency treegraph
 
Reported: 2012-10-18 15:16 PDT by Terry Anderson
Modified: 2012-10-21 19:02 PDT (History)
10 users (show)

See Also:


Attachments
Patch (1.92 KB, patch)
2012-10-18 15:26 PDT, Terry Anderson
no flags Details | Formatted Diff | Diff
Indent style fixed (3.19 KB, patch)
2012-10-21 15:59 PDT, Terry Anderson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Terry Anderson 2012-10-18 15:16:36 PDT
Add a struct |twoFingerTap| inside the union |data| of a WebGestureEvent. The fields |firstFingerWidth| and |firstFingerHeight| will represent the dimensions of the enclosing rectangle corresponding to the first touch point in the gesture. These will be used in a future CL to perform target fuzzing on a two-finger tap gesture.

Note: I chose not to name the two fields |width| and |height| so that they aren't confused with the width and height of the gesture's bounding box, which contains the enclosing rectangles of both touch points. My future fuzzing CL will only be concerned with the location and enclosing rectangle of the first touch point.
Comment 1 Terry Anderson 2012-10-18 15:26:01 PDT
Created attachment 169488 [details]
Patch
Comment 2 WebKit Review Bot 2012-10-18 15:29:02 PDT
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Comment 3 WebKit Review Bot 2012-10-18 15:29:20 PDT
Attachment 169488 [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/public/WebInputEvent.h:401:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Source/WebKit/chromium/public/WebInputEvent.h:403:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 2 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Adam Barth 2012-10-18 15:56:44 PDT
Comment on attachment 169488 [details]
Patch

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

>> Source/WebKit/chromium/public/WebInputEvent.h:401
>> +      } twoFingerTap;
> 
> Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]

Would you be willing to fix the style in this file?  I realize that you're just mimicing an existing error, but we should fix it.
Comment 5 Terry Anderson 2012-10-21 15:59:47 PDT
Created attachment 169814 [details]
Indent style fixed
Comment 6 WebKit Review Bot 2012-10-21 19:02:19 PDT
Comment on attachment 169814 [details]
Indent style fixed

Clearing flags on attachment: 169814

Committed r132021: <http://trac.webkit.org/changeset/132021>
Comment 7 WebKit Review Bot 2012-10-21 19:02:24 PDT
All reviewed patches have been landed.  Closing bug.