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

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

Issue 2640593002: Fix alignment of title/content on the OIB / Site Settings bubble. (Closed)
Patch Set: respond to comments Created 3 years, 11 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_dialog_delegate.h
diff --git a/ui/views/bubble/bubble_dialog_delegate.h b/ui/views/bubble/bubble_dialog_delegate.h
index efbfd4fb5c8beb4bd2cf6424c76b0d724872a201..ac934267eb2e7eca8feec531e3ff84889273f1a7 100644
--- a/ui/views/bubble/bubble_dialog_delegate.h
+++ b/ui/views/bubble/bubble_dialog_delegate.h
@@ -79,6 +79,9 @@ class VIEWS_EXPORT BubbleDialogDelegateView : public DialogDelegateView,
const gfx::Insets& margins() const { return margins_; }
void set_margins(const gfx::Insets& margins) { margins_ = margins; }
+ void set_title_margins(const gfx::Insets& title_margins) {
+ title_margins_ = 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; }
@@ -188,6 +191,10 @@ class VIEWS_EXPORT BubbleDialogDelegateView : public DialogDelegateView,
// The margins between the content and the inside of the border.
gfx::Insets margins_;
+ // The margins around the title.
+ // TODO(tapted): Investigate deleting this when MD is default.
+ gfx::Insets title_margins_;
+
// Insets applied to the |anchor_view_| bounds.
gfx::Insets anchor_view_insets_;
« no previous file with comments | « chrome/browser/ui/views/website_settings/website_settings_popup_view.cc ('k') | ui/views/bubble/bubble_dialog_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698