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

Unified Diff: views/widget/native_widget_views.cc

Issue 7744029: Possible fix for the issue that keyboard doesn't show up. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git-try 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') | no next file » | 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 c029b2f922108e976cd03e29bc06c6e71ef59177..eb7047f3a524235511c2becbb1e76644adf930dc 100644
--- a/views/widget/native_widget_views.cc
+++ b/views/widget/native_widget_views.cc
@@ -67,15 +67,13 @@ void NativeWidgetViews::OnActivate(bool active) {
// This will be fixed when we have WM API.
Widget* widget = GetWidget();
if (widget->is_top_level()) {
- InputMethod* input_method = widget->GetInputMethodDirect();
+ InputMethod* input_method = widget->GetInputMethod();
if (active) {
- if (input_method)
- input_method->OnFocus();
+ input_method->OnFocus();
// See description of got_initial_focus_in_ for details on this.
widget->GetFocusManager()->RestoreFocusedView();
} else {
- if (input_method)
- input_method->OnBlur();
+ input_method->OnBlur();
widget->GetFocusManager()->StoreFocusedView();
}
}
« no previous file with comments | « views/widget/native_widget_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698