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

Unified Diff: ui/views/bubble/bubble_frame_view.cc

Issue 2696263002: Refactor ViewsDelegate and MD-ify the icon-to-text spacing for checkbox and radiobutton (Closed)
Patch Set: Use 'related control spacing' constant for icon-to-text spacing 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: ui/views/bubble/bubble_frame_view.cc
diff --git a/ui/views/bubble/bubble_frame_view.cc b/ui/views/bubble/bubble_frame_view.cc
index 14f5622aba174aeff0115960fd7b8cb22cf925a6..a8220bc7a0771f400516dfc07091f7e35abf86ca 100644
--- a/ui/views/bubble/bubble_frame_view.cc
+++ b/ui/views/bubble/bubble_frame_view.cc
@@ -314,8 +314,8 @@ void BubbleFrameView::Layout() {
return;
// The close button is positioned somewhat closer to the edge of the bubble.
- const int close_margin =
- ViewsDelegate::GetInstance()->GetDialogCloseButtonMargin();
+ const int close_margin = ViewsDelegate::GetInstance()->GetDistanceMetric(
+ DistanceMetric::CLOSE_BUTTON_MARGIN);
close_->SetPosition(
gfx::Point(contents_bounds.right() - close_margin - close_->width(),
contents_bounds.y() + close_margin));

Powered by Google App Engine
This is Rietveld 408576698