[Webkit-unassigned] [Bug 18851] New: [GTK] provide GdkEvents to windowless plugins

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 2 12:38:02 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=18851

           Summary: [GTK] provide GdkEvents to windowless plugins
           Product: WebKit
           Version: 526+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Enhancement
          Priority: P2
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: toshok at gmail.com


the way windowless plugins get UI events is through the NPAPI-defined
HandleEvent method:

int16   NP_LOADDS NPP_HandleEvent(NPP instance, void* event);

the event pointer for X systems is an XEvent (at least in firefox).  It would
be nice if instead of an X event, a facility exists to request that the event
be passed as a GdkEvent.  This would allow nicer handler of input devices
(tablets), and would make key event handling nicer as well, since Gdk would
have already done all the compose stuff.

adding support in the api would be reasonably easy.  we'd need a new NPVERS
#define, like:

#define NPVERS_HAS_GDK_EVENTS_IN_WINDOWLESS 20

then we'd need an NPNVariable to query for GdkEvent support:

typedef enum {
 ...
 NPNVSupportsGdkEventsInWindowless = ...
 ...
} NPNVariable;

and lastly an NPPVariable to state that the plugin wants/needs GdkEvents:

typedef enum {
 ...
 NPPVpluginNeedsGdkEventsInWindowless = ...
 ...
} NPPVariable;


An alternative to this Gtk specific change, doing s/Gdk/Toolkit above would
make it perhaps more useful for the Qt port as well.


-- 
Configure bugmail: http://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