Chromium Code Reviews| Index: ui/keyboard/keyboard_controller.cc |
| diff --git a/ui/keyboard/keyboard_controller.cc b/ui/keyboard/keyboard_controller.cc |
| index 7359cba70f39984a8ed73829e6e3fc504dfc166b..64beb04448bb486e09c3b13c33576650a135ec9e 100644 |
| --- a/ui/keyboard/keyboard_controller.cc |
| +++ b/ui/keyboard/keyboard_controller.cc |
| @@ -370,7 +370,7 @@ void KeyboardController::HideKeyboard(HideReason reason) { |
| settings.SetTransitionDuration( |
| base::TimeDelta::FromMilliseconds(kHideAnimationDurationMs)); |
| gfx::Transform transform; |
| - transform.Translate(0, proxy_->GetKeyboardWindow()->bounds().height()); |
| + transform.Translate(0, keyboard::kAnimationDistance); |
|
bshe
2014/09/16 14:43:38
nit: I believe "keyboard" namespace is not necessa
rsadam
2014/09/16 14:46:58
Done.
|
| container_->SetTransform(transform); |
| container_->layer()->SetOpacity(kAnimationStartOrAfterHideOpacity); |
| } |
| @@ -523,7 +523,7 @@ void KeyboardController::ShowKeyboardInternal() { |
| // are at begin states for animation. |
| if (!container_animator->is_animating()) { |
| gfx::Transform transform; |
| - transform.Translate(0, proxy_->GetKeyboardWindow()->bounds().height()); |
| + transform.Translate(0, keyboard::kAnimationDistance); |
|
bshe
2014/09/16 14:43:38
nit: ditto
rsadam
2014/09/16 14:46:58
Done.
|
| container_->SetTransform(transform); |
| container_->layer()->SetOpacity(kAnimationStartOrAfterHideOpacity); |
| } |