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

Side by Side Diff: chrome/browser/ui/views/harmony/sized_dialog_client_view.cc

Issue 2654323002: harmony: convert device chooser (Closed)
Patch Set: attempt size hack Created 3 years, 10 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 unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698