[webkit-dev] Question about PopupMenuClient

Kenneth Christiansen kenneth.christiansen at openbossa.org
Thu Jan 7 14:44:46 PST 2010

Hi there,

A co-worker of mine is implementing the ability to reimplement how popup
menus (comboboxes) etc will appear from our Qt WebKit API.

As these UI delegates are per page, we thought about adding a method to our
ChromeClientQt like AbstractPopupMenu* createPopupMenu(PopupMenuClient*
client), but currently PopupMenuClient has no access to the page so that we
can get hold of that.

I guess that it is not safe to assume that PopupMenuClient::hostWindow() is
always a Chrome, so would it be acceptable substituting the
PopupMenuClient::hostWindow()  with a PopupMenuClient::page() [1]  method
and then change the uses to page->chrome() ?


[1] easily implemented as return document()->page() instead of return

Kenneth Rohde Christiansen
Technical Lead / Senior Software Engineer
Qt Labs Americas, Nokia Technology Institute, INdT
Phone  +55 81 8895 6002 / E-mail kenneth.christiansen at openbossa.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100107/2901d37c/attachment.html>

More information about the webkit-dev mailing list