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

Unified Diff: chrome/browser/status_icons/status_tray_manager.h

Issue 661454: Initial implementation of status tray functionality (mac-only, currently). (Closed)
Patch Set: more changes per review feedback Created 10 years, 10 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 | « chrome/browser/status_icons/status_tray.cc ('k') | chrome/browser/status_icons/status_tray_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/status_icons/status_tray_manager.h
diff --git a/chrome/browser/status_icons/status_tray_manager.h b/chrome/browser/status_icons/status_tray_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..9f9d2d752e05b87c0530bb0e612dc8a87f2f1227
--- /dev/null
+++ b/chrome/browser/status_icons/status_tray_manager.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_STATUS_ICONS_STATUS_TRAY_MANAGER_H_
+#define CHROME_BROWSER_STATUS_ICONS_STATUS_TRAY_MANAGER_H_
+
+#include "base/scoped_ptr.h"
+#include "chrome/browser/status_icons/status_icon.h"
+
+class Profile;
+class StatusTray;
+
+// Manages the set of status tray icons and associated UI.
+class StatusTrayManager : private StatusIcon::StatusIconObserver {
+ public:
+ StatusTrayManager();
+ virtual ~StatusTrayManager();
+
+ void Init(Profile* profile);
+
+ private:
+ // StatusIcon::StatusIconObserver callbacks
+ virtual void OnClicked();
+
+ scoped_ptr<StatusTray> status_tray_;
+ Profile* profile_;
+};
+
+#endif // CHROME_BROWSER_STATUS_ICONS_STATUS_TRAY_MANAGER_H_
« no previous file with comments | « chrome/browser/status_icons/status_tray.cc ('k') | chrome/browser/status_icons/status_tray_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698