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

Unified Diff: chrome/browser/ui/views/harmony/harmony_layout_delegate.cc

Issue 2666803005: Position close buttons in bubbles based on a layout delegate constant. (Closed)
Patch Set: Remove extraneous brace 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: chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
diff --git a/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc b/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
index 5d10c489fc21abd8e4b2aee659818f12cfefcfb7..9003e469601a9348ba340130e11af79340aa9b66 100644
--- a/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
+++ b/chrome/browser/ui/views/harmony/harmony_layout_delegate.cc
@@ -21,6 +21,8 @@ int HarmonyLayoutDelegate::GetMetric(Metric metric) const {
return 0;
case Metric::DIALOG_BUTTON_MARGIN:
return kHarmonyLayoutUnit;
+ case Metric::DIALOG_CLOSE_BUTTON_MARGIN:
+ return kHarmonyLayoutUnit / 2;
case Metric::PANEL_CONTENT_MARGIN:
return kHarmonyLayoutUnit;
case Metric::RELATED_BUTTON_HORIZONTAL_SPACING:

Powered by Google App Engine
This is Rietveld 408576698