| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // Returns true if it should block the auto hide behavior of the launcher. | 67 // Returns true if it should block the auto hide behavior of the launcher. |
| 68 bool ShouldBlockLauncherAutoHide() const; | 68 bool ShouldBlockLauncherAutoHide() const; |
| 69 | 69 |
| 70 // Returns true if the message center bubble is visible. | 70 // Returns true if the message center bubble is visible. |
| 71 bool IsMessageCenterBubbleVisible() const; | 71 bool IsMessageCenterBubbleVisible() const; |
| 72 | 72 |
| 73 // Returns true if the mouse is inside the notification bubble. | 73 // Returns true if the mouse is inside the notification bubble. |
| 74 bool IsMouseInNotificationBubble() const; | 74 bool IsMouseInNotificationBubble() const; |
| 75 | 75 |
| 76 message_center::MessageCenter* message_center() { | 76 message_center::MessageCenter* message_center() { |
| 77 return message_center_; | 77 return message_center_.get(); |
| 78 } | 78 } |
| 79 | 79 |
| 80 // Overridden from TrayBackgroundView. | 80 // Overridden from TrayBackgroundView. |
| 81 virtual void SetShelfAlignment(ShelfAlignment alignment) OVERRIDE; | 81 virtual void SetShelfAlignment(ShelfAlignment alignment) OVERRIDE; |
| 82 virtual void AnchorUpdated() OVERRIDE; | 82 virtual void AnchorUpdated() OVERRIDE; |
| 83 virtual string16 GetAccessibleNameForTray() OVERRIDE; | 83 virtual string16 GetAccessibleNameForTray() OVERRIDE; |
| 84 virtual void HideBubbleWithView( | 84 virtual void HideBubbleWithView( |
| 85 const views::TrayBubbleView* bubble_view) OVERRIDE; | 85 const views::TrayBubbleView* bubble_view) OVERRIDE; |
| 86 virtual bool ClickedOutsideBubble() OVERRIDE; | 86 virtual bool ClickedOutsideBubble() OVERRIDE; |
| 87 | 87 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 } | 148 } |
| 149 | 149 |
| 150 message_center::QuietModeBubble* quiet_mode_bubble() const { | 150 message_center::QuietModeBubble* quiet_mode_bubble() const { |
| 151 return quiet_mode_bubble_.get(); | 151 return quiet_mode_bubble_.get(); |
| 152 } | 152 } |
| 153 | 153 |
| 154 // Testing accessors. | 154 // Testing accessors. |
| 155 message_center::MessageCenterBubble* GetMessageCenterBubbleForTest(); | 155 message_center::MessageCenterBubble* GetMessageCenterBubbleForTest(); |
| 156 message_center::MessagePopupBubble* GetPopupBubbleForTest(); | 156 message_center::MessagePopupBubble* GetPopupBubbleForTest(); |
| 157 | 157 |
| 158 message_center::MessageCenter* message_center_; | 158 scoped_ptr<message_center::MessageCenter> message_center_; |
| 159 scoped_ptr<internal::WebNotificationBubbleWrapper> message_center_bubble_; | 159 scoped_ptr<internal::WebNotificationBubbleWrapper> message_center_bubble_; |
| 160 scoped_ptr<internal::WebNotificationBubbleWrapper> popup_bubble_; | 160 scoped_ptr<internal::WebNotificationBubbleWrapper> popup_bubble_; |
| 161 scoped_ptr<message_center::QuietModeBubble> quiet_mode_bubble_; | 161 scoped_ptr<message_center::QuietModeBubble> quiet_mode_bubble_; |
| 162 views::ImageButton* button_; | 162 views::ImageButton* button_; |
| 163 bool show_message_center_on_unlock_; | 163 bool show_message_center_on_unlock_; |
| 164 | 164 |
| 165 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); | 165 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 } // namespace ash | 168 } // namespace ash |
| 169 | 169 |
| 170 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 170 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
| OLD | NEW |