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

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

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 #ifndef CHROME_BROWSER_UI_VIEWS_HARMONY_SIZED_DIALOG_CLIENT_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_HARMONY_SIZED_DIALOG_CLIENT_VIEW_H_
7
8 #include "chrome/browser/ui/views/harmony/layout_delegate.h"
9 #include "ui/views/window/dialog_client_view.h"
10
11 // A DialogClientView that imposes a minimum preferred size on the entire
12 // dialog, independent of the preferred sizes of any subviews.
Peter Kasting 2017/02/07 00:17:15 Ultimately, will there be dialogs that _don't_ wan
Elly Fong-Jones 2017/02/07 14:02:10 Hmmm, probably not, actually. Moved this logic to
13 class SizedDialogClientView : public views::DialogClientView {
14 public:
15 SizedDialogClientView(views::Widget* widget,
16 views::View* content_view,
17 const gfx::Size& minimum_size);
18 ~SizedDialogClientView() override;
19
20 // views::DialogClientView:
21 gfx::Size GetPreferredSize() const override;
22
23 private:
24 gfx::Size minimum_size_;
25 };
Peter Kasting 2017/02/07 00:17:15 Nit: DISALLOW_COPY_AND_ASSIGN
Elly Fong-Jones 2017/02/07 14:02:10 Acknowledged.
26
27 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_SIZED_DIALOG_CLIENT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698