Index: chrome/browser/ui/ash/ash_keyboard_controller_proxy.cc |
diff --git a/chrome/browser/ui/ash/ash_keyboard_controller_proxy.cc b/chrome/browser/ui/ash/ash_keyboard_controller_proxy.cc |
index 8ed8785e7f9fc226b5017de5c78bc444572aa999..b9ed8b8df6c1cbd79308afd74abcc44f319f5634 100644 |
--- a/chrome/browser/ui/ash/ash_keyboard_controller_proxy.cc |
+++ b/chrome/browser/ui/ash/ash_keyboard_controller_proxy.cc |
@@ -39,7 +39,7 @@ namespace { |
const char* kVirtualKeyboardExtensionID = "mppnpdlheglhdfmldimlhpnegondlapf"; |
// The virtual keyboard show/hide animation duration. |
-const int kAnimationDurationMs = 1000; |
+const int kAnimationDurationMs = 100; |
Context::Type TextInputTypeToGeneratedInputTypeEnum(ui::TextInputType type) { |
switch (type) { |
@@ -174,6 +174,7 @@ void AshKeyboardControllerProxy::ShowKeyboardContainer( |
settings.SetTransitionDuration( |
base::TimeDelta::FromMilliseconds(kAnimationDurationMs)); |
container->SetTransform(gfx::Transform()); |
+ container->layer()->SetOpacity(1.0); |
} |
// TODO(bshe): Add animation observer and do the workspace resizing after |
@@ -201,6 +202,7 @@ void AshKeyboardControllerProxy::HideKeyboardContainer( |
gfx::Transform transform; |
transform.Translate(0, GetKeyboardWindow()->bounds().height()); |
container->SetTransform(transform); |
+ container->layer()->SetOpacity(0.0); |
KeyboardControllerProxy::HideKeyboardContainer(container); |
} |