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

Unified Diff: ash/wm/panels/panel_layout_manager.h

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.h
diff --git a/ash/wm/panels/panel_layout_manager.h b/ash/wm/panels/panel_layout_manager.h
index 3d4371dbbe8878e03d9356b9782154b093b91dfc..057de2767438f549e1738ac2ea490ee57b718311 100644
--- a/ash/wm/panels/panel_layout_manager.h
+++ b/ash/wm/panels/panel_layout_manager.h
@@ -18,6 +18,7 @@
#include "ui/aura/client/activation_change_observer.h"
#include "ui/aura/layout_manager.h"
#include "ui/aura/window_observer.h"
+#include "ui/keyboard/keyboard_controller.h"
namespace aura {
class Window;
@@ -52,6 +53,7 @@ class ASH_EXPORT PanelLayoutManager
public ash::ShellObserver,
public aura::WindowObserver,
public aura::client::ActivationChangeObserver,
+ public keyboard::KeyboardController::Observer,
public ShelfLayoutManager::Observer {
public:
explicit PanelLayoutManager(aura::Window* panel_container);
@@ -140,6 +142,10 @@ class ASH_EXPORT PanelLayoutManager
// Update the callout arrows for all managed panels.
void UpdateCallouts();
+ // Overridden from keyboard::KeyboardController::Observer:
+ virtual void OnKeyboardBoundsChanging(
+ const gfx::Rect& keyboard_bounds) OVERRIDE;
+
// Parent window associated with this layout manager.
aura::Window* panel_container_;
// Protect against recursive calls to Relayout().

Powered by Google App Engine
This is Rietveld 408576698