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

Unified Diff: ui/views/views_delegate.h

Issue 2785683003: views: implement width snapping for DialogDelegateViews (Closed)
Patch Set: Created 3 years, 9 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 5ab30aa42997cf7bb298dcdf71caab5b07eb9c29..4b9b01f2f65940a59229dbe757ac191637937eda 100644
--- a/ui/views/views_delegate.h
+++ b/ui/views/views_delegate.h
@@ -257,6 +257,10 @@ class VIEWS_EXPORT ViewsDelegate {
// font, weight, color, size, and line height. Never null.
virtual const TypographyProvider& GetTypographyProvider() const = 0;
+ // Returns the smallest dialog width that can contain a dialog whose unsnapped
+ // width is |width|.
+ virtual int GetSnappedDialogWidth(int width) const;
+
protected:
ViewsDelegate();

Powered by Google App Engine
This is Rietveld 408576698