| Index: ui/views/bubble/bubble_delegate.h
|
| diff --git a/ui/views/bubble/bubble_delegate.h b/ui/views/bubble/bubble_delegate.h
|
| index c534273dd6f135982601a1f6b895b31b0d157b71..da0cc98083f3b38c441ea123cecf8f59b052cabf 100644
|
| --- a/ui/views/bubble/bubble_delegate.h
|
| +++ b/ui/views/bubble/bubble_delegate.h
|
| @@ -45,6 +45,9 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
|
| virtual View* GetContentsView() OVERRIDE;
|
| virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE;
|
|
|
| + // WidgetDelegateView overrides:
|
| + virtual gfx::Size GetPreferredSize() OVERRIDE;
|
| +
|
| // WidgetObserver overrides:
|
| virtual void OnWidgetDestroying(Widget* widget) OVERRIDE;
|
| virtual void OnWidgetVisibilityChanged(Widget* widget, bool visible) OVERRIDE;
|
| @@ -79,6 +82,10 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
|
| const gfx::Insets& margins() const { return margins_; }
|
| void set_margins(const gfx::Insets& margins) { margins_ = margins; }
|
|
|
| + void set_match_title_margins(bool match_title_margins) {
|
| + match_title_margins_ = match_title_margins;
|
| + }
|
| +
|
| const gfx::Insets& anchor_view_insets() const { return anchor_view_insets_; }
|
| void set_anchor_view_insets(const gfx::Insets& i) { anchor_view_insets_ = i; }
|
|
|
| @@ -191,6 +198,9 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
|
| // The margins between the content and the inside of the border.
|
| gfx::Insets margins_;
|
|
|
| + // Whether this bubble should match the bubble frame view's title margins.
|
| + bool match_title_margins_;
|
| +
|
| // Insets applied to the |anchor_view_| bounds.
|
| gfx::Insets anchor_view_insets_;
|
|
|
|
|