Typing in 2 different applications at the same time
As far as I know no, mostly due to the way the OS X window manager is setup you need to have the text area to have focus to receive key input (but not all key events). 

However, this is not to say it's not possible, but I can't think of a way to do it 'live', as in sending the text char by char. If I was looking at doing it basically what I'd be trying to to basically keylog myself (list of keyloggers), and hack a script to switch to Chrome, dump the text and switch back to Xcode, but that's about as gracefully as I can think of and even that's a pretty ugly way to do it.

There's probably a nicer way to do it, but I'd start with the keylogger and build from there.