This patch set introduces a new utility method named "IsFocused" and calls TSF's SetFocus if and only if the current focused document manager is expected ones.

Background:
Despite that TsfBridge is responsible for managing IME on/off state only for content area, TsfBridge::EnableIME and TsfBridge::DisableIME will be called even when other UI components such as OmniBox have input focus. In this case, we should not call TSF's SetFocus because it makes TSF confused.

BUG=141606
TEST=Manually tested on Windows 8 RTM with Metro mode.

Review URL: https://chromiumcodereview.appspot.com/10933042

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156343 0039d316-1c4b-4281-b951-d872f2087c98
1 file changed