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

Unified Diff: ash/launcher/launcher_view.h

Issue 9808026: Layout panels on top of their launcher icons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ununsed constanrs removed Created 8 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
Index: ash/launcher/launcher_view.h
diff --git a/ash/launcher/launcher_view.h b/ash/launcher/launcher_view.h
index ebcfbf8ee4644dcfa8a97e35fc169bf303a08bd5..56b6821087b286e76acf9c52532d21973cc75073 100644
--- a/ash/launcher/launcher_view.h
+++ b/ash/launcher/launcher_view.h
@@ -10,6 +10,7 @@
#include "ash/launcher/launcher_button_host.h"
#include "ash/launcher/launcher_model_observer.h"
+#include "base/observer_list.h"
#include "ui/views/context_menu_controller.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/view.h"
@@ -24,6 +25,7 @@ namespace ash {
class LauncherDelegate;
struct LauncherItem;
+class LauncherIconsObserver;
class LauncherModel;
class LauncherWindowCycler;
class ViewModel;
@@ -64,6 +66,9 @@ class ASH_EXPORT LauncherView : public views::View,
// isn't know.
gfx::Rect GetIdealBoundsOfItemIcon(LauncherID id);
+ void AddIconsObserver(LauncherIconsObserver* observer);
+ void RemoveIconsObserver(LauncherIconsObserver* observer);
+
private:
class FadeOutAnimationDelegate;
class StartFadeAnimationDelegate;
@@ -185,6 +190,8 @@ class ASH_EXPORT LauncherView : public views::View,
// Used to handle cycling among windows.
scoped_ptr<LauncherWindowCycler> cycler_;
+ ObserverList<LauncherIconsObserver> observers_;
+
DISALLOW_COPY_AND_ASSIGN(LauncherView);
};

Powered by Google App Engine
This is Rietveld 408576698