[webkit-dev] Question about PopupMenuClient

Adam Treat treat at kde.org
Thu Jan 7 14:59:36 PST 2010


On Thursday 07 January 2010 05:44:46 pm Kenneth Christiansen wrote:
> I guess that it is not safe to assume that PopupMenuClient::hostWindow() is
> always a Chrome, so would it be acceptable substituting the

Why do you say this? 

Maybe add a virtual like:

	virtual PlatformPopupMenu platformPopupMenu() const = 0; 

to HostWindow.h ?

Much like Qt already returns QWebPageClient for 'platformPageClient()' ?  
Maybe you can even re-use this QWebPageClient for the popup menu delegation 
too?

Cheers,
Adam



More information about the webkit-dev mailing list