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

Unified Diff: ui/views/ime/input_method_bridge.cc

Issue 20526005: Implement virtual keyboard hiding. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Init Created 7 years, 5 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
Index: ui/views/ime/input_method_bridge.cc
diff --git a/ui/views/ime/input_method_bridge.cc b/ui/views/ime/input_method_bridge.cc
index 3d9a4587181d00db03d3eafb2c1283f644fa9790..b4a6bff0e7dd93bfbcd0c88284628276d945960e 100644
--- a/ui/views/ime/input_method_bridge.cc
+++ b/ui/views/ime/input_method_bridge.cc
@@ -38,6 +38,10 @@ void InputMethodBridge::OnFocus() {
if (shared_input_method_ || !host_->GetTextInputClient())
host_->SetFocusedTextInputClient(this);
+ OnPossibleRefocus();
+}
+
+void InputMethodBridge::OnPossibleRefocus() {
// TODO(yusukes): We don't need to call OnTextInputTypeChanged() once we move
// text input type tracker code to ui::InputMethodBase.
if (GetFocusedView())

Powered by Google App Engine
This is Rietveld 408576698