| Index: ui/views/bubble/bubble_delegate.h
|
| diff --git a/ui/views/bubble/bubble_delegate.h b/ui/views/bubble/bubble_delegate.h
|
| index dff9bd4506f9968727d5a55501ecd05f27d3b112..2748020ffaae244f0f072016097a121d30c15778 100644
|
| --- a/ui/views/bubble/bubble_delegate.h
|
| +++ b/ui/views/bubble/bubble_delegate.h
|
| @@ -144,8 +144,12 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
|
| virtual void Init();
|
|
|
| // Set the anchor view or rect; set these before CreateBubble or Show.
|
| + // If an |anchor_view| is given the |anchor_rect| will be ignored, but an
|
| + // |anchor_offset| can be supplied to offset the final coordinates. This is
|
| + // especially needed when |move_with_anchor_| gets set.
|
| void set_anchor_view(View* anchor_view) { anchor_view_ = anchor_view; }
|
| void set_anchor_rect(const gfx::Rect& rect) { anchor_rect_ = rect; }
|
| + void set_anchor_offset(const gfx::Point& offset) {anchor_offset_ = offset; }
|
|
|
| // Resize and potentially move the bubble to fit the content's preferred size.
|
| void SizeToContents();
|
| @@ -181,6 +185,9 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
|
| // The anchor rect used in the absence of an anchor view.
|
| gfx::Rect anchor_rect_;
|
|
|
| + // An anchor offset which will get added to the |anchor_view_|'s location.
|
| + gfx::Point anchor_offset_;
|
| +
|
| // If true, the bubble will re-anchor (and may resize) with |anchor_widget_|.
|
| bool move_with_anchor_;
|
|
|
|
|