diff options
author | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-25 04:34:11 +0000 |
---|---|---|
committer | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-25 04:34:11 +0000 |
commit | eaeaf86449c9cee06d432759e7ebe128f89317b8 (patch) | |
tree | a0c3e4cb68b4058418b4609e24d4cc94ef63e6cf /views/widget/native_widget_views.cc | |
parent | 336c68f1db6d5e4bbd45d6c18a64222e34133979 (diff) | |
download | chromium_src-eaeaf86449c9cee06d432759e7ebe128f89317b8.zip chromium_src-eaeaf86449c9cee06d432759e7ebe128f89317b8.tar.gz chromium_src-eaeaf86449c9cee06d432759e7ebe128f89317b8.tar.bz2 |
Focus fix. InputMethod needs to be initialized before calling OnFocus
TBR=penghaung@chromium.org
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7746005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98184 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/native_widget_views.cc')
-rw-r--r-- | views/widget/native_widget_views.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/views/widget/native_widget_views.cc b/views/widget/native_widget_views.cc index 5fc8721..6e0139b 100644 --- a/views/widget/native_widget_views.cc +++ b/views/widget/native_widget_views.cc @@ -236,10 +236,12 @@ bool NativeWidgetViews::HasMouseCapture() const { InputMethod* NativeWidgetViews::CreateInputMethod() { #if defined(HAVE_IBUS) - return new InputMethodIBus(this); + InputMethod* input_method = new InputMethodIBus(this); #else - return new MockInputMethod(this); + InputMethod* input_method = new MockInputMethod(this); #endif + input_method->Init(GetWidget()); + return input_method; } void NativeWidgetViews::CenterWindow(const gfx::Size& size) { |