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

Unified Diff: ui/views/bubble/tray_bubble_view.h

Issue 2831233003: Remove ShouldBlockShelfAutoHide(). (Closed)
Patch Set: this won't work until https://codereview.chromium.org/2834943002 lands Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/bubble/tray_bubble_view.h
diff --git a/ui/views/bubble/tray_bubble_view.h b/ui/views/bubble/tray_bubble_view.h
index 8de9c3053ed8a920002c80f5dd90987bff1ae8f3..ce396c9054807e5cbf44f8d220f40e55ff02f994 100644
--- a/ui/views/bubble/tray_bubble_view.h
+++ b/ui/views/bubble/tray_bubble_view.h
@@ -28,8 +28,8 @@ class TrayBubbleContentMask;
// Ash status area). Mostly this handles custom anchor location and arrow and
// border rendering. This also has its own delegate for handling mouse events
// and other implementation specific details.
-class VIEWS_EXPORT TrayBubbleView : public views::BubbleDialogDelegateView,
- public views::MouseWatcherListener {
+class VIEWS_EXPORT TrayBubbleView : public BubbleDialogDelegateView,
+ public MouseWatcherListener {
public:
// AnchorAlignment determines to which side of the anchor the bubble will
// align itself.
@@ -93,6 +93,9 @@ class VIEWS_EXPORT TrayBubbleView : public views::BubbleDialogDelegateView,
~TrayBubbleView() override;
+ // Returns whether a tray bubble is active.
+ static bool IsATrayBubbleOpen();
+
// Sets up animations, and show the bubble. Must occur after CreateBubble()
// is called.
void InitializeAndShowBubble();
@@ -130,6 +133,7 @@ class VIEWS_EXPORT TrayBubbleView : public views::BubbleDialogDelegateView,
// Overridden from views::BubbleDialogDelegateView.
void OnBeforeBubbleWidgetInit(Widget::InitParams* params,
Widget* bubble_widget) const override;
+ void OnWidgetClosing(Widget* widget) override;
// Overridden from views::View.
gfx::Size GetPreferredSize() const override;

Powered by Google App Engine
This is Rietveld 408576698