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

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: 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 82f6c7db88e38491ff523c6f3ba1daca5c60cdef..9541bd0b0e5c744713a233b780242fad6ae5a935 100644
--- a/ash/wm/panels/panel_layout_manager.cc
+++ b/ash/wm/panels/panel_layout_manager.cc
@@ -623,5 +623,15 @@ void PanelLayoutManager::UpdateCallouts() {
}
}
+////////////////////////////////////////////////////////////////////////////////
+// keyboard::KeyboardController::Observer implementation:
+
+void PanelLayoutManager::OnKeyboardBoundsChanged(
+ 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