diff options
Diffstat (limited to 'chrome/browser/status_icons/status_tray_manager.h')
-rw-r--r-- | chrome/browser/status_icons/status_tray_manager.h | 30 |
1 files changed, 30 insertions, 0 deletions
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 0000000..9f9d2d7 --- /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_ |