| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 // Returns true if it should block the auto hide behavior of the launcher. | 57 // Returns true if it should block the auto hide behavior of the launcher. |
| 58 bool ShouldBlockLauncherAutoHide() const; | 58 bool ShouldBlockLauncherAutoHide() const; |
| 59 | 59 |
| 60 // Returns true if the message center bubble is visible. | 60 // Returns true if the message center bubble is visible. |
| 61 bool IsMessageCenterBubbleVisible() const; | 61 bool IsMessageCenterBubbleVisible() const; |
| 62 | 62 |
| 63 // Returns true if the mouse is inside the notification bubble. | 63 // Returns true if the mouse is inside the notification bubble. |
| 64 bool IsMouseInNotificationBubble() const; | 64 bool IsMouseInNotificationBubble() const; |
| 65 | 65 |
| 66 // Shows the message center bubble. |
| 67 void ShowMessageCenterBubble(); |
| 68 |
| 66 // Overridden from TrayBackgroundView. | 69 // Overridden from TrayBackgroundView. |
| 67 virtual void SetShelfAlignment(ShelfAlignment alignment) OVERRIDE; | 70 virtual void SetShelfAlignment(ShelfAlignment alignment) OVERRIDE; |
| 68 virtual void AnchorUpdated() OVERRIDE; | 71 virtual void AnchorUpdated() OVERRIDE; |
| 69 virtual string16 GetAccessibleNameForTray() OVERRIDE; | 72 virtual string16 GetAccessibleNameForTray() OVERRIDE; |
| 70 virtual void HideBubbleWithView( | 73 virtual void HideBubbleWithView( |
| 71 const views::TrayBubbleView* bubble_view) OVERRIDE; | 74 const views::TrayBubbleView* bubble_view) OVERRIDE; |
| 72 virtual bool ClickedOutsideBubble() OVERRIDE; | 75 virtual bool ClickedOutsideBubble() OVERRIDE; |
| 73 | 76 |
| 74 // Overridden from internal::ActionableView. | 77 // Overridden from internal::ActionableView. |
| 75 virtual bool PerformAction(const ui::Event& event) OVERRIDE; | 78 virtual bool PerformAction(const ui::Event& event) OVERRIDE; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // Queries login status and the status area widget to determine visibility of | 115 // Queries login status and the status area widget to determine visibility of |
| 113 // the message center. | 116 // the message center. |
| 114 bool ShouldShowMessageCenter(); | 117 bool ShouldShowMessageCenter(); |
| 115 | 118 |
| 116 // Returns true if it should show the quiet mode bubble. | 119 // Returns true if it should show the quiet mode bubble. |
| 117 bool ShouldShowQuietModeBubble(const ui::Event& event); | 120 bool ShouldShowQuietModeBubble(const ui::Event& event); |
| 118 | 121 |
| 119 // Shows the quiet mode bubble. | 122 // Shows the quiet mode bubble. |
| 120 void ShowQuietModeBubble(); | 123 void ShowQuietModeBubble(); |
| 121 | 124 |
| 122 | |
| 123 internal::WebNotificationBubbleWrapper* message_center_bubble() const { | 125 internal::WebNotificationBubbleWrapper* message_center_bubble() const { |
| 124 return message_center_bubble_.get(); | 126 return message_center_bubble_.get(); |
| 125 } | 127 } |
| 126 | 128 |
| 127 internal::WebNotificationBubbleWrapper* popup_bubble() const { | 129 internal::WebNotificationBubbleWrapper* popup_bubble() const { |
| 128 return popup_bubble_.get(); | 130 return popup_bubble_.get(); |
| 129 } | 131 } |
| 130 | 132 |
| 131 message_center::QuietModeBubble* quiet_mode_bubble() const { | 133 message_center::QuietModeBubble* quiet_mode_bubble() const { |
| 132 return quiet_mode_bubble_.get(); | 134 return quiet_mode_bubble_.get(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 144 views::ImageButton* button_; | 146 views::ImageButton* button_; |
| 145 | 147 |
| 146 bool show_message_center_on_unlock_; | 148 bool show_message_center_on_unlock_; |
| 147 | 149 |
| 148 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); | 150 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); |
| 149 }; | 151 }; |
| 150 | 152 |
| 151 } // namespace ash | 153 } // namespace ash |
| 152 | 154 |
| 153 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 155 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
| OLD | NEW |