Changeset 80243 in webkit


Ignore:
Timestamp:
Mar 3, 2011 8:42:49 AM (13 years ago)
Author:
Carlos Garcia Campos
Message:

2011-03-03 Carlos Garcia Campos <cgarcia@igalia.com>

Reviewed by Martin Robinson.

[GTK] DRT needs implementation of EventSender.scheduleAsynchronousClick
https://bugs.webkit.org/show_bug.cgi?id=53960

  • platform/gtk/Skipped: Unskip fast/events/popup-blocking-click-in-iframe.html that passes now.

2011-03-03 Carlos Garcia Campos <cgarcia@igalia.com>

Reviewed by Martin Robinson.

[GTK] DRT needs implementation of EventSender.scheduleAsynchronousClick
https://bugs.webkit.org/show_bug.cgi?id=53960

  • DumpRenderTree/gtk/EventSender.cpp: (sendClick): (scheduleAsynchronousClickCallback):
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r80241 r80243  
     12011-03-03  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        Reviewed by Martin Robinson.
     4
     5        [GTK] DRT needs implementation of EventSender.scheduleAsynchronousClick
     6        https://bugs.webkit.org/show_bug.cgi?id=53960
     7
     8        * platform/gtk/Skipped: Unskip
     9        fast/events/popup-blocking-click-in-iframe.html that passes now.
     10
    1112011-03-03  Martin Robinson  <mrobinson@igalia.com>
    212
  • trunk/LayoutTests/platform/gtk/Skipped

    r80241 r80243  
    398398# Missing output when page icon changes. We need some API exposing this event.
    399399fast/dom/icon-url-property.html
    400 
    401 # EventSender.scheduleAsynchronousClick unimplemented
    402 # https://bugs.webkit.org/show_bug.cgi?id=53960
    403 fast/events/popup-blocking-click-in-iframe.html
    404400
    405401# Looks like a bug in the LayoutTestController global history support due to missing API.
  • trunk/Tools/ChangeLog

    r80240 r80243  
     12011-03-03  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        Reviewed by Martin Robinson.
     4
     5        [GTK] DRT needs implementation of EventSender.scheduleAsynchronousClick
     6        https://bugs.webkit.org/show_bug.cgi?id=53960
     7
     8        * DumpRenderTree/gtk/EventSender.cpp:
     9        (sendClick):
     10        (scheduleAsynchronousClickCallback):
     11
    1122011-03-03  Adam Roben  <aroben@apple.com>
    213
  • trunk/Tools/DumpRenderTree/gtk/EventSender.cpp

    r79049 r80243  
    228228    sendOrQueueEvent(releaseEvent);
    229229    return valueRef;
     230}
     231
     232static gboolean sendClick(gpointer)
     233{
     234    GdkEvent* pressEvent = gdk_event_new(GDK_BUTTON_PRESS);
     235
     236    if (!prepareMouseButtonEvent(pressEvent, 1, 0)) {
     237        gdk_event_free(pressEvent);
     238        return FALSE;
     239    }
     240
     241    GdkEvent* releaseEvent = gdk_event_copy(pressEvent);
     242    dispatchEvent(pressEvent);
     243    releaseEvent->type = GDK_BUTTON_RELEASE;
     244    dispatchEvent(releaseEvent);
     245
     246    return FALSE;
     247}
     248
     249static JSValueRef scheduleAsynchronousClickCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
     250{
     251    g_idle_add(sendClick, 0);
     252    return JSValueMakeUndefined(context);
    230253}
    231254
     
    779802    { "zoomPageIn", zoomPageInCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
    780803    { "zoomPageOut", zoomPageOutCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
     804    { "scheduleAsynchronousClick", scheduleAsynchronousClickCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
    781805    { 0, 0, 0 }
    782806};
Note: See TracChangeset for help on using the changeset viewer.