Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: ash/wm/panels/panel_layout_manager.cc

Issue 14477010: Partial fix for keyboard occlusion. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698