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

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

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: chrome/browser/ui/views/harmony/layout_delegate.cc
diff --git a/chrome/browser/ui/views/harmony/layout_delegate.cc b/chrome/browser/ui/views/harmony/layout_delegate.cc
index 71d07217a31af4922fa746104a07be689f7cbf0a..2e91ff50eebac3f6b7045747a00532b4aa33d09c 100644
--- a/chrome/browser/ui/views/harmony/layout_delegate.cc
+++ b/chrome/browser/ui/views/harmony/layout_delegate.cc
@@ -92,8 +92,8 @@ bool LayoutDelegate::IsHarmonyMode() const {
return false;
}
-int LayoutDelegate::GetDialogPreferredWidth(DialogWidth width) const {
- return 0;
+int LayoutDelegate::GetSnappedDialogWidth(int min_width) const {
+ return min_width;
}
const views::TypographyProvider& LayoutDelegate::GetTypographyProvider() const {

Powered by Google App Engine
This is Rietveld 408576698