OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ | 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ |
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ | 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/system/user/login_status.h" | 9 #include "ash/system/user/login_status.h" |
10 #include "ash/wm/shelf_types.h" | 10 #include "ash/wm/shelf_types.h" |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 | 13 |
14 namespace views { | 14 namespace views { |
15 class View; | 15 class View; |
16 } | 16 } |
17 | 17 |
18 namespace ash { | 18 namespace ash { |
19 | 19 |
| 20 namespace internal { |
| 21 class TrayItemView; |
| 22 } |
| 23 |
20 class ASH_EXPORT SystemTrayItem { | 24 class ASH_EXPORT SystemTrayItem { |
21 public: | 25 public: |
22 SystemTrayItem(); | 26 SystemTrayItem(); |
23 virtual ~SystemTrayItem(); | 27 virtual ~SystemTrayItem(); |
24 | 28 |
25 // Create* functions may return NULL if nothing should be displayed for the | 29 // Create* functions may return NULL if nothing should be displayed for the |
26 // type of view. The default implementations return NULL. | 30 // type of view. The default implementations return NULL. |
27 | 31 |
28 // Returns a view to be displayed in the system tray. If this returns NULL, | 32 // Returns a view to be displayed in the system tray. If this returns NULL, |
29 // then this item is not displayed in the tray. | 33 // then this item is not displayed in the tray. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 void HideNotificationView(); | 97 void HideNotificationView(); |
94 | 98 |
95 private: | 99 private: |
96 | 100 |
97 DISALLOW_COPY_AND_ASSIGN(SystemTrayItem); | 101 DISALLOW_COPY_AND_ASSIGN(SystemTrayItem); |
98 }; | 102 }; |
99 | 103 |
100 } // namespace ash | 104 } // namespace ash |
101 | 105 |
102 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ | 106 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ |
OLD | NEW |