| 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_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ | 5 #ifndef ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ |
| 6 #define ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ | 6 #define ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/common/login_status.h" | 9 #include "ash/common/login_status.h" |
| 10 #include "ash/common/shelf/shelf_types.h" | 10 #include "ash/common/shelf/shelf_types.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // something, e.g. volume, network availability etc. changes). If | 114 // something, e.g. volume, network availability etc. changes). If |
| 115 // |for_seconds| is non-zero, then the popup is closed after the specified | 115 // |for_seconds| is non-zero, then the popup is closed after the specified |
| 116 // time. | 116 // time. |
| 117 void PopupDetailedView(int for_seconds, bool activate); | 117 void PopupDetailedView(int for_seconds, bool activate); |
| 118 | 118 |
| 119 // Continue showing the currently-shown detailed view, if any, for | 119 // Continue showing the currently-shown detailed view, if any, for |
| 120 // |for_seconds| seconds. The caller is responsible for checking that the | 120 // |for_seconds| seconds. The caller is responsible for checking that the |
| 121 // currently-shown view is for this item. | 121 // currently-shown view is for this item. |
| 122 void SetDetailedViewCloseDelay(int for_seconds); | 122 void SetDetailedViewCloseDelay(int for_seconds); |
| 123 | 123 |
| 124 // Hides the detailed view for this item. | 124 // Hides the detailed view for this item. Disable hiding animation if |
| 125 void HideDetailedView(); | 125 // |animate| is false. |
| 126 void HideDetailedView(bool animate); |
| 126 | 127 |
| 127 // Shows a notification for this item. | 128 // Shows a notification for this item. |
| 128 void ShowNotificationView(); | 129 void ShowNotificationView(); |
| 129 | 130 |
| 130 // Hides the notification for this item. | 131 // Hides the notification for this item. |
| 131 void HideNotificationView(); | 132 void HideNotificationView(); |
| 132 | 133 |
| 133 // Returns true if item should hide the arrow. | 134 // Returns true if item should hide the arrow. |
| 134 virtual bool ShouldHideArrow() const; | 135 virtual bool ShouldHideArrow() const; |
| 135 | 136 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 152 SystemTray* system_tray_; | 153 SystemTray* system_tray_; |
| 153 UmaType uma_type_; | 154 UmaType uma_type_; |
| 154 bool restore_focus_; | 155 bool restore_focus_; |
| 155 | 156 |
| 156 DISALLOW_COPY_AND_ASSIGN(SystemTrayItem); | 157 DISALLOW_COPY_AND_ASSIGN(SystemTrayItem); |
| 157 }; | 158 }; |
| 158 | 159 |
| 159 } // namespace ash | 160 } // namespace ash |
| 160 | 161 |
| 161 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ | 162 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ |
| OLD | NEW |