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

Unified Diff: ui/views/views_delegate.cc

Issue 2571613002: Convert Register Protocol Handler dialog for Harmony/Material Design (Closed)
Patch Set: Moved LayoutDelegate back to chrome/browser/ui/views/harmony. Use ViewsDelegate for layout down in … 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: ui/views/views_delegate.cc
diff --git a/ui/views/views_delegate.cc b/ui/views/views_delegate.cc
index c00e1b2c0e68131e1aa02d6e2904d9f79b9e837e..cabea8505c7b77a6d57d38c3ec1ac94065012d04 100644
--- a/ui/views/views_delegate.cc
+++ b/ui/views/views_delegate.cc
@@ -135,11 +135,22 @@ int ViewsDelegate::GetDialogRelatedButtonHorizontalSpacing() {
return kRelatedButtonHSpacing;
}
+int ViewsDelegate::GetDialogRelatedControlVerticalSpacing() {
+ return kRelatedControlVerticalSpacing;
sky 2017/01/05 23:26:40 If there are no more consumers of these constants,
kylix_rd 2017/01/06 14:36:50 Once most of the Harmony work is done, I suspect t
+}
+
gfx::Insets ViewsDelegate::GetDialogFrameViewInsets() {
return gfx::Insets(kPanelVertMargin, kButtonHEdgeMarginNew, 0,
kButtonHEdgeMarginNew);
}
+gfx::Insets ViewsDelegate::GetBubbleDialogMargins() {
+ return gfx::Insets(kPanelVertMargin,
+ kPanelHorizMargin,
+ kPanelVertMargin,
+ kPanelHorizMargin);
+}
+
ViewsDelegate::ViewsDelegate()
: views_tsc_factory_(new ViewsTouchEditingControllerFactory) {
DCHECK(!views_delegate);

Powered by Google App Engine
This is Rietveld 408576698