Index: ash/launcher/launcher.h |
diff --git a/ash/launcher/launcher.h b/ash/launcher/launcher.h |
index e244d4c594f65e5411f653cc818469ba7b665ffc..385d78212ff9bed79bebbecc50541d9361629c5b 100644 |
--- a/ash/launcher/launcher.h |
+++ b/ash/launcher/launcher.h |
@@ -8,8 +8,10 @@ |
#include "ash/ash_export.h" |
#include "ash/launcher/background_animator.h" |
+#include "ash/wm/shelf_auto_hide_behavior.h" |
#include "base/basictypes.h" |
#include "base/memory/scoped_ptr.h" |
+#include "ui/gfx/size.h" |
namespace aura { |
class Window; |
@@ -44,15 +46,18 @@ class ASH_EXPORT Launcher : public internal::BackgroundAnimatorDelegate { |
void SetFocusCycler(internal::FocusCycler* focus_cycler); |
internal::FocusCycler* GetFocusCycler(); |
+ void SetAlignment(ShelfAlignment alignment); |
+ ShelfAlignment alignment() const { return alignment_; } |
+ |
// Sets whether the launcher paints a background. Default is false, but is set |
// to true if a window overlaps the shelf. |
void SetPaintsBackground( |
bool value, |
internal::BackgroundAnimator::ChangeType change_type); |
- // Sets the width of the status area. |
- void SetStatusWidth(int width); |
- int GetStatusWidth(); |
+ // Sets the size of the status area. |
+ void SetStatusSize(const gfx::Size& size); |
+ const gfx::Size& status_size() const { return status_size_; } |
// Returns the screen bounds of the item for the specified window. If there is |
// no item for the specified window an empty rect is returned. |
@@ -96,8 +101,13 @@ class ASH_EXPORT Launcher : public internal::BackgroundAnimatorDelegate { |
// LauncherView used to display icons. |
internal::LauncherView* launcher_view_; |
+ ShelfAlignment alignment_; |
+ |
scoped_ptr<LauncherDelegate> delegate_; |
+ // Size reserved for the status area. |
+ gfx::Size status_size_; |
+ |
// Used to animate the background. |
internal::BackgroundAnimator background_animator_; |