Lines Matching defs:Bubble
9 #include "chrome/browser/ui/views/bubble/bubble_border.h"
20 // Bubble is used to display an arbitrary view above all other windows.
21 // Think of Bubble as a tooltip that allows you to embed an arbitrary view
22 // in the tooltip. Additionally the Bubble renders an arrow pointing at
23 // the region the info bubble is providing the information about.
25 // To use an Bubble, invoke Show() and it'll take care of the rest. The Bubble
33 class Bubble;
49 // Called when the Bubble is closing and is about to be deleted.
52 virtual void BubbleClosing(Bubble* bubble, bool closed_by_escape) = 0;
54 // Whether the Bubble should be closed when the Esc key is pressed.
57 // Whether the Bubble should fade in when opening. When trying to determine
58 // whether to use FadeIn, consider whether the bubble is shown as a direct
59 // result of a user action or not. For example, if the bubble is being shown
61 // the bubble appears as a notification that something happened in the
70 // WidgetFoo subclass into a separate class that calls into Bubble.
71 // That way Bubble has no (or very few) ifdefs.
72 class Bubble
81 // Shows the Bubble.
83 // |contents| are the contents shown in the bubble.
84 // |position_relative_to| is a rect in screen coordinates at which the Bubble
86 // Show() takes ownership of |contents| and deletes the created Bubble when
87 // another window is activated. You can explicitly close the bubble by
89 // |arrow_location| specifies preferred bubble alignment.
91 // - Be notified when the Bubble is closed.
92 // - Prevent the Bubble from being closed when the Escape key is
94 static Bubble* Show(views::Widget* parent,
101 // Shows the Bubble without grabbing the focus. Others are the same as
104 // window manager to continue showing the bubble even while the screen is
106 static Bubble* ShowFocusless(views::Widget* parent,
114 // Resizes and potentially moves the Bubble to best accommodate the
118 // Whether the Bubble should fade away when it closes. Generally speaking,
119 // we use FadeOut when the user selects something within the bubble that
120 // causes the bubble to dismiss. We don't use it when the bubble gets
121 // deactivated as a result of clicking outside the bubble.
136 Bubble();
138 Bubble(views::WidgetGtk::Type type, bool show_while_screen_is_locked);
140 virtual ~Bubble();
142 // Creates the Bubble.
149 // Instantiates and returns the BorderContents this Bubble should use.
194 // The animation used to fade the bubble out.
197 // The current visibility status of the bubble.
200 // Whether to fade away when the bubble closes.
214 DISALLOW_COPY_AND_ASSIGN(Bubble);