Chromium Code Reviews| Index: ui/keyboard/keyboard_controller.cc |
| diff --git a/ui/keyboard/keyboard_controller.cc b/ui/keyboard/keyboard_controller.cc |
| index 0977f892ed07456cde323c075665755a9841df80..d5fc78c06211a27bb99ddeb35433739ead334f15 100644 |
| --- a/ui/keyboard/keyboard_controller.cc |
| +++ b/ui/keyboard/keyboard_controller.cc |
| @@ -147,6 +147,15 @@ aura::Window* KeyboardController::GetContainerWindow() { |
| return container_; |
| } |
| +void KeyboardController::HideKeyboard() { |
|
bshe
2013/09/09 19:03:55
drive-by: probably need to update keyboard_visible
SteveT
2013/09/10 14:25:10
Done. PTAL at the new comment I added.
|
| + FOR_EACH_OBSERVER( |
| + KeyboardControllerObserver, |
| + observer_list_, |
| + OnKeyboardBoundsChanging(gfx::Rect())); |
| + |
| + proxy_->HideKeyboardContainer(container_); |
| +} |
| + |
| void KeyboardController::AddObserver(KeyboardControllerObserver* observer) { |
| observer_list_.AddObserver(observer); |
| } |
| @@ -218,13 +227,6 @@ void KeyboardController::OnInputMethodDestroyed( |
| input_method_ = NULL; |
| } |
| -void KeyboardController::HideKeyboard() { |
| - FOR_EACH_OBSERVER(KeyboardControllerObserver, |
| - observer_list_, |
| - OnKeyboardBoundsChanging(gfx::Rect())); |
| - proxy_->HideKeyboardContainer(container_); |
| -} |
| - |
| bool KeyboardController::WillHideKeyboard() const { |
| return weak_factory_.HasWeakPtrs(); |
| } |