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

Unified Diff: ash/launcher/launcher.h

Issue 10388036: Adds the option of aligning the launcher to the left or right. There (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile Created 8 years, 7 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/ash_strings.grd ('k') | ash/launcher/launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/launcher/launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698