[Webkit-unassigned] [Bug 69410] [WK2] [GTK] Implement KeyDown function for WebKit2 EventSender.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Oct 21 09:36:39 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=69410
Martin Robinson <mrobinson at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #111951|review? |review-
Flag| |
--- Comment #12 from Martin Robinson <mrobinson at webkit.org> 2011-10-21 09:36:39 PST ---
(From update of attachment 111951)
View in context: https://bugs.webkit.org/attachment.cgi?id=111951&action=review
Looks good, but I have a couple questions below.
> Tools/WebKitTestRunner/gtk/EventSenderProxyGtk.cpp:63
> +bool dispatchEvent(GdkEvent* event)
> +{
> + gtk_main_do_event(event);
> + gdk_event_free(event);
> + return 0;
> +}
This function should be static. Why does it return a bool, while you unconditionally return 0?
> Tools/WebKitTestRunner/gtk/EventSenderProxyGtk.cpp:193
> + GdkKeymapKey* keys;
> + gint nKeys;
> + if (gdk_keymap_get_entries_for_keyval(gdk_keymap_get_default(), gdkKeySym, &keys, &nKeys)) {
> + pressEvent->key.hardware_keycode = keys[0].keycode;
> + g_free(keys);
> + }
Can you use GOwnPtr and .outPtr() for keys?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list