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

Unified 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: rebase 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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/panels/panel_layout_manager.cc
diff --git a/ash/wm/panels/panel_layout_manager.cc b/ash/wm/panels/panel_layout_manager.cc
index 39350ac7e2b601b699a3c3febd54ac1423a4bd1e..d7cdae81be65c0ec3710f4dc5da37b345e827540 100644
--- a/ash/wm/panels/panel_layout_manager.cc
+++ b/ash/wm/panels/panel_layout_manager.cc
@@ -818,5 +818,15 @@ void PanelLayoutManager::UpdateCallouts() {
}
}
+////////////////////////////////////////////////////////////////////////////////
+// keyboard::KeyboardController::Observer implementation:
+
+void PanelLayoutManager::OnKeyboardBoundsChanging(
+ const gfx::Rect& keyboard_bounds) {
+ // This bounds change will have caused a change to the Shelf which does not
+ // propogate automatically to this class, so manually recalculate bounds.
+ OnWindowResized();
+}
+
} // namespace internal
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698