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

Unified Diff: ash/system/tray/system_tray.h

Issue 10384217: Add left/right layout support for uber tray. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: UpdateWidgetSize when layout manager is changed for systemtray and add test. 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 | « no previous file | ash/system/tray/system_tray.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray.h
diff --git a/ash/system/tray/system_tray.h b/ash/system/tray/system_tray.h
index e0dc39141dd57a1b24a7e2a85147cb5faa0cdd4a..51258d38629240fc5604414b8a5681149e7c0a06 100644
--- a/ash/system/tray/system_tray.h
+++ b/ash/system/tray/system_tray.h
@@ -10,6 +10,7 @@
#include "ash/ash_export.h"
#include "ash/system/tray/tray_views.h"
#include "ash/system/user/login_status.h"
+#include "ash/wm/shelf_auto_hide_behavior.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
@@ -40,6 +41,7 @@ class SystemTrayItem;
namespace internal {
class SystemTrayBackground;
class SystemTrayBubble;
+class SystemTrayContainer;
class SystemTrayLayerAnimationObserver;
}
@@ -151,6 +153,9 @@ class ASH_EXPORT SystemTray : public internal::ActionableView,
// Returns true if the bubble exists.
bool CloseBubbleForTest() const;
+ void SetShelfAlignment(ShelfAlignment alignment);
+ ShelfAlignment shelf_alignment() const { return shelf_alignment_; }
+
private:
friend class internal::SystemTrayLayerAnimationObserver;
friend class internal::SystemTrayBubble;
@@ -205,7 +210,7 @@ class ASH_EXPORT SystemTray : public internal::ActionableView,
std::vector<SystemTrayItem*> notification_items_;
// The container for all the tray views of the items.
- views::View* tray_container_;
+ internal::SystemTrayContainer* tray_container_;
// Mappings of system tray item and it's view in the tray.
std::map<SystemTrayItem*, views::View*> tray_item_map_;
@@ -240,6 +245,9 @@ class ASH_EXPORT SystemTray : public internal::ActionableView,
// See description agove getter.
bool should_show_launcher_;
+ // Shelf alignment.
+ ShelfAlignment shelf_alignment_;
+
internal::BackgroundAnimator hide_background_animator_;
internal::BackgroundAnimator hover_background_animator_;
scoped_ptr<internal::SystemTrayLayerAnimationObserver>
« no previous file with comments | « no previous file | ash/system/tray/system_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698