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

Unified Diff: ui/views/views_delegate.h

Issue 2750063002: views: implement dialog width snapping (Closed)
Patch Set: width -> min_width and improve tests Created 3 years, 8 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.h
diff --git a/ui/views/views_delegate.h b/ui/views/views_delegate.h
index 61f7c850113b3c42ce6ffca92b65bb57911e922b..4d57ea82a21b964d24aedf3b17ad49297ccacb38 100644
--- a/ui/views/views_delegate.h
+++ b/ui/views/views_delegate.h
@@ -260,6 +260,10 @@ class VIEWS_EXPORT ViewsDelegate {
// font, weight, color, size, and line height. Never null.
virtual const TypographyProvider& GetTypographyProvider() const = 0;
+ // Given the width of a dialog |min_width|, returns the new width that that
+ // dialog should be snapped up to.
+ virtual int GetSnappedDialogWidth(int min_width) const;
+
protected:
ViewsDelegate();

Powered by Google App Engine
This is Rietveld 408576698