| Index: ui/views/bubble/bubble_delegate.h
|
| diff --git a/ui/views/bubble/bubble_delegate.h b/ui/views/bubble/bubble_delegate.h
|
| index fddfb1d269fc895111a51527232bddf6be81dd28..dd29da79bdfce68f26f1b407353a6a101a587dd8 100644
|
| --- a/ui/views/bubble/bubble_delegate.h
|
| +++ b/ui/views/bubble/bubble_delegate.h
|
| @@ -123,9 +123,16 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
|
| // Perform view initialization on the contents for bubble sizing.
|
| virtual void Init();
|
|
|
| - // Set the anchor view, this must be done before calling CreateBubble or Show.
|
| + // Set the anchor view, this (or set_anchor_point) must be done before
|
| + // calling CreateBubble or Show.
|
| void set_anchor_view(View* anchor_view) { anchor_view_ = anchor_view; }
|
|
|
| + // Sets the anchor point used in the absence of an anchor view. This
|
| + // (or set_anchor_view) must be set before calling CreateBubble or Show.
|
| + void set_anchor_point(gfx::Point anchor_point) {
|
| + anchor_point_ = anchor_point;
|
| + }
|
| +
|
| bool move_with_anchor() const { return move_with_anchor_; }
|
| void set_move_with_anchor(bool move_with_anchor) {
|
| move_with_anchor_ = move_with_anchor;
|
| @@ -157,6 +164,9 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
|
| View* anchor_view_;
|
| Widget* anchor_widget_;
|
|
|
| + // The anchor point used in the absence of an anchor view.
|
| + gfx::Point anchor_point_;
|
| +
|
| // If true, the bubble will re-anchor (and may resize) with |anchor_widget_|.
|
| bool move_with_anchor_;
|
|
|
|
|