OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/ui/views/harmony/sized_dialog_client_view.h" |
| 6 |
| 7 SizedDialogClientView::SizedDialogClientView(views::Widget* widget, |
| 8 views::View* content_view, |
| 9 const gfx::Size& minimum_size) |
| 10 : views::DialogClientView(widget, content_view), |
| 11 minimum_size_(minimum_size) {} |
| 12 |
| 13 SizedDialogClientView::~SizedDialogClientView() {} |
| 14 |
| 15 gfx::Size SizedDialogClientView::GetPreferredSize() const { |
| 16 gfx::Size size = DialogClientView::GetPreferredSize(); |
| 17 size.SetToMax(minimum_size_); |
| 18 return size; |
| 19 } |
OLD | NEW |