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

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

Issue 2907873002: views: impose minimum width on non-Harmony snappables (Closed)
Patch Set: Created 3 years, 7 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/chrome_layout_provider.h
diff --git a/chrome/browser/ui/views/harmony/chrome_layout_provider.h b/chrome/browser/ui/views/harmony/chrome_layout_provider.h
index dd264ee844dfb5d0b3d130cb996942497e7997a4..2aedf8b460a86ad552c16af4d7a3a4ad9a6c52c7 100644
--- a/chrome/browser/ui/views/harmony/chrome_layout_provider.h
+++ b/chrome/browser/ui/views/harmony/chrome_layout_provider.h
@@ -76,6 +76,10 @@ class ChromeLayoutProvider : public views::LayoutProvider {
// TODO(pkasting): Fix callers and remove this.
virtual bool IsHarmonyMode() const;
+ // Returns the snapped width for snapped dialogs. This is used to enforce a
+ // minimum width for snap-able dialogs even in non-Harmony modes.
+ int GetSnappedDialogWidth(int min_width) const override;
Peter Kasting 2017/05/26 23:59:10 It seems like rather than overriding here we shoul
Elly Fong-Jones 2017/05/30 14:55:36 I put this here because I think we are trying to k
Peter Kasting 2017/05/30 16:17:54 I would probably move it under the justification t
+
private:
DISALLOW_COPY_AND_ASSIGN(ChromeLayoutProvider);
};

Powered by Google App Engine
This is Rietveld 408576698