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_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 5 #ifndef ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
6 #define ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 6 #define ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/system/tray/tray_background_view.h" | 9 #include "ash/system/tray/tray_background_view.h" |
10 #include "ash/system/tray/tray_views.h" | 10 #include "ash/system/tray/tray_views.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 public: | 57 public: |
58 explicit WebNotificationTray(internal::StatusAreaWidget* status_area_widget); | 58 explicit WebNotificationTray(internal::StatusAreaWidget* status_area_widget); |
59 virtual ~WebNotificationTray(); | 59 virtual ~WebNotificationTray(); |
60 | 60 |
61 // Set whether or not the popup notifications should be hidden. | 61 // Set whether or not the popup notifications should be hidden. |
62 void SetHidePopupBubble(bool hide); | 62 void SetHidePopupBubble(bool hide); |
63 | 63 |
64 // Updates tray visibility login status of the system changes. | 64 // Updates tray visibility login status of the system changes. |
65 void UpdateAfterLoginStatusChange(user::LoginStatus login_status); | 65 void UpdateAfterLoginStatusChange(user::LoginStatus login_status); |
66 | 66 |
| 67 // Returns true if it should block the auto hide behavior of the launcher. |
| 68 bool ShouldBlockLauncherAutoHide() const; |
| 69 |
67 // Returns true if the message center bubble is visible. | 70 // Returns true if the message center bubble is visible. |
68 bool IsMessageCenterBubbleVisible() const; | 71 bool IsMessageCenterBubbleVisible() const; |
69 | 72 |
70 // Returns true if the mouse is inside the notification bubble. | 73 // Returns true if the mouse is inside the notification bubble. |
71 bool IsMouseInNotificationBubble() const; | 74 bool IsMouseInNotificationBubble() const; |
72 | 75 |
73 message_center::MessageCenter* message_center() { | 76 message_center::MessageCenter* message_center() { |
74 return message_center_.get(); | 77 return message_center_.get(); |
75 } | 78 } |
76 | 79 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 scoped_ptr<message_center::QuietModeBubble> quiet_mode_bubble_; | 161 scoped_ptr<message_center::QuietModeBubble> quiet_mode_bubble_; |
159 views::ImageButton* button_; | 162 views::ImageButton* button_; |
160 bool show_message_center_on_unlock_; | 163 bool show_message_center_on_unlock_; |
161 | 164 |
162 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); | 165 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); |
163 }; | 166 }; |
164 | 167 |
165 } // namespace ash | 168 } // namespace ash |
166 | 169 |
167 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 170 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
OLD | NEW |