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

Unified Diff: chrome/browser/ui/views/chrome_views_delegate.cc

Issue 2779973003: views: fold layout_utils::CreatePanelLayout into GridLayout::CreatePanel (Closed)
Patch Set: add some namespaces Created 3 years, 9 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: chrome/browser/ui/views/chrome_views_delegate.cc
diff --git a/chrome/browser/ui/views/chrome_views_delegate.cc b/chrome/browser/ui/views/chrome_views_delegate.cc
index 9f5c82dc86c4fd8a387099e21c780b3199af7ed9..bfedf22bbf8e6e5f08a93a86cfe90110ee751206 100644
--- a/chrome/browser/ui/views/chrome_views_delegate.cc
+++ b/chrome/browser/ui/views/chrome_views_delegate.cc
@@ -231,6 +231,11 @@ gfx::Insets ChromeViewsDelegate::GetInsetsMetric(
case views::InsetsMetric::BUBBLE_DIALOG:
return gfx::Insets(layout_delegate->GetMetric(
LayoutDelegate::Metric::PANEL_CONTENT_MARGIN));
+ case views::InsetsMetric::PANEL:
+ return gfx::Insets(layout_delegate->GetMetric(
+ LayoutDelegate::Metric::PANEL_CONTENT_MARGIN),
+ layout_delegate->GetMetric(
+ LayoutDelegate::Metric::DIALOG_BUTTON_MARGIN));
}
NOTREACHED();
return gfx::Insets();

Powered by Google App Engine
This is Rietveld 408576698