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

Unified Diff: ui/views/widget/native_widget_aura.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
« ui/keyboard/keyboard_ui_handler.cc ('K') | « ui/views/ime/input_method_bridge.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_aura.cc
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc
index 1163f4af1371bb447b217dbe6162c5c3d5f58c27..7edbbde7384daa333414dfbc700e2a3431eb8f48 100644
--- a/ui/views/widget/native_widget_aura.cc
+++ b/ui/views/widget/native_widget_aura.cc
@@ -782,6 +782,9 @@ void NativeWidgetAura::OnMouseEvent(ui::MouseEvent* event) {
return;
}
+ if (event->type() == ui::ET_MOUSE_RELEASED)
+ GetWidget()->GetInputMethod()->OnPossibleRefocus();
SteveT 2013/07/31 03:19:18 Handling "refocus" here and below.
+
if (tooltip_manager_.get())
tooltip_manager_->UpdateTooltip();
delegate_->OnMouseEvent(event);
@@ -793,6 +796,10 @@ void NativeWidgetAura::OnScrollEvent(ui::ScrollEvent* event) {
void NativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) {
DCHECK(window_->IsVisible());
+
+ if (event->type() == ui::ET_TOUCH_RELEASED)
+ GetWidget()->GetInputMethod()->OnPossibleRefocus();
+
delegate_->OnTouchEvent(event);
}
« ui/keyboard/keyboard_ui_handler.cc ('K') | « ui/views/ime/input_method_bridge.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698