Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Side by Side Diff: ash/common/system/web_notification/web_notification_tray.h

Issue 2491033006: Adjust positioning of cros tray bubbles. (Closed)
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ash/common/system/tray/tray_constants.cc ('k') | ash/common/system/web_notification/web_notification_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698