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/user/login_status.h" | 10 #include "ash/system/user/login_status.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 public: | 55 public: |
56 explicit WebNotificationTray( | 56 explicit WebNotificationTray( |
57 internal::StatusAreaWidget* status_area_widget); | 57 internal::StatusAreaWidget* status_area_widget); |
58 virtual ~WebNotificationTray(); | 58 virtual ~WebNotificationTray(); |
59 | 59 |
60 // Sets the height of the system tray from the edge of the work area so that | 60 // Sets the height of the system tray from the edge of the work area so that |
61 // the notification popups don't overlap with the tray. Passes 0 if no UI is | 61 // the notification popups don't overlap with the tray. Passes 0 if no UI is |
62 // shown in the system tray side. | 62 // shown in the system tray side. |
63 void SetSystemTrayHeight(int height); | 63 void SetSystemTrayHeight(int height); |
64 | 64 |
65 // Returns true if it should block the auto hide behavior of the launcher. | 65 // Returns true if it should block the auto hide behavior of the shelf. |
66 bool ShouldBlockLauncherAutoHide() const; | 66 bool ShouldBlockShelfAutoHide() const; |
67 | 67 |
68 // Returns true if the message center bubble is visible. | 68 // Returns true if the message center bubble is visible. |
69 bool IsMessageCenterBubbleVisible() const; | 69 bool IsMessageCenterBubbleVisible() const; |
70 | 70 |
71 // Returns true if the mouse is inside the notification bubble. | 71 // Returns true if the mouse is inside the notification bubble. |
72 bool IsMouseInNotificationBubble() const; | 72 bool IsMouseInNotificationBubble() const; |
73 | 73 |
74 // Shows the message center bubble. | 74 // Shows the message center bubble. |
75 void ShowMessageCenterBubble(); | 75 void ShowMessageCenterBubble(); |
76 | 76 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 178 |
179 // Observes the work area for |popup_collection_| and notifies to it. | 179 // Observes the work area for |popup_collection_| and notifies to it. |
180 scoped_ptr<internal::WorkAreaObserver> work_area_observer_; | 180 scoped_ptr<internal::WorkAreaObserver> work_area_observer_; |
181 | 181 |
182 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); | 182 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); |
183 }; | 183 }; |
184 | 184 |
185 } // namespace ash | 185 } // namespace ash |
186 | 186 |
187 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 187 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
OLD | NEW |