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

Unified Diff: chrome/browser/ui/views/harmony/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/harmony_layout_delegate.h
diff --git a/chrome/browser/ui/views/harmony/harmony_layout_delegate.h b/chrome/browser/ui/views/harmony/harmony_layout_delegate.h
index c750bfffc62dbb7eedceb24c7d8d4588b396fdc0..ccc779bcb09400a118e72c24ffdb09ce11c249c3 100644
--- a/chrome/browser/ui/views/harmony/harmony_layout_delegate.h
+++ b/chrome/browser/ui/views/harmony/harmony_layout_delegate.h
@@ -23,7 +23,7 @@ class HarmonyLayoutDelegate : public LayoutDelegate {
views::GridLayout::Alignment GetControlLabelGridAlignment() const override;
bool UseExtraDialogPadding() const override;
bool IsHarmonyMode() const override;
- int GetDialogPreferredWidth(DialogWidth width) const override;
+ int GetSnappedDialogWidth(int width) const override;
bool ShouldShowWindowIcon() const override;
private:

Powered by Google App Engine
This is Rietveld 408576698