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

Unified Diff: chrome/browser/ui/views/create_application_shortcut_view.cc

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/create_application_shortcut_view.cc
diff --git a/chrome/browser/ui/views/create_application_shortcut_view.cc b/chrome/browser/ui/views/create_application_shortcut_view.cc
index a8f215ca53ecf98b42e1dcfc209bb88d67a84656..9eb4d1b72f81bc0fa0a13d6d2880c92015e2dd53 100644
--- a/chrome/browser/ui/views/create_application_shortcut_view.cc
+++ b/chrome/browser/ui/views/create_application_shortcut_view.cc
@@ -320,7 +320,7 @@ void CreateApplicationShortcutView::InitControls(DialogLayout dialog_layout) {
}
}
-gfx::Size CreateApplicationShortcutView::GetPreferredSize() const {
+gfx::Size CreateApplicationShortcutView::GetUnsnappedPreferredSize() const {
// TODO(evanm): should this use IDS_CREATE_SHORTCUTS_DIALOG_WIDTH_CHARS?
Peter Kasting 2017/03/30 00:35:34 Yes, or that should be removed, because it's unuse
static const int kDialogWidth = 360;
int height = GetLayoutManager()->GetPreferredHeightForWidth(this,

Powered by Google App Engine
This is Rietveld 408576698