Fixes focus bug in DesktopNativeWidgetAura. The bug occurs because
commit0358eb74c535729098649c4bd23399ad4ff6aedc
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 15 Feb 2013 16:23:09 +0000 (15 16:23 +0000)
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 15 Feb 2013 16:23:09 +0000 (15 16:23 +0000)
tree719663ea4764f3731a228e0f398c4aadfeb9f778
parent7e6b753f154cbf9db019d025b54f90669e6ec601
Fixes focus bug in DesktopNativeWidgetAura. The bug occurs because
DesktopRootWindowHost::HandleNativeFocus calls to
InputMethodBridge::OnFocus. InputMethodBridge::OnFocus resets the
TextInputClient always. This makes sense for NativeWidgetAura, but not
DesktopNativeWidgetAura. This is because DNWA does not share the
underlying ui::InputMethod, so that by resetting the TextInputClient
it is clobbers the existing TextInputClient (such as the renderer).

BUG=175450
TEST=none
R=ben@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182730 0039d316-1c4b-4281-b951-d872f2087c98
ui/views/ime/input_method_bridge.cc
ui/views/ime/input_method_bridge.h
ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
ui/views/widget/native_widget_aura.cc