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/power/power_supply_status.h" | 10 #include "ash/system/power/power_supply_status.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 // Hides the notification view for |item|. | 90 // Hides the notification view for |item|. |
91 void HideNotificationView(SystemTrayItem* item); | 91 void HideNotificationView(SystemTrayItem* item); |
92 | 92 |
93 // Updates the items when the login status of the system changes. | 93 // Updates the items when the login status of the system changes. |
94 void UpdateAfterLoginStatusChange(user::LoginStatus login_status); | 94 void UpdateAfterLoginStatusChange(user::LoginStatus login_status); |
95 | 95 |
96 // Updates the items when the shelf alignment changes. | 96 // Updates the items when the shelf alignment changes. |
97 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment); | 97 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment); |
98 | 98 |
| 99 // Temporarily hides/unhides the notification bubble. |
| 100 void SetHideNotifications(bool hidden); |
| 101 |
| 102 // Returns true if the primary bubble is visible. |
| 103 bool IsBubbleVisible() const; |
| 104 |
99 // Returns true if the launcher should show. | 105 // Returns true if the launcher should show. |
100 bool should_show_launcher() const { | 106 bool should_show_launcher() const { |
101 return bubble_.get() && should_show_launcher_; | 107 return bubble_.get() && should_show_launcher_; |
102 } | 108 } |
103 | 109 |
104 AccessibilityObserver* accessibility_observer() const { | 110 AccessibilityObserver* accessibility_observer() const { |
105 return accessibility_observer_; | 111 return accessibility_observer_; |
106 } | 112 } |
107 AudioObserver* audio_observer() const { | 113 AudioObserver* audio_observer() const { |
108 return audio_observer_; | 114 return audio_observer_; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 // See description agove getter. | 240 // See description agove getter. |
235 bool should_show_launcher_; | 241 bool should_show_launcher_; |
236 | 242 |
237 scoped_ptr<internal::SystemTrayLayerAnimationObserver> | 243 scoped_ptr<internal::SystemTrayLayerAnimationObserver> |
238 layer_animation_observer_; | 244 layer_animation_observer_; |
239 | 245 |
240 // Keep track of the default view height so that when we create detailed | 246 // Keep track of the default view height so that when we create detailed |
241 // views directly (e.g. from a notification) we know what height to use. | 247 // views directly (e.g. from a notification) we know what height to use. |
242 int default_bubble_height_; | 248 int default_bubble_height_; |
243 | 249 |
| 250 // Set to true when system notifications should be hidden (e.g. web |
| 251 // notification bubble is visible). |
| 252 bool hide_notifications_; |
| 253 |
244 DISALLOW_COPY_AND_ASSIGN(SystemTray); | 254 DISALLOW_COPY_AND_ASSIGN(SystemTray); |
245 }; | 255 }; |
246 | 256 |
247 } // namespace ash | 257 } // namespace ash |
248 | 258 |
249 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ | 259 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ |
OLD | NEW |