| 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 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 811 ui::LayerAnimator::REPLACE_QUEUED_ANIMATIONS); | 811 ui::LayerAnimator::REPLACE_QUEUED_ANIMATIONS); |
| 812 callout_settings.SetTransitionDuration( | 812 callout_settings.SetTransitionDuration( |
| 813 base::TimeDelta::FromMilliseconds( | 813 base::TimeDelta::FromMilliseconds( |
| 814 kCalloutFadeDurationMilliseconds)); | 814 kCalloutFadeDurationMilliseconds)); |
| 815 layer->SetOpacity(1); | 815 layer->SetOpacity(1); |
| 816 } | 816 } |
| 817 } | 817 } |
| 818 } | 818 } |
| 819 } | 819 } |
| 820 | 820 |
| 821 //////////////////////////////////////////////////////////////////////////////// |
| 822 // keyboard::KeyboardControllerObserver implementation: |
| 823 |
| 824 void PanelLayoutManager::OnKeyboardBoundsChanging( |
| 825 const gfx::Rect& keyboard_bounds) { |
| 826 // This bounds change will have caused a change to the Shelf which does not |
| 827 // propogate automatically to this class, so manually recalculate bounds. |
| 828 OnWindowResized(); |
| 829 } |
| 830 |
| 821 } // namespace internal | 831 } // namespace internal |
| 822 } // namespace ash | 832 } // namespace ash |
| OLD | NEW |