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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/harmony/sized_dialog_client_view.cc
diff --git a/chrome/browser/ui/views/harmony/sized_dialog_client_view.cc b/chrome/browser/ui/views/harmony/sized_dialog_client_view.cc
new file mode 100644
index 0000000000000000000000000000000000000000..600b818b269183b88eae408d42c41b36f1a079c3
--- /dev/null
+++ b/chrome/browser/ui/views/harmony/sized_dialog_client_view.cc
@@ -0,0 +1,19 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/views/harmony/sized_dialog_client_view.h"
+
+SizedDialogClientView::SizedDialogClientView(views::Widget* widget,
+ views::View* content_view,
+ const gfx::Size& minimum_size)
+ : views::DialogClientView(widget, content_view),
+ minimum_size_(minimum_size) {}
+
+SizedDialogClientView::~SizedDialogClientView() {}
+
+gfx::Size SizedDialogClientView::GetPreferredSize() const {
+ gfx::Size size = DialogClientView::GetPreferredSize();
+ size.SetToMax(minimum_size_);
+ return size;
+}

Powered by Google App Engine
This is Rietveld 408576698