Callback type for context menu open/close events.