Title: [123506] trunk/Tools
Revision
123506
Author
commit-qu...@webkit.org
Date
2012-07-24 12:32:52 -0700 (Tue, 24 Jul 2012)

Log Message

[WTR][EFL] Multiple mouse clicks are not emitted in EventSenderProxyEfl
https://bugs.webkit.org/show_bug.cgi?id=92107

Patch by Alexander Shalamov <alexander.shala...@intel.com> on 2012-07-24
Reviewed by Kenneth Rohde Christiansen.

Fixes mouse click events in EventSenderProxyEfl.

* WebKitTestRunner/efl/EventSenderProxyEfl.cpp:
(WTR::dispatchMouseDownEvent):
(WTR::EventSenderProxy::dispatchEvent):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (123505 => 123506)


--- trunk/Tools/ChangeLog	2012-07-24 19:25:30 UTC (rev 123505)
+++ trunk/Tools/ChangeLog	2012-07-24 19:32:52 UTC (rev 123506)
@@ -1,3 +1,16 @@
+2012-07-24  Alexander Shalamov  <alexander.shala...@intel.com>
+
+        [WTR][EFL] Multiple mouse clicks are not emitted in EventSenderProxyEfl
+        https://bugs.webkit.org/show_bug.cgi?id=92107
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        Fixes mouse click events in EventSenderProxyEfl.
+
+        * WebKitTestRunner/efl/EventSenderProxyEfl.cpp:
+        (WTR::dispatchMouseDownEvent):
+        (WTR::EventSenderProxy::dispatchEvent):
+
 2012-07-24  Tommy Widenflycht  <tom...@google.com>
 
         MediaStream API: Update MediaStreamTrack to match the specification

Modified: trunk/Tools/WebKitTestRunner/efl/EventSenderProxyEfl.cpp (123505 => 123506)


--- trunk/Tools/WebKitTestRunner/efl/EventSenderProxyEfl.cpp	2012-07-24 19:25:30 UTC (rev 123505)
+++ trunk/Tools/WebKitTestRunner/efl/EventSenderProxyEfl.cpp	2012-07-24 19:32:52 UTC (rev 123506)
@@ -141,10 +141,16 @@
     }
 }
 
-static void dispatchMouseDownEvent(Evas* evas, unsigned button, WKEventModifiers wkModifiers)
+static void dispatchMouseDownEvent(Evas* evas, unsigned button, WKEventModifiers wkModifiers, int clickCount)
 {
+    Evas_Button_Flags buttonFlags = EVAS_BUTTON_NONE;
+    if (clickCount == 3)
+        buttonFlags = EVAS_BUTTON_TRIPLE_CLICK;
+    else if (clickCount == 2)
+        buttonFlags = EVAS_BUTTON_DOUBLE_CLICK;
+
     setEvasModifiers(evas, wkModifiers);
-    evas_event_feed_mouse_down(evas, button, EVAS_BUTTON_NONE, 0, 0);
+    evas_event_feed_mouse_down(evas, button, buttonFlags, 0, 0);
     setEvasModifiers(evas, 0);
 }
 
@@ -303,7 +309,7 @@
 void EventSenderProxy::dispatchEvent(const WTREvent& event)
 {
     if (event.eventType == WTREventTypeMouseDown)
-        dispatchMouseDownEvent(ecore_evas_get(m_testController->mainWebView()->platformWindow()), event.button, event.modifiers);
+        dispatchMouseDownEvent(ecore_evas_get(m_testController->mainWebView()->platformWindow()), event.button, event.modifiers, m_clickCount);
     else if (event.eventType == WTREventTypeMouseUp)
         dispatchMouseUpEvent(ecore_evas_get(m_testController->mainWebView()->platformWindow()), event.button, event.modifiers);
     else if (event.eventType == WTREventTypeMouseMove)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to