support setContentType method

ibus now supports setContentType method, if an application input some
password, the password will not be shown.

BUG=rhbz#1027029
R=Shawn.P.Huang@gmail.com

Review URL: https://codereview.appspot.com/22330043

Patch from Peng Wu <alexepico@gmail.com>.