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_H_ | 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ |
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ | 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ash/ash_export.h" | 9 #include "ash/ash_export.h" |
10 #include "ash/system/user/login_status.h" | 10 #include "ash/system/user/login_status.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 public: | 27 public: |
28 SystemTray(); | 28 SystemTray(); |
29 virtual ~SystemTray(); | 29 virtual ~SystemTray(); |
30 | 30 |
31 // Adds a new item in the tray. | 31 // Adds a new item in the tray. |
32 void AddTrayItem(SystemTrayItem* item); | 32 void AddTrayItem(SystemTrayItem* item); |
33 | 33 |
34 // Removes an existing tray item. | 34 // Removes an existing tray item. |
35 void RemoveTrayItem(SystemTrayItem* item); | 35 void RemoveTrayItem(SystemTrayItem* item); |
36 | 36 |
37 // Shows the default view of all items. | |
38 void ShowDefaultView(); | |
39 | |
40 // Shows details of a particular item. If |close_delay_in_seconds| is | 37 // Shows details of a particular item. If |close_delay_in_seconds| is |
41 // non-zero, then the view is automatically closed after the specified time. | 38 // non-zero, then the view is automatically closed after the specified time. |
42 void ShowDetailedView(SystemTrayItem* item, | 39 void ShowDetailedView(SystemTrayItem* item, |
43 int close_delay_in_seconds, | 40 int close_delay_in_seconds, |
44 bool activate); | 41 bool activate); |
45 | 42 |
46 // Updates the items when the login status of the system changes. | 43 // Updates the items when the login status of the system changes. |
47 void UpdateAfterLoginStatusChange(user::LoginStatus login_status); | 44 void UpdateAfterLoginStatusChange(user::LoginStatus login_status); |
48 | 45 |
49 const std::vector<SystemTrayItem*>& items() const { return items_; } | 46 const std::vector<SystemTrayItem*>& items() const { return items_; } |
(...skipping 20 matching lines...) Expand all Loading... |
70 // The popup widget and the delegate. | 67 // The popup widget and the delegate. |
71 internal::SystemTrayBubble* bubble_; | 68 internal::SystemTrayBubble* bubble_; |
72 views::Widget* popup_; | 69 views::Widget* popup_; |
73 | 70 |
74 DISALLOW_COPY_AND_ASSIGN(SystemTray); | 71 DISALLOW_COPY_AND_ASSIGN(SystemTray); |
75 }; | 72 }; |
76 | 73 |
77 } // namespace ash | 74 } // namespace ash |
78 | 75 |
79 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ | 76 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ |
OLD | NEW |