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

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

Issue 21668003: Implement newly saved card bubble for realz and update generated card bubble to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 4 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/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_;

Powered by Google App Engine
This is Rietveld 408576698