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

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

Issue 2103113003: Fix shelf layout when switching from left-aligned shelf to right-aligned shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698