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

Unified Diff: chrome/browser/ui/views/app_list/app_list_dialog/app_list_dialog_client_view.cc

Issue 306023011: Add new DialogDelegate for dialogs in the App List (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Split into separate files, fixed unittest and removed no-longer-needed overlay from AppList Created 6 years, 6 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/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());
+}

Powered by Google App Engine
This is Rietveld 408576698