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

Unified Diff: chrome/browser/ui/views/harmony/layout_delegate.h

Issue 2750063002: views: implement dialog width snapping (Closed)
Patch Set: remove stray logging 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..90a1355920697d658b0a790de54c02a19ee7f782 100644
--- a/chrome/browser/ui/views/harmony/layout_delegate.h
+++ b/chrome/browser/ui/views/harmony/layout_delegate.h
@@ -106,7 +106,7 @@ class LayoutDelegate {
// 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;
+ virtual int GetSnappedDialogWidth(int width) const;
tapted 2017/03/29 23:16:16 perhaps width->min_width? or preferred_width?
Elly Fong-Jones 2017/04/05 18:17:53 Done.
// 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