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

Unified Diff: ui/views/layout/layout_provider.h

Issue 2821413002: views: support dialog width snapping once and for all (Closed)
Patch Set: 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/layout/layout_provider.h
diff --git a/ui/views/layout/layout_provider.h b/ui/views/layout/layout_provider.h
index f00238f065925b6d88cbd291eb2be1c0da83c486..f047ebc81b31360af0d586e5c231a8461bb64269 100644
--- a/ui/views/layout/layout_provider.h
+++ b/ui/views/layout/layout_provider.h
@@ -83,6 +83,10 @@ class VIEWS_EXPORT LayoutProvider {
// font, weight, color, size, and line height. Never null.
virtual const TypographyProvider& GetTypographyProvider() const;
+ // Returns the actual width to use for a dialog that requires at least
+ // |min_width|.
+ virtual int GetSnappedDialogWidth(int min_width) const;
+
private:
DefaultTypographyProvider typography_provider_;

Powered by Google App Engine
This is Rietveld 408576698