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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 // Shows a notification for this item. | 95 // Shows a notification for this item. |
96 void ShowNotificationView(); | 96 void ShowNotificationView(); |
97 | 97 |
98 // Hides the notification for this item. | 98 // Hides the notification for this item. |
99 void HideNotificationView(); | 99 void HideNotificationView(); |
100 | 100 |
101 // Returns true if item should hide the arrow. | 101 // Returns true if item should hide the arrow. |
102 virtual bool ShouldHideArrow() const; | 102 virtual bool ShouldHideArrow() const; |
103 | 103 |
104 // Returns true if this item needs to force the launcher to be visible when | 104 // Returns true if this item needs to force the shelf to be visible when |
105 // the launcher is in the auto-hide state. Default is true. | 105 // the shelf is in the auto-hide state. Default is true. |
106 virtual bool ShouldShowLauncher() const; | 106 virtual bool ShouldShowShelf() const; |
107 | 107 |
108 // Returns the system tray that this item belongs to. | 108 // Returns the system tray that this item belongs to. |
109 SystemTray* system_tray() const { return system_tray_; } | 109 SystemTray* system_tray() const { return system_tray_; } |
110 | 110 |
111 bool restore_focus() const { return restore_focus_; } | 111 bool restore_focus() const { return restore_focus_; } |
112 void set_restore_focus(bool restore_focus) { | 112 void set_restore_focus(bool restore_focus) { |
113 restore_focus_ = restore_focus; | 113 restore_focus_ = restore_focus; |
114 } | 114 } |
115 | 115 |
116 private: | 116 private: |
117 SystemTray* system_tray_; | 117 SystemTray* system_tray_; |
118 bool restore_focus_; | 118 bool restore_focus_; |
119 | 119 |
120 DISALLOW_COPY_AND_ASSIGN(SystemTrayItem); | 120 DISALLOW_COPY_AND_ASSIGN(SystemTrayItem); |
121 }; | 121 }; |
122 | 122 |
123 } // namespace ash | 123 } // namespace ash |
124 | 124 |
125 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ | 125 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ |
OLD | NEW |