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

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

Issue 1141253002: [Views] Allow dialog delegates to use a custom padding for the extra view (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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_unittest.cc ('k') | ui/views/window/dialog_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_delegate.h
diff --git a/ui/views/window/dialog_delegate.h b/ui/views/window/dialog_delegate.h
index c84fb82af43a5bc94a8370dfbc4bc854a3a5c0fe..3f4d18d4041e69dcd7b158243065efda3d4aa4e1 100644
--- a/ui/views/window/dialog_delegate.h
+++ b/ui/views/window/dialog_delegate.h
@@ -49,6 +49,12 @@ class VIEWS_EXPORT DialogDelegate : public ui::DialogModel,
// Overrides may construct the view; this will only be called once per dialog.
virtual View* CreateExtraView();
+ // Override this function to adjust the padding between the extra view and
+ // the confirm/cancel buttons. Note that if there are no buttons, this will
+ // not be used.
+ // If a custom padding should be used, returns true and populates |padding|.
+ virtual bool GetExtraViewPadding(int* padding);
+
// Override this function to display an extra view in the titlebar.
// Overrides may construct the view; this will only be called once per dialog.
// Note: this only works for new style dialogs.
« no previous file with comments | « ui/views/window/dialog_client_view_unittest.cc ('k') | ui/views/window/dialog_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698