The USE flag CROSS_PLATFORM_CONTEXT_MENU provides a general full cross-platform representations of a menu and menu item. Ports should use it to reduce the amount of redundant code in WebCore/platform.