OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/keyboard/keyboard_controller.h" | 5 #include "ui/keyboard/keyboard_controller.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 | 481 |
482 void KeyboardController::ShowAnimationFinished() { | 482 void KeyboardController::ShowAnimationFinished() { |
483 // Notify observers after animation finished to prevent reveal desktop | 483 // Notify observers after animation finished to prevent reveal desktop |
484 // background during animation. | 484 // background during animation. |
485 NotifyKeyboardBoundsChanging(container_->bounds()); | 485 NotifyKeyboardBoundsChanging(container_->bounds()); |
486 ui_->EnsureCaretInWorkArea(); | 486 ui_->EnsureCaretInWorkArea(); |
487 } | 487 } |
488 | 488 |
489 void KeyboardController::HideAnimationFinished() { | 489 void KeyboardController::HideAnimationFinished() { |
490 ui_->HideKeyboardContainer(container_.get()); | 490 ui_->HideKeyboardContainer(container_.get()); |
| 491 FOR_EACH_OBSERVER(KeyboardControllerObserver, observer_list_, |
| 492 OnKeyboardHidden()); |
491 } | 493 } |
492 | 494 |
493 } // namespace keyboard | 495 } // namespace keyboard |
OLD | NEW |