Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(651)

Unified Diff: views/widget/native_widget_views.cc

Issue 7746005: Focus fix. InputMethod needs to be initialized before calling OnFocus (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/widget/native_widget_gtk.cc ('k') | views/widget/native_widget_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/native_widget_views.cc
diff --git a/views/widget/native_widget_views.cc b/views/widget/native_widget_views.cc
index 5fc87214edac04eeb1f202de099ac115364e227d..6e0139be0a786698fc0e0310fa2edf66111636d6 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) {
« no previous file with comments | « views/widget/native_widget_gtk.cc ('k') | views/widget/native_widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698