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

Unified Diff: ui/keyboard/keyboard_controller.cc

Issue 2824103005: Ensure caret in workarea after virtual keyboard IME change.
Patch Set: Created 3 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/keyboard_controller.cc
diff --git a/ui/keyboard/keyboard_controller.cc b/ui/keyboard/keyboard_controller.cc
index d517f07de69623117b3d1e09b85b2e4198a172e7..f2ca6221c89a5bb9f02f2b965df7cf8363cdc441 100644
--- a/ui/keyboard/keyboard_controller.cc
+++ b/ui/keyboard/keyboard_controller.cc
@@ -239,6 +239,7 @@ void KeyboardController::NotifyKeyboardBoundsChanging(
} else {
current_keyboard_bounds_ = gfx::Rect();
}
+ ui_->EnsureCaretInWorkArea();
}
void KeyboardController::HideKeyboard(HideReason reason) {
@@ -504,7 +505,6 @@ void KeyboardController::ShowAnimationFinished() {
// Notify observers after animation finished to prevent reveal desktop
// background during animation.
NotifyKeyboardBoundsChanging(container_->bounds());
- ui_->EnsureCaretInWorkArea();
}
void KeyboardController::HideAnimationFinished() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698