Summary: | [Qt] Mac Plugins : Get Input Events to work in QGV | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Girish Ramakrishnan <girish> | ||||||||||||
Component: | Plug-ins | Assignee: | Girish Ramakrishnan <girish> | ||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||
Severity: | Normal | CC: | andersca, aroben, eric, hausmann, kdecker, vestbo, yongjun.zhang, zecke | ||||||||||||
Priority: | P2 | Keywords: | Qt | ||||||||||||
Version: | 528+ (Nightly build) | ||||||||||||||
Hardware: | PC | ||||||||||||||
OS: | OS X 10.5 | ||||||||||||||
Bug Depends on: | 31183 | ||||||||||||||
Bug Blocks: | |||||||||||||||
Attachments: |
|
Description
Girish Ramakrishnan
2009-11-22 21:07:27 PST
Created attachment 43709 [details]
Plugin events (ideal)
This is how plugin events should work ideally.
Created attachment 43710 [details]
Plugin events (reality)
Flash requires the window that we pass to be the active window. So, an extremely ugly patch to please flash.
Created attachment 43836 [details]
Pass mouse position relative to the fake window
Created attachment 43837 [details]
Pass activeWindow() to make Flash process mouse move events
I did not add a plugin quirk (PluginQuirkRequiresActiveWindowForInputEvents) because there is a bug in the Mac port - PluginPackage::determineQuirks is never called. Also, the plugin quirk seems to complicate the code a bit. So, what about leaving it out for now?
Comment on attachment 43837 [details]
Pass activeWindow() to make Flash process mouse move events
r=me, but a quirk would be nice to have in the future.
Created attachment 43911 [details]
Make mouse over work without using active window
Ok, I have figured out a way to make events work without using QApplication::activeWindow().
Comment on attachment 43911 [details]
Make mouse over work without using active window
Clear r?
Comment on attachment 43911 [details]
Make mouse over work without using active window
Just for the record... I r=me'd on irc..
|