Index: chrome/browser/ui/views/app_list/app_list_dialog/app_list_dialog_client_view.cc |
diff --git a/chrome/browser/ui/views/app_list/app_list_dialog/app_list_dialog_client_view.cc b/chrome/browser/ui/views/app_list/app_list_dialog/app_list_dialog_client_view.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f6b5197acdac618753bb92270a1d8b5ebdfe5370 |
--- /dev/null |
+++ b/chrome/browser/ui/views/app_list/app_list_dialog/app_list_dialog_client_view.cc |
@@ -0,0 +1,29 @@ |
+// Copyright 2014 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/app_list/app_list_dialog/app_list_dialog_client_view.h" |
tapted
2014/06/11 08:34:59
too many app_list! :)
Maybe ditch the second one:
sashab
2014/06/12 00:13:43
Done.
|
+ |
+#include "ui/views/view.h" |
+#include "ui/views/widget/widget.h" |
+ |
+AppListDialogClientView::AppListDialogClientView(views::Widget* owner, |
+ views::View* contents_view) |
+ : views::ClientView(owner, contents_view) { |
+} |
+ |
+AppListDialogClientView::~AppListDialogClientView() { |
+} |
+ |
+bool AppListDialogClientView::CanClose() { |
+ return true; |
+} |
+ |
+gfx::Size AppListDialogClientView::GetPreferredSize() const { |
+ return contents_view()->GetPreferredSize(); |
+} |
+ |
+void AppListDialogClientView::Layout() { |
+ views::View::Layout(); |
+ contents_view()->SetBoundsRect(GetContentsBounds()); |
+} |