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

Unified Diff: ui/views/views_delegate.h

Issue 2666803005: Position close buttons in bubbles based on a layout delegate constant. (Closed)
Patch Set: Review comments Created 3 years, 10 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/layout/layout_constants.h ('k') | ui/views/views_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/views_delegate.h
diff --git a/ui/views/views_delegate.h b/ui/views/views_delegate.h
index cbe34562bbe7024cf47130da99a1ee8d8e0f998b..c34751993693d773ab4b804bb61c93e5bca5f444 100644
--- a/ui/views/views_delegate.h
+++ b/ui/views/views_delegate.h
@@ -201,6 +201,10 @@ class VIEWS_EXPORT ViewsDelegate {
// DialogClientView's content view.
virtual gfx::Insets GetDialogButtonInsets() const;
+ // Returns the distance between a dialog's edge and the close button in the
+ // upper trailing corner.
+ virtual int GetDialogCloseButtonMargin() const;
+
// Returns the spacing between a pair of related horizontal buttons, used for
// dialog layout.
virtual int GetDialogRelatedButtonHorizontalSpacing() const;
« no previous file with comments | « ui/views/layout/layout_constants.h ('k') | ui/views/views_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698