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

Unified Diff: ash/wm/panel_layout_manager.h

Issue 9808026: Layout panels on top of their launcher icons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pre-patch with tests Created 8 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/panel_layout_manager.h
diff --git a/ash/wm/panel_layout_manager.h b/ash/wm/panel_layout_manager.h
index 6951c296822cdf8882ecb9cc47be3442fd39b1fb..4426eea58f4374a316468e3918edb14e349063a2 100644
--- a/ash/wm/panel_layout_manager.h
+++ b/ash/wm/panel_layout_manager.h
@@ -9,6 +9,7 @@
#include <list>
#include "ash/ash_export.h"
+#include "ash/launcher/launcher_icon_observer.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "ui/aura/layout_manager.h"
@@ -22,6 +23,8 @@ class Rect;
}
namespace ash {
+class Launcher;
+
namespace internal {
// PanelLayoutManager is responsible for organizing panels within the
@@ -33,7 +36,8 @@ namespace internal {
// its layout manager to this instance, e.g.:
// panel_container->SetLayoutManager(new PanelLayoutManager(panel_container));
-class ASH_EXPORT PanelLayoutManager : public aura::LayoutManager {
+class ASH_EXPORT PanelLayoutManager : public aura::LayoutManager,
+ public ash::LauncherIconObserver {
public:
explicit PanelLayoutManager(aura::Window* panel_container);
virtual ~PanelLayoutManager();
@@ -43,6 +47,8 @@ class ASH_EXPORT PanelLayoutManager : public aura::LayoutManager {
void ToggleMinimize(aura::Window* panel);
+ void SetLauncher(ash::Launcher* launcher);
+
// Overridden from aura::LayoutManager:
virtual void OnWindowResized() OVERRIDE;
virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE;
@@ -52,6 +58,9 @@ class ASH_EXPORT PanelLayoutManager : public aura::LayoutManager {
virtual void SetChildBounds(aura::Window* child,
const gfx::Rect& requested_bounds) OVERRIDE;
+ // Overriden from ash::LauncherIconObserver
+ virtual void OnLauncherIconPositionsChanged() OVERRIDE;
+
private:
typedef std::list<aura::Window*> PanelList;

Powered by Google App Engine
This is Rietveld 408576698