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_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 5 #ifndef ASH_SYSTEM_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
6 #define ASH_SYSTEM_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 6 #define ASH_SYSTEM_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/user/login_status.h" | 10 #include "ash/system/user/login_status.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 109 |
110 // Show a single notification bubble for the most recent notification. | 110 // Show a single notification bubble for the most recent notification. |
111 void ShowNotificationBubble(); | 111 void ShowNotificationBubble(); |
112 | 112 |
113 // Hide the single notification bubble if visible. | 113 // Hide the single notification bubble if visible. |
114 void HideNotificationBubble(); | 114 void HideNotificationBubble(); |
115 | 115 |
116 // Updates tray visibility login status of the system changes. | 116 // Updates tray visibility login status of the system changes. |
117 void UpdateAfterLoginStatusChange(user::LoginStatus login_status); | 117 void UpdateAfterLoginStatusChange(user::LoginStatus login_status); |
118 | 118 |
| 119 // Returns true if the message center bubble is visible. |
| 120 bool IsMessageCenterBubbleVisible() const; |
| 121 |
| 122 // Returns true if the mouse is inside the notification bubble. |
| 123 bool IsMouseInNotificationBubble() const; |
| 124 |
119 // Overridden from TrayBackgroundView. | 125 // Overridden from TrayBackgroundView. |
120 virtual void SetShelfAlignment(ShelfAlignment alignment) OVERRIDE; | 126 virtual void SetShelfAlignment(ShelfAlignment alignment) OVERRIDE; |
121 virtual void AnchorUpdated() OVERRIDE; | 127 virtual void AnchorUpdated() OVERRIDE; |
122 | 128 |
123 // Overridden from internal::ActionableView. | 129 // Overridden from internal::ActionableView. |
124 virtual bool PerformAction(const ui::Event& event) OVERRIDE; | 130 virtual bool PerformAction(const ui::Event& event) OVERRIDE; |
125 | 131 |
126 protected: | 132 protected: |
127 // Send a remove request to the delegate. | 133 // Send a remove request to the delegate. |
128 void SendRemoveNotification(const std::string& id); | 134 void SendRemoveNotification(const std::string& id); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 views::Label* count_label_; | 173 views::Label* count_label_; |
168 Delegate* delegate_; | 174 Delegate* delegate_; |
169 bool show_message_center_on_unlock_; | 175 bool show_message_center_on_unlock_; |
170 | 176 |
171 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); | 177 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); |
172 }; | 178 }; |
173 | 179 |
174 } // namespace ash | 180 } // namespace ash |
175 | 181 |
176 #endif // ASH_SYSTEM_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 182 #endif // ASH_SYSTEM_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
OLD | NEW |