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

Unified Diff: chrome/browser/ui/views/harmony/layout_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: chrome/browser/ui/views/harmony/layout_delegate.h
diff --git a/chrome/browser/ui/views/harmony/layout_delegate.h b/chrome/browser/ui/views/harmony/layout_delegate.h
index 9cfbd5659a2798a016e726b401fa9957e3fece30..e4dc4f1ba4d4d9b48ac866d2e84dbf7f7c73b73f 100644
--- a/chrome/browser/ui/views/harmony/layout_delegate.h
+++ b/chrome/browser/ui/views/harmony/layout_delegate.h
@@ -104,9 +104,8 @@ class LayoutDelegate {
// TODO(pkasting): Fix callers and remove this.
virtual bool IsHarmonyMode() const;
- // Returns the preferred width in DIPs for a dialog of the specified |width|.
- // May return 0 if the dialog has no preferred width.
- virtual int GetDialogPreferredWidth(DialogWidth width) const;
+ // Returns the smallest allowable width for a dialog |width| points wide.
Peter Kasting 2017/03/30 00:35:35 Nit: "...for a dialog that wants a width of at lea
+ virtual int GetSnappedDialogWidth(int width) const;
// Returns the class that maps views::style values (TextContext and TextStyle)
// to specific font properties (e.g. typeface, size, color, line spacing).

Powered by Google App Engine
This is Rietveld 408576698