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

Unified Diff: chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.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/apps/app_info_dialog/app_info_dialog_views.h
diff --git a/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.h b/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.h
index c42035b1823e241cc00cb310f442b6c8247dcd48..3d32ae604364c2349cfdeeb2bac33140b5cdd86b 100644
--- a/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.h
+++ b/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.h
@@ -5,20 +5,19 @@
#ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_DIALOG_VIEWS_H_
#define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_DIALOG_VIEWS_H_
+#include "base/callback_forward.h"
+#include "chrome/browser/ui/views/app_list/app_list_dialog/app_list_dialog_contents_view.h"
+#include "ui/gfx/geometry/size.h"
#include "ui/gfx/native_widget_types.h"
-#include "ui/views/window/dialog_delegate.h"
class Profile;
namespace extensions {
class Extension;
}
-namespace views {
-class TabbedPane;
-}
// View the information about a particular chrome application.
-class AppInfoDialog : public views::DialogDelegateView {
+class AppInfoDialog : public AppListDialogContentsView {
public:
AppInfoDialog(gfx::NativeWindow parent_window,
Profile* profile,
@@ -32,11 +31,7 @@ class AppInfoDialog : public views::DialogDelegateView {
virtual gfx::Size GetPreferredSize() const OVERRIDE;
// Overridden from views::DialogDelegate:
- virtual bool Cancel() OVERRIDE;
- virtual int GetDialogButtons() const OVERRIDE;
-
- // Overridden from views::WidgetDelegate:
- virtual ui::ModalType GetModalType() const OVERRIDE;
+ virtual void OnClosed() OVERRIDE;
gfx::NativeWindow parent_window_;
Profile* profile_;

Powered by Google App Engine
This is Rietveld 408576698