OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_STATUS_ICONS_STATUS_TRAY_MANAGER_H_ |
| 6 #define CHROME_BROWSER_STATUS_ICONS_STATUS_TRAY_MANAGER_H_ |
| 7 |
| 8 #include "base/scoped_ptr.h" |
| 9 #include "chrome/browser/status_icons/status_icon.h" |
| 10 |
| 11 class Profile; |
| 12 class StatusTray; |
| 13 |
| 14 // Manages the set of status tray icons and associated UI. |
| 15 class StatusTrayManager : private StatusIcon::StatusIconObserver { |
| 16 public: |
| 17 StatusTrayManager(); |
| 18 virtual ~StatusTrayManager(); |
| 19 |
| 20 void Init(Profile* profile); |
| 21 |
| 22 private: |
| 23 // StatusIcon::StatusIconObserver callbacks |
| 24 virtual void OnClicked(); |
| 25 |
| 26 scoped_ptr<StatusTray> status_tray_; |
| 27 Profile* profile_; |
| 28 }; |
| 29 |
| 30 #endif // CHROME_BROWSER_STATUS_ICONS_STATUS_TRAY_MANAGER_H_ |
OLD | NEW |