| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 bool PerformAction(const ui::Event& event) override; | 90 bool PerformAction(const ui::Event& event) override; |
| 91 | 91 |
| 92 // Overridden from views::TrayBubbleView::Delegate. | 92 // Overridden from views::TrayBubbleView::Delegate. |
| 93 void BubbleViewDestroyed() override; | 93 void BubbleViewDestroyed() override; |
| 94 void OnMouseEnteredView() override; | 94 void OnMouseEnteredView() override; |
| 95 void OnMouseExitedView() override; | 95 void OnMouseExitedView() override; |
| 96 base::string16 GetAccessibleNameForBubble() override; | 96 base::string16 GetAccessibleNameForBubble() override; |
| 97 gfx::Rect GetAnchorRect(views::Widget* anchor_widget, | 97 gfx::Rect GetAnchorRect(views::Widget* anchor_widget, |
| 98 AnchorType anchor_type, | 98 AnchorType anchor_type, |
| 99 AnchorAlignment anchor_alignment) const override; | 99 AnchorAlignment anchor_alignment) const override; |
| 100 void OnBeforeBubbleWidgetInit( |
| 101 views::Widget* anchor_widget, |
| 102 views::Widget* bubble_widget, |
| 103 views::Widget::InitParams* params) const override; |
| 100 void HideBubble(const views::TrayBubbleView* bubble_view) override; | 104 void HideBubble(const views::TrayBubbleView* bubble_view) override; |
| 101 | 105 |
| 102 // Overridden from ButtonListener. | 106 // Overridden from ButtonListener. |
| 103 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 107 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| 104 | 108 |
| 105 // Overridden from MessageCenterTrayDelegate. | 109 // Overridden from MessageCenterTrayDelegate. |
| 106 void OnMessageCenterTrayChanged() override; | 110 void OnMessageCenterTrayChanged() override; |
| 107 bool ShowMessageCenter() override; | 111 bool ShowMessageCenter() override; |
| 108 void HideMessageCenter() override; | 112 void HideMessageCenter() override; |
| 109 bool ShowPopups() override; | 113 bool ShowPopups() override; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 bool should_block_shelf_auto_hide_; | 185 bool should_block_shelf_auto_hide_; |
| 182 | 186 |
| 183 std::unique_ptr<AshPopupAlignmentDelegate> popup_alignment_delegate_; | 187 std::unique_ptr<AshPopupAlignmentDelegate> popup_alignment_delegate_; |
| 184 | 188 |
| 185 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); | 189 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); |
| 186 }; | 190 }; |
| 187 | 191 |
| 188 } // namespace ash | 192 } // namespace ash |
| 189 | 193 |
| 190 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 194 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
| OLD | NEW |