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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 void ClickedOutsideBubble() override; | 92 void ClickedOutsideBubble() override; |
93 | 93 |
94 // Overridden from ActionableView. | 94 // Overridden from ActionableView. |
95 bool PerformAction(const ui::Event& event) override; | 95 bool PerformAction(const ui::Event& event) override; |
96 | 96 |
97 // Overridden from views::TrayBubbleView::Delegate. | 97 // Overridden from views::TrayBubbleView::Delegate. |
98 void BubbleViewDestroyed() override; | 98 void BubbleViewDestroyed() override; |
99 void OnMouseEnteredView() override; | 99 void OnMouseEnteredView() override; |
100 void OnMouseExitedView() override; | 100 void OnMouseExitedView() override; |
101 base::string16 GetAccessibleNameForBubble() override; | 101 base::string16 GetAccessibleNameForBubble() override; |
102 gfx::Rect GetAnchorRect(views::Widget* anchor_widget, | |
103 AnchorType anchor_type, | |
104 AnchorAlignment anchor_alignment) const override; | |
105 void OnBeforeBubbleWidgetInit( | 102 void OnBeforeBubbleWidgetInit( |
106 views::Widget* anchor_widget, | 103 views::Widget* anchor_widget, |
107 views::Widget* bubble_widget, | 104 views::Widget* bubble_widget, |
108 views::Widget::InitParams* params) const override; | 105 views::Widget::InitParams* params) const override; |
109 void HideBubble(const views::TrayBubbleView* bubble_view) override; | 106 void HideBubble(const views::TrayBubbleView* bubble_view) override; |
110 | 107 |
111 // Overridden from MessageCenterTrayDelegate. | 108 // Overridden from MessageCenterTrayDelegate. |
112 void OnMessageCenterTrayChanged() override; | 109 void OnMessageCenterTrayChanged() override; |
113 bool ShowMessageCenter() override; | 110 bool ShowMessageCenter() override; |
114 void HideMessageCenter() override; | 111 void HideMessageCenter() override; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 bool should_block_shelf_auto_hide_; | 190 bool should_block_shelf_auto_hide_; |
194 | 191 |
195 std::unique_ptr<AshPopupAlignmentDelegate> popup_alignment_delegate_; | 192 std::unique_ptr<AshPopupAlignmentDelegate> popup_alignment_delegate_; |
196 | 193 |
197 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); | 194 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); |
198 }; | 195 }; |
199 | 196 |
200 } // namespace ash | 197 } // namespace ash |
201 | 198 |
202 #endif // ASH_COMMON_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 199 #endif // ASH_COMMON_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
OLD | NEW |