| 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_COMMON_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 5 #ifndef ASH_COMMON_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
| 6 #define ASH_COMMON_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 6 #define ASH_COMMON_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // Returns true if the mouse is inside the notification bubble. | 76 // Returns true if the mouse is inside the notification bubble. |
| 77 bool IsMouseInNotificationBubble() const; | 77 bool IsMouseInNotificationBubble() const; |
| 78 | 78 |
| 79 // Shows the message center bubble. | 79 // Shows the message center bubble. |
| 80 void ShowMessageCenterBubble(); | 80 void ShowMessageCenterBubble(); |
| 81 | 81 |
| 82 // Called when the login status is changed. | 82 // Called when the login status is changed. |
| 83 void UpdateAfterLoginStatusChange(LoginStatus login_status); | 83 void UpdateAfterLoginStatusChange(LoginStatus login_status); |
| 84 | 84 |
| 85 // Overridden from TrayBackgroundView. | 85 // Overridden from TrayBackgroundView. |
| 86 void SetShelfAlignment(ShelfAlignment alignment) override; | 86 void SetShelfAlignment(ShelfAlignment alignment, |
| 87 const gfx::Insets& insets) override; |
| 87 void AnchorUpdated() override; | 88 void AnchorUpdated() override; |
| 88 base::string16 GetAccessibleNameForTray() override; | 89 base::string16 GetAccessibleNameForTray() override; |
| 89 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override; | 90 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override; |
| 90 void ClickedOutsideBubble() override; | 91 void ClickedOutsideBubble() override; |
| 91 | 92 |
| 92 // Overridden from ActionableView. | 93 // Overridden from ActionableView. |
| 93 bool PerformAction(const ui::Event& event) override; | 94 bool PerformAction(const ui::Event& event) override; |
| 94 | 95 |
| 95 // Overridden from views::TrayBubbleView::Delegate. | 96 // Overridden from views::TrayBubbleView::Delegate. |
| 96 void BubbleViewDestroyed() override; | 97 void BubbleViewDestroyed() override; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 bool should_block_shelf_auto_hide_; | 191 bool should_block_shelf_auto_hide_; |
| 191 | 192 |
| 192 std::unique_ptr<AshPopupAlignmentDelegate> popup_alignment_delegate_; | 193 std::unique_ptr<AshPopupAlignmentDelegate> popup_alignment_delegate_; |
| 193 | 194 |
| 194 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); | 195 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); |
| 195 }; | 196 }; |
| 196 | 197 |
| 197 } // namespace ash | 198 } // namespace ash |
| 198 | 199 |
| 199 #endif // ASH_COMMON_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 200 #endif // ASH_COMMON_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
| OLD | NEW |