| 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 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/system/tray/system_tray_bubble.h" | 9 #include "ash/system/tray/system_tray_bubble.h" |
| 10 #include "ash/system/tray/tray_background_view.h" | 10 #include "ash/system/tray/tray_background_view.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 // Returns a pointer to the system bubble or NULL if none. | 118 // Returns a pointer to the system bubble or NULL if none. |
| 119 internal::SystemTrayBubble* GetSystemBubble(); | 119 internal::SystemTrayBubble* GetSystemBubble(); |
| 120 | 120 |
| 121 // Returns true if any bubble is visible. | 121 // Returns true if any bubble is visible. |
| 122 bool IsAnyBubbleVisible() const; | 122 bool IsAnyBubbleVisible() const; |
| 123 | 123 |
| 124 // Returns true if the mouse is inside the notification bubble. | 124 // Returns true if the mouse is inside the notification bubble. |
| 125 bool IsMouseInNotificationBubble() const; | 125 bool IsMouseInNotificationBubble() const; |
| 126 | 126 |
| 127 // Closes system bubble and returns true if it did exist. |
| 128 bool CloseSystemBubble() const; |
| 129 |
| 127 // Accessors for testing. | 130 // Accessors for testing. |
| 128 | 131 |
| 129 // Returns true if the bubble exists. | 132 // Returns true if the bubble exists. |
| 130 bool CloseSystemBubbleForTest() const; | |
| 131 bool CloseNotificationBubbleForTest() const; | 133 bool CloseNotificationBubbleForTest() const; |
| 132 | 134 |
| 133 // Overridden from TrayBackgroundView. | 135 // Overridden from TrayBackgroundView. |
| 134 virtual void SetShelfAlignment(ShelfAlignment alignment) OVERRIDE; | 136 virtual void SetShelfAlignment(ShelfAlignment alignment) OVERRIDE; |
| 135 virtual void AnchorUpdated() OVERRIDE; | 137 virtual void AnchorUpdated() OVERRIDE; |
| 136 virtual base::string16 GetAccessibleNameForTray() OVERRIDE; | 138 virtual base::string16 GetAccessibleNameForTray() OVERRIDE; |
| 137 virtual void HideBubbleWithView( | 139 virtual void HideBubbleWithView( |
| 138 const views::TrayBubbleView* bubble_view) OVERRIDE; | 140 const views::TrayBubbleView* bubble_view) OVERRIDE; |
| 139 virtual bool ClickedOutsideBubble() OVERRIDE; | 141 virtual bool ClickedOutsideBubble() OVERRIDE; |
| 140 | 142 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 bool hide_notifications_; | 215 bool hide_notifications_; |
| 214 | 216 |
| 215 internal::TrayAccessibility* tray_accessibility_; // not owned | 217 internal::TrayAccessibility* tray_accessibility_; // not owned |
| 216 | 218 |
| 217 DISALLOW_COPY_AND_ASSIGN(SystemTray); | 219 DISALLOW_COPY_AND_ASSIGN(SystemTray); |
| 218 }; | 220 }; |
| 219 | 221 |
| 220 } // namespace ash | 222 } // namespace ash |
| 221 | 223 |
| 222 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ | 224 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ |
| OLD | NEW |