[Webkit-unassigned] [Bug 16401] [GTK] GObject/C DOM binding

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 15 03:40:51 PST 2008


https://bugs.webkit.org/show_bug.cgi?id=16401





------- Comment #116 from lkcl at lkcl.net  2008-12-15 03:40 PDT -------
Created an attachment (id=26025)
 --> (https://bugs.webkit.org/attachment.cgi?id=26025&action=view)
add gdom_event_target_node_dispatch_event()

this function is necessary in order to be able to simulate events, like this:

doc = webkit_web_frame_get_dom_window(frame);
mouseevent = dom_document_create_event(doc, "MouseEvent");
gdom_mouse_event_init_mouse_event (mouseevent, gchar * type,
gboolean can_bubble, gboolean cancelable, GdomDOMWindow * view, glong
detail, glong screen_x, glong screen_y, glong client_x, glong
client_y, gboolean ctrl_key, gboolean alt_key, gboolean shift_key,
gboolean meta_key, gushort button, GdomEventTargetNode *
related_target);

and finally:

gdom_event_target_node_dispatch_event(doc, mouseevent)

to actually send off the event as if a real mouse event had occurred.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list