| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_layout_manager.h" | 5 #include "ui/keyboard/keyboard_layout_manager.h" |
| 6 | 6 |
| 7 #include "ui/compositor/layer_animator.h" | 7 #include "ui/compositor/layer_animator.h" |
| 8 #include "ui/keyboard/keyboard_controller.h" | 8 #include "ui/keyboard/keyboard_controller.h" |
| 9 #include "ui/keyboard/keyboard_controller_proxy.h" | |
| 10 #include "ui/keyboard/keyboard_util.h" | 9 #include "ui/keyboard/keyboard_util.h" |
| 11 | 10 |
| 12 namespace keyboard { | 11 namespace keyboard { |
| 13 | 12 |
| 14 // Overridden from aura::LayoutManager | 13 // Overridden from aura::LayoutManager |
| 15 void KeyboardLayoutManager::OnWindowResized() { | 14 void KeyboardLayoutManager::OnWindowResized() { |
| 16 if (keyboard_) { | 15 if (keyboard_) { |
| 17 // Container window is the top level window of the virtual keyboard window. | 16 // Container window is the top level window of the virtual keyboard window. |
| 18 // To support window.moveTo for the virtual keyboard window, as it actually | 17 // To support window.moveTo for the virtual keyboard window, as it actually |
| 19 // moves the top level window, the container window should be set to the | 18 // moves the top level window, the container window should be set to the |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // keyboard window is resized even if keyboard is hidden. | 82 // keyboard window is resized even if keyboard is hidden. |
| 84 if (controller_->keyboard_visible()) | 83 if (controller_->keyboard_visible()) |
| 85 controller_->NotifyKeyboardBoundsChanging(requested_bounds); | 84 controller_->NotifyKeyboardBoundsChanging(requested_bounds); |
| 86 } | 85 } |
| 87 } else if (controller_->keyboard_mode() == FLOATING) { | 86 } else if (controller_->keyboard_mode() == FLOATING) { |
| 88 controller_->NotifyKeyboardBoundsChanging(gfx::Rect()); | 87 controller_->NotifyKeyboardBoundsChanging(gfx::Rect()); |
| 89 } | 88 } |
| 90 } | 89 } |
| 91 | 90 |
| 92 } // namespace keyboard | 91 } // namespace keyboard |
| OLD | NEW |