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

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

Issue 2666803005: Position close buttons in bubbles based on a layout delegate constant. (Closed)
Patch Set: Review comments Created 3 years, 10 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 8eb0a06b0f4505e36d25363a3ef9ca50028e4e60..3d0106ef6b5557a71468184442e0ab6091974824 100644
--- a/chrome/browser/ui/views/chrome_views_delegate.cc
+++ b/chrome/browser/ui/views/chrome_views_delegate.cc
@@ -546,6 +546,11 @@ gfx::Insets ChromeViewsDelegate::GetDialogButtonInsets() const {
LayoutDelegate::Metric::DIALOG_BUTTON_MARGIN));
}
+int ChromeViewsDelegate::GetDialogCloseButtonMargin() const {
+ return LayoutDelegate::Get()->GetMetric(
+ LayoutDelegate::Metric::DIALOG_CLOSE_BUTTON_MARGIN);
+}
+
int ChromeViewsDelegate::GetDialogRelatedButtonHorizontalSpacing() const {
return LayoutDelegate::Get()->GetMetric(
LayoutDelegate::Metric::RELATED_BUTTON_HORIZONTAL_SPACING);
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.h ('k') | chrome/browser/ui/views/harmony/harmony_layout_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698