| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ash/wm/panels/panel_layout_manager.h" | 5 #include "ash/wm/panels/panel_layout_manager.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "ash/launcher/launcher.h" | 10 #include "ash/launcher/launcher.h" |
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 callout_widget->GetNativeWindow()->parent(), | 616 callout_widget->GetNativeWindow()->parent(), |
| 617 callout_bounds); | 617 callout_bounds); |
| 618 | 618 |
| 619 SetChildBoundsDirect(callout_widget->GetNativeWindow(), callout_bounds); | 619 SetChildBoundsDirect(callout_widget->GetNativeWindow(), callout_bounds); |
| 620 panel_container_->StackChildAbove(callout_widget->GetNativeWindow(), | 620 panel_container_->StackChildAbove(callout_widget->GetNativeWindow(), |
| 621 panel); | 621 panel); |
| 622 callout_widget->Show(); | 622 callout_widget->Show(); |
| 623 } | 623 } |
| 624 } | 624 } |
| 625 | 625 |
| 626 //////////////////////////////////////////////////////////////////////////////// |
| 627 // keyboard::KeyboardController::Observer implementation: |
| 628 |
| 629 void PanelLayoutManager::OnKeyboardBoundsChanged( |
| 630 const gfx::Rect& keyboard_bounds) { |
| 631 // This bounds change will have caused a change to the Shelf which does not |
| 632 // propogate automatically to this class, so manually recalculate bounds. |
| 633 OnWindowResized(); |
| 634 } |
| 635 |
| 626 } // namespace internal | 636 } // namespace internal |
| 627 } // namespace ash | 637 } // namespace ash |
| OLD | NEW |