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/shelf/shelf_types.h" | 9 #include "ash/shelf/shelf_types.h" |
10 #include "ash/system/user/login_status.h" | 10 #include "ash/system/user/login_status.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 virtual void DestroyNotificationView(); | 56 virtual void DestroyNotificationView(); |
57 | 57 |
58 // Updates the tray view (if applicable) when the user's login status changes. | 58 // Updates the tray view (if applicable) when the user's login status changes. |
59 // It is not necessary the update the default or detailed view, since the | 59 // It is not necessary the update the default or detailed view, since the |
60 // default/detailed popup is closed when login status changes. The default | 60 // default/detailed popup is closed when login status changes. The default |
61 // implementation does nothing. | 61 // implementation does nothing. |
62 virtual void UpdateAfterLoginStatusChange(user::LoginStatus status); | 62 virtual void UpdateAfterLoginStatusChange(user::LoginStatus status); |
63 | 63 |
64 // Updates the tray view (if applicable) when shelf's alignment changes. | 64 // Updates the tray view (if applicable) when shelf's alignment changes. |
65 // The default implementation does nothing. | 65 // The default implementation does nothing. |
66 virtual void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment); | 66 virtual void UpdateAfterShelfAlignmentChange(wm::ShelfAlignment alignment); |
67 | 67 |
68 // Shows the detailed view for this item. If the main popup for the tray is | 68 // Shows the detailed view for this item. If the main popup for the tray is |
69 // currently visible, then making this call would use the existing window to | 69 // currently visible, then making this call would use the existing window to |
70 // display the detailed item. The detailed item will inherit the bounds of the | 70 // display the detailed item. The detailed item will inherit the bounds of the |
71 // existing window. | 71 // existing window. |
72 // If there is no existing view, then this is equivalent to calling | 72 // If there is no existing view, then this is equivalent to calling |
73 // PopupDetailedView(0, true). | 73 // PopupDetailedView(0, true). |
74 void TransitionDetailedView(); | 74 void TransitionDetailedView(); |
75 | 75 |
76 // Pops up the detailed view for this item. An item can request to show its | 76 // Pops up the detailed view for this item. An item can request to show its |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 private: | 112 private: |
113 SystemTray* system_tray_; | 113 SystemTray* system_tray_; |
114 bool restore_focus_; | 114 bool restore_focus_; |
115 | 115 |
116 DISALLOW_COPY_AND_ASSIGN(SystemTrayItem); | 116 DISALLOW_COPY_AND_ASSIGN(SystemTrayItem); |
117 }; | 117 }; |
118 | 118 |
119 } // namespace ash | 119 } // namespace ash |
120 | 120 |
121 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ | 121 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ |
OLD | NEW |