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

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

Issue 2779973003: views: fold layout_utils::CreatePanelLayout into GridLayout::CreatePanel (Closed)
Patch Set: remove old DEPS entry 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
« no previous file with comments | « chrome/browser/ui/views/certificate_selector.cc ('k') | chrome/browser/ui/views/collected_cookies_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cba7d894e4a81b55a41dbb03be52cf1b9b9a0fe2..34b69dc2d79a051c1921bbe31f5dd95979107e08 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));
case views::InsetsMetric::VECTOR_IMAGE_BUTTON_PADDING:
return gfx::Insets(layout_delegate->GetMetric(
LayoutDelegate::Metric::VECTOR_IMAGE_BUTTON_PADDING));
« no previous file with comments | « chrome/browser/ui/views/certificate_selector.cc ('k') | chrome/browser/ui/views/collected_cookies_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698