Commit 8cb7ca2b authored by Darren Shen's avatar Darren Shen Committed by Commit Bot

[VK] Fix TODO by adding DCHECK.

Change-Id: I86106fe1d67f9365633d3bfdc8da3bdb19f60816
Bug: 845780
Reviewed-on: https://chromium-review.googlesource.com/1077871Reviewed-by: default avatarYuichiro Hanada <yhanada@chromium.org>
Commit-Queue: Darren Shen <shend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#563161}
parent 88678b82
...@@ -643,21 +643,8 @@ void KeyboardController::PopulateKeyboardContent( ...@@ -643,21 +643,8 @@ void KeyboardController::PopulateKeyboardContent(
ui::LayerAnimator* container_animator = container_->layer()->GetAnimator(); ui::LayerAnimator* container_animator = container_->layer()->GetAnimator();
// If |container_| has hide animation, its visibility is set to false when the // Ensure that the keyboard is either hidden or is in the process of hiding.
// hide animation finished. So even if the container is visible at this DCHECK(!container_->IsVisible() || container_animator->is_animating());
// point, it may be in the process of hiding. We still need to show keyboard
// container in this case.
if (container_->IsVisible() && !container_animator->is_animating()) {
// TODO(oka): This clause is excercised in
// VirtualKeyboardRootWindowControllerTest
// .EnsureCaretInWorkAreaWithMultipleDisplays
// when keyboard container window has been shown from outside.
// This should not happen in the real code. Fix the test and change this to
// NOTREACHED.
DCHECK_EQ(state_, KeyboardControllerState::HIDDEN);
ChangeState(KeyboardControllerState::SHOWN);
return;
}
SetTouchEventLogging(!show_keyboard /* enable */); SetTouchEventLogging(!show_keyboard /* enable */);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment