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

Unified Diff: ash/system/status_area_widget.h

Issue 10535112: Prepare status area to support multiple trays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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/system/status_area_widget.h
diff --git a/ash/system/status_area_widget.h b/ash/system/status_area_widget.h
index 1a99a0f328978735734a87139bf65aa4d3a7e776..cc0e6660d3e6ae8aae8079fa7b6b28d7331dd217 100644
--- a/ash/system/status_area_widget.h
+++ b/ash/system/status_area_widget.h
@@ -11,20 +11,41 @@
#include "ui/views/widget/widget.h"
namespace ash {
+
+class ShellDelegate;
+class SystemTray;
+class SystemTrayDelegate;
+
namespace internal {
class StatusAreaWidgetDelegate;
class ASH_EXPORT StatusAreaWidget : public views::Widget {
- public:
+public:
sadrul 2012/06/12 15:13:39 +space
stevenjb 2012/06/12 16:46:50 Done.
StatusAreaWidget();
virtual ~StatusAreaWidget();
- void AddTray(views::View* tray);
+ // Creates the SystemTray.
+ void CreateTrayViews(ShellDelegate* shell_delegate);
+
+ // Destroys the system tray. Called before tearing down the windows to avoid
+ // shutdown ordering issues.
+ void Shutdown();
+
void SetShelfAlignment(ShelfAlignment alignment);
+ SystemTray* system_tray() { return system_tray_; }
+ SystemTrayDelegate* system_tray_delegate() {
+ return system_tray_delegate_.get();
+ }
+
private:
+ void AddSystemTray(SystemTray* system_tray, ShellDelegate* shell_delegate);
+
+ scoped_ptr<SystemTrayDelegate> system_tray_delegate_;
+ // Child views owned by the view hierarchy:
sadrul 2012/06/12 15:13:39 This comment is probably misplaced? (or needs some
stevenjb 2012/06/12 16:46:50 Clarified, hopefully :)
internal::StatusAreaWidgetDelegate* widget_delegate_;
+ SystemTray* system_tray_;
DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget);
};

Powered by Google App Engine
This is Rietveld 408576698