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

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

Issue 2747543002: ash: Start/stop observing KeyboardController via ShellObserver (Closed)
Patch Set: update LockLayoutManager to use similar logic Created 3 years, 9 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
« no previous file with comments | « ash/common/wm/lock_layout_manager.cc ('k') | ash/common/wm/panels/panel_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/panels/panel_layout_manager.h
diff --git a/ash/common/wm/panels/panel_layout_manager.h b/ash/common/wm/panels/panel_layout_manager.h
index 65c19abdd3b3e58656fe0c5f1645cc00e8f750d1..307ca5c980d3f0cc4b4d14b3744a97d8fef88fd3 100644
--- a/ash/common/wm/panels/panel_layout_manager.h
+++ b/ash/common/wm/panels/panel_layout_manager.h
@@ -18,6 +18,7 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
+#include "base/scoped_observer.h"
#include "ui/aura/window_observer.h"
#include "ui/aura/window_tracker.h"
#include "ui/keyboard/keyboard_controller.h"
@@ -95,6 +96,8 @@ class ASH_EXPORT PanelLayoutManager
// Overridden from ShellObserver:
void OnOverviewModeEnded() override;
void OnShelfAlignmentChanged(WmWindow* root_window) override;
+ void OnVirtualKeyboardStateChanged(bool activated,
+ WmWindow* root_window) override;
// Overridden from aura::WindowObserver
void OnWindowPropertyChanged(aura::Window* window,
@@ -196,6 +199,11 @@ class ASH_EXPORT PanelLayoutManager
// The last active panel. Used to maintain stacking order even if no panels
// are currently focused.
WmWindow* last_active_panel_;
+
+ ScopedObserver<keyboard::KeyboardController,
+ keyboard::KeyboardControllerObserver>
+ keyboard_observer_;
+
base::WeakPtrFactory<PanelLayoutManager> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager);
« no previous file with comments | « ash/common/wm/lock_layout_manager.cc ('k') | ash/common/wm/panels/panel_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698