WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
18851
[GTK] provide GdkEvents to windowless plugins
https://bugs.webkit.org/show_bug.cgi?id=18851
Summary
[GTK] provide GdkEvents to windowless plugins
Chris Toshok
Reported
2008-05-02 12:38:02 PDT
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Martin Robinson
Comment 1
2010-11-24 08:07:42 PST
No one seems to be interested in this after two years. It'd be hard for platforms like Qt to implement this as well (they'd have to build a fake GdkEvent). Closing for now, unless there's further discussion.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug