Chromium Code Reviews| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 65 // Returns the current tray bubble height or 0 if there is no bubble. | 65 // Returns the current tray bubble height or 0 if there is no bubble. |
| 66 int tray_bubble_height_for_test() const; | 66 int tray_bubble_height_for_test() const; |
| 67 | 67 |
| 68 // Returns true if it should block the auto hide behavior of the shelf. | 68 // Returns true if it should block the auto hide behavior of the shelf. |
| 69 bool ShouldBlockShelfAutoHide() const; | 69 bool ShouldBlockShelfAutoHide() const; |
| 70 | 70 |
| 71 // Returns true if the message center bubble is visible. | 71 // Returns true if the message center bubble is visible. |
| 72 bool IsMessageCenterBubbleVisible() const; | 72 bool IsMessageCenterBubbleVisible() const; |
| 73 | 73 |
| 74 // Shows the message center bubble. | 74 // Shows the message center bubble. |
| 75 void ShowMessageCenterBubble(); | 75 void ShowMessageCenterBubble(); |
|
msw
2017/07/12 05:04:53
Remove this redundant function, move its impl to S
minch1
2017/07/13 19:10:37
Done.
| |
| 76 | 76 |
| 77 // Called when the login status is changed. | 77 // Called when the login status is changed. |
| 78 void UpdateAfterLoginStatusChange(LoginStatus login_status); | 78 void UpdateAfterLoginStatusChange(LoginStatus login_status); |
| 79 | 79 |
| 80 // Overridden from TrayBackgroundView. | 80 // Overridden from TrayBackgroundView. |
| 81 void UpdateAfterShelfAlignmentChange() override; | 81 void UpdateAfterShelfAlignmentChange() override; |
| 82 void AnchorUpdated() override; | 82 void AnchorUpdated() override; |
| 83 base::string16 GetAccessibleNameForTray() override; | 83 base::string16 GetAccessibleNameForTray() override; |
| 84 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override; | 84 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override; |
| 85 void ClickedOutsideBubble() override; | 85 void ClickedOutsideBubble() override; |
| 86 bool PerformAction(const ui::Event& event) override; | |
| 87 bool HasBubble() override; | |
| 88 void CloseBubble() override; | |
| 89 void ShowBubble() override; | |
| 90 views::TrayBubbleView* GetBubbleView() override; | |
| 86 | 91 |
| 87 // Overridden from ActionableView. | 92 // ui::EventHandler: |
|
msw
2017/07/12 05:04:52
ditto
minch1
2017/07/13 19:10:37
Done.
| |
| 88 bool PerformAction(const ui::Event& event) override; | 93 void OnGestureEvent(ui::GestureEvent* event) override; |
| 89 | 94 |
| 90 // Overridden from views::TrayBubbleView::Delegate. | 95 // Overridden from views::TrayBubbleView::Delegate. |
| 91 void BubbleViewDestroyed() override; | 96 void BubbleViewDestroyed() override; |
| 92 void OnMouseEnteredView() override; | 97 void OnMouseEnteredView() override; |
| 93 void OnMouseExitedView() override; | 98 void OnMouseExitedView() override; |
| 94 void RegisterAccelerators(const std::vector<ui::Accelerator>& accelerators, | 99 void RegisterAccelerators(const std::vector<ui::Accelerator>& accelerators, |
| 95 views::TrayBubbleView* tray_bubble_view) override; | 100 views::TrayBubbleView* tray_bubble_view) override; |
| 96 void UnregisterAllAccelerators( | 101 void UnregisterAllAccelerators( |
| 97 views::TrayBubbleView* tray_bubble_view) override; | 102 views::TrayBubbleView* tray_bubble_view) override; |
| 98 base::string16 GetAccessibleNameForBubble() override; | 103 base::string16 GetAccessibleNameForBubble() override; |
| 99 bool ShouldEnableExtraKeyboardAccessibility() override; | 104 bool ShouldEnableExtraKeyboardAccessibility() override; |
| 100 void HideBubble(const views::TrayBubbleView* bubble_view) override; | 105 void HideBubble(const views::TrayBubbleView* bubble_view) override; |
| 106 bool ProcessGestureEventForBubble(ui::GestureEvent* event) override; | |
| 101 | 107 |
| 102 // Overridden from MessageCenterTrayDelegate. | 108 // Overridden from MessageCenterTrayDelegate. |
| 103 void OnMessageCenterTrayChanged() override; | 109 void OnMessageCenterTrayChanged() override; |
| 104 bool ShowMessageCenter() override; | 110 bool ShowMessageCenter() override; |
| 105 void HideMessageCenter() override; | 111 void HideMessageCenter() override; |
| 106 bool ShowPopups() override; | 112 bool ShowPopups() override; |
| 107 void HidePopups() override; | 113 void HidePopups() override; |
| 108 bool ShowNotifierSettings() override; | 114 bool ShowNotifierSettings() override; |
| 109 bool IsContextMenuEnabled() const override; | 115 bool IsContextMenuEnabled() const override; |
| 110 message_center::MessageCenterTray* GetMessageCenterTray() override; | 116 message_center::MessageCenterTray* GetMessageCenterTray() override; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 180 bool should_block_shelf_auto_hide_; | 186 bool should_block_shelf_auto_hide_; |
| 181 | 187 |
| 182 std::unique_ptr<AshPopupAlignmentDelegate> popup_alignment_delegate_; | 188 std::unique_ptr<AshPopupAlignmentDelegate> popup_alignment_delegate_; |
| 183 | 189 |
| 184 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); | 190 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); |
| 185 }; | 191 }; |
| 186 | 192 |
| 187 } // namespace ash | 193 } // namespace ash |
| 188 | 194 |
| 189 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 195 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
| OLD | NEW |