Title: [123520] trunk/Source/WebKit/chromium
- Revision
- 123520
- Author
- commit-qu...@webkit.org
- Date
- 2012-07-24 13:32:39 -0700 (Tue, 24 Jul 2012)
Log Message
[chromium] Add a bounding box member in WebGestureEvent
https://bugs.webkit.org/show_bug.cgi?id=92144
Patch by Terry Anderson <tdander...@chromium.org> on 2012-07-24
Reviewed by Adam Barth.
The new |boundingBox| member will be used to store the touch region for a WebGestureEvent.
This will be useful for gesture target fuzzing across multiple different gesture types
(tap, long press, scroll, etc.)
* public/WebInputEvent.h:
(WebGestureEvent):
* src/WebInputEvent.cpp:
(SameSizeAsWebGestureEvent):
Modified Paths
Diff
Modified: trunk/Source/WebKit/chromium/ChangeLog (123519 => 123520)
--- trunk/Source/WebKit/chromium/ChangeLog 2012-07-24 20:29:31 UTC (rev 123519)
+++ trunk/Source/WebKit/chromium/ChangeLog 2012-07-24 20:32:39 UTC (rev 123520)
@@ -1,3 +1,19 @@
+2012-07-24 Terry Anderson <tdander...@chromium.org>
+
+ [chromium] Add a bounding box member in WebGestureEvent
+ https://bugs.webkit.org/show_bug.cgi?id=92144
+
+ Reviewed by Adam Barth.
+
+ The new |boundingBox| member will be used to store the touch region for a WebGestureEvent.
+ This will be useful for gesture target fuzzing across multiple different gesture types
+ (tap, long press, scroll, etc.)
+
+ * public/WebInputEvent.h:
+ (WebGestureEvent):
+ * src/WebInputEvent.cpp:
+ (SameSizeAsWebGestureEvent):
+
2012-07-24 Nico Weber <tha...@chromium.org>
[chromium/mac] Add cursor resource pngs to the pak file.
Modified: trunk/Source/WebKit/chromium/public/WebInputEvent.h (123519 => 123520)
--- trunk/Source/WebKit/chromium/public/WebInputEvent.h 2012-07-24 20:29:31 UTC (rev 123519)
+++ trunk/Source/WebKit/chromium/public/WebInputEvent.h 2012-07-24 20:32:39 UTC (rev 123520)
@@ -33,6 +33,7 @@
#include "WebTouchPoint.h"
#include "platform/WebCommon.h"
+#include "platform/WebRect.h"
#include <string.h>
@@ -372,6 +373,7 @@
// NOTE: |deltaX| and |deltaY| represents the amount to scroll for Scroll gesture events. For Pinch gesture events, |deltaX| represents the scaling/magnification factor. For a GestureTap event, |deltaX| and |deltaY| represent the horizontal and vertical radii of the touch region.
float deltaX;
float deltaY;
+ WebRect boundingBox;
WebGestureEvent(unsigned sizeParam = sizeof(WebGestureEvent))
: WebInputEvent(sizeParam)
Modified: trunk/Source/WebKit/chromium/src/WebInputEvent.cpp (123519 => 123520)
--- trunk/Source/WebKit/chromium/src/WebInputEvent.cpp 2012-07-24 20:29:31 UTC (rev 123519)
+++ trunk/Source/WebKit/chromium/src/WebInputEvent.cpp 2012-07-24 20:32:39 UTC (rev 123520)
@@ -60,7 +60,7 @@
};
struct SameSizeAsWebGestureEvent : public SameSizeAsWebInputEvent {
- int gestureData[6];
+ int gestureData[10];
};
struct SameSizeAsWebTouchEvent : public SameSizeAsWebInputEvent {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes