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

Unified Diff: ui/views/window/dialog_delegate.cc

Issue 2696263002: Refactor ViewsDelegate and MD-ify the icon-to-text spacing for checkbox and radiobutton (Closed)
Patch Set: Used ifdef instead of duplicated code for delegate initialization 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 | « ui/views/window/dialog_client_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_delegate.cc
diff --git a/ui/views/window/dialog_delegate.cc b/ui/views/window/dialog_delegate.cc
index 333adf9da1840b1f7f8f9f87973268d4f6694499..9122b1033bb867694c0a3ae7ed03c7cd9fc450ca 100644
--- a/ui/views/window/dialog_delegate.cc
+++ b/ui/views/window/dialog_delegate.cc
@@ -200,9 +200,10 @@ NonClientFrameView* DialogDelegate::CreateNonClientFrameView(Widget* widget) {
NonClientFrameView* DialogDelegate::CreateDialogFrameView(
Widget* widget,
const gfx::Insets& content_margins) {
- BubbleFrameView* frame = new BubbleFrameView(
- ViewsDelegate::GetInstance()->GetDialogFrameViewInsets(),
- content_margins);
+ BubbleFrameView* frame =
+ new BubbleFrameView(ViewsDelegate::GetInstance()->GetInsetsMetric(
+ InsetsMetric::DIALOG_FRAME_VIEW),
+ content_margins);
const BubbleBorder::Shadow kShadow = BubbleBorder::SMALL_SHADOW;
std::unique_ptr<BubbleBorder> border(
new BubbleBorder(BubbleBorder::FLOAT, kShadow, gfx::kPlaceholderColor));
« no previous file with comments | « ui/views/window/dialog_client_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698