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

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

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.h
diff --git a/chrome/browser/ui/views/app_list/app_list_dialog/app_list_dialog_client_view.h b/chrome/browser/ui/views/app_list/app_list_dialog/app_list_dialog_client_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..0c29b436d1f8b4fec08f24b11bc0d429f77cc850
--- /dev/null
+++ b/chrome/browser/ui/views/app_list/app_list_dialog/app_list_dialog_client_view.h
@@ -0,0 +1,32 @@
+// 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.
+
+#ifndef CHROME_BROWSER_UI_VIEWS_APP_LIST_APP_LIST_DIALOG_APP_LIST_DIALOG_CLIENT_VIEW_H_
+#define CHROME_BROWSER_UI_VIEWS_APP_LIST_APP_LIST_DIALOG_APP_LIST_DIALOG_CLIENT_VIEW_H_
+
+#include "ui/gfx/geometry/size.h"
tapted 2014/06/11 08:34:59 nit: don't need to #include this, since the type i
sashab 2014/06/12 00:13:43 Done, moved to CC file.
+#include "ui/views/window/client_view.h"
+
+namespace views {
+class View;
+class Widget;
+}
+
+// A wrapper for the contents of an App List Dialog.
+class AppListDialogClientView : public views::ClientView {
+ public:
+ AppListDialogClientView(views::Widget* widget, views::View* contents_view);
+ virtual ~AppListDialogClientView();
+
+ // Overridden from views::ClientView:
+ virtual bool CanClose() OVERRIDE;
+
+ // Overridden from views::View:
+ virtual gfx::Size GetPreferredSize() const OVERRIDE;
+ virtual void Layout() OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(AppListDialogClientView);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_APP_LIST_APP_LIST_DIALOG_APP_LIST_DIALOG_CLIENT_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698