I originally made QGraphicsWKView::showContextMenu() private because I considered the users could just make their own slot and cut the connection to the existing slot.
However, the implementation of the menu is non trivial due to the possibility of multiple call from the WebProcess. I now think the method should be accessible to implementors so they have an easy way to handle those corner case by calling the original method with their own menu.
(and I added some doc so it is mentioned somewhere the menu can be empty, that cannot hurt :))
Created attachment 83993 [details]
Comment on attachment 83993 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=83993&action=review
Very nice to see documentation for our WebKit2 classes!
> + actions possible for its current position, it is empty if there is no action for the position.
I don't think it should be a comma here. Maybe ; would do, or you could add another sentence instead.
Committed r79832: <http://trac.webkit.org/changeset/79832>