Hide IME window when content view loses focus

BUG=347268

Review URL: https://codereview.chromium.org/181473006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254347 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 254347
Add <algorithm> include needed on VS2013

TBR=tmdiep@chromium.org
BUG=309197

Review URL: https://codereview.chromium.org/185173003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254348 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 254348