Use the chrome.experimental.input.ui module to implement input method user interface. This module is for Chrome OS only. chrome.experimental.* APIs page.
chrome.experimental.input.ui