Index: chrome/browser/ui/views/website_settings/website_settings_popup_view.cc |
diff --git a/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc b/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc |
index a324f0a761a3d812f912f62f2b9daedaac416a0e..dfbe5f8c8294e16707f2f014af2285e4a090a359 100644 |
--- a/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc |
+++ b/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc |
@@ -173,6 +173,9 @@ class InternalPageInfoPopupView : public views::BubbleDialogDelegateView { |
private: |
friend class WebsiteSettingsPopupView; |
+ // Used around icon and inside bubble border. |
+ const int kSpacing = 12; |
Peter Kasting
2017/01/06 02:27:11
Nit: constexpr
Evan Stade
2017/01/06 20:20:20
Done.
|
+ |
DISALLOW_COPY_AND_ASSIGN(InternalPageInfoPopupView); |
}; |
@@ -354,7 +357,6 @@ InternalPageInfoPopupView::InternalPageInfoPopupView( |
set_anchor_view_insets(gfx::Insets( |
GetLayoutConstant(LOCATION_BAR_BUBBLE_ANCHOR_VERTICAL_INSET), 0)); |
- const int kSpacing = 16; |
SetLayoutManager(new views::BoxLayout(views::BoxLayout::kHorizontal, kSpacing, |
kSpacing, kSpacing)); |
set_margins(gfx::Insets()); |
@@ -379,9 +381,9 @@ views::NonClientFrameView* InternalPageInfoPopupView::CreateNonClientFrameView( |
views::Widget* widget) { |
views::BubbleFrameView* frame = static_cast<views::BubbleFrameView*>( |
BubbleDialogDelegateView::CreateNonClientFrameView(widget)); |
- // 16px padding + half of icon width comes out to 24px. |
+ // Padding around icon + half of icon width. |
frame->bubble_border()->set_arrow_offset( |
- 24 + frame->bubble_border()->GetBorderThickness()); |
+ kSpacing + 8 + frame->bubble_border()->GetBorderThickness()); |
Peter Kasting
2017/01/06 02:27:11
Is it possible to compute this without hardcoding
Evan Stade
2017/01/06 20:20:20
I don't think the contents will have been laid out
|
return frame; |
} |