+2012-03-16 Robert Kroeger <rjkroege@chromium.org>
+
+ [chromium] DRT: Add support for sending gesture scrolls without a begin
+ https://bugs.webkit.org/show_bug.cgi?id=81292
+
+ Reviewed by Kent Tamura.
+
+ * DumpRenderTree/chromium/EventSender.cpp:
+ (EventSender::EventSender):
+ (EventSender::gestureScrollFirstPoint):
+ * DumpRenderTree/chromium/EventSender.h:
+ (EventSender):
+
2012-03-02 Carlos Garcia Campos <cgarcia@igalia.com> and Sergio Villar Senin <svillar@igalia.com>
[GTK] WebKitIconDatabase doesn't keep icons cached
bindMethod("updateTouchPoint", &EventSender::updateTouchPoint);
bindMethod("gestureScrollBegin", &EventSender::gestureScrollBegin);
bindMethod("gestureScrollEnd", &EventSender::gestureScrollEnd);
+ bindMethod("gestureScrollFirstPoint", &EventSender::gestureScrollFirstPoint);
bindMethod("gestureScrollUpdate", &EventSender::gestureScrollUpdate);
bindMethod("gestureTap", &EventSender::gestureTap);
bindMethod("zoomPageIn", &EventSender::zoomPageIn);
gestureEvent(WebInputEvent::GestureTap, arguments);
}
+void EventSender::gestureScrollFirstPoint(const CppArgumentList& arguments, CppVariant* result)
+{
+ result->setNull();
+ if (arguments.size() < 2 || !arguments[0].isNumber() || !arguments[1].isNumber())
+ return;
+
+ WebPoint point(arguments[0].toInt32(), arguments[1].toInt32());
+ m_currentGestureLocation = point;
+}
+
void EventSender::gestureEvent(WebInputEvent::Type type, const CppArgumentList& arguments)
{
if (arguments.size() < 2 || !arguments[0].isNumber() || !arguments[1].isNumber())
void gestureScrollBegin(const CppArgumentList&, CppVariant*);
void gestureScrollEnd(const CppArgumentList&, CppVariant*);
+ void gestureScrollFirstPoint(const CppArgumentList&, CppVariant*);
void gestureScrollUpdate(const CppArgumentList&, CppVariant*);
void gestureTap(const CppArgumentList&, CppVariant*);
void gestureEvent(WebKit::WebInputEvent::Type, const CppArgumentList&);