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

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

Issue 2550323004: views: support Harmony title insets (Closed)
Patch Set: Created 4 years 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/views_delegate.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 aa1e0025aa082354b9ada920563744a449008b15..333adf9da1840b1f7f8f9f87973268d4f6694499 100644
--- a/ui/views/window/dialog_delegate.cc
+++ b/ui/views/window/dialog_delegate.cc
@@ -17,6 +17,7 @@
#include "ui/views/controls/button/label_button.h"
#include "ui/views/layout/layout_constants.h"
#include "ui/views/style/platform_style.h"
+#include "ui/views/views_delegate.h"
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_observer.h"
#include "ui/views/window/dialog_client_view.h"
@@ -199,10 +200,9 @@ NonClientFrameView* DialogDelegate::CreateNonClientFrameView(Widget* widget) {
NonClientFrameView* DialogDelegate::CreateDialogFrameView(
Widget* widget,
const gfx::Insets& content_margins) {
- BubbleFrameView* frame =
- new BubbleFrameView(gfx::Insets(kPanelVertMargin, kButtonHEdgeMarginNew,
- 0, kButtonHEdgeMarginNew),
- content_margins);
+ BubbleFrameView* frame = new BubbleFrameView(
+ ViewsDelegate::GetInstance()->GetDialogFrameViewInsets(),
+ 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/views_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698