summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/uninstall_dialog.h
diff options
context:
space:
mode:
authorkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-17 13:24:57 +0000
committerkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-17 13:24:57 +0000
commit4df8786fcd6334d4f5f92350a8297135149aabae (patch)
treec373e3afb8ec9104547ee873019ce0be920b14a5 /chrome/browser/views/uninstall_dialog.h
parent7d280cb1adf9c8e66ef8f9c97e8b633b0eac37e0 (diff)
downloadchromium_src-4df8786fcd6334d4f5f92350a8297135149aabae.zip
chromium_src-4df8786fcd6334d4f5f92350a8297135149aabae.tar.gz
chromium_src-4df8786fcd6334d4f5f92350a8297135149aabae.tar.bz2
On uninstall ask whether to delete profile.
BUG=8431 Review URL: http://codereview.chromium.org/62097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13926 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/uninstall_dialog.h')
-rw-r--r--chrome/browser/views/uninstall_dialog.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/chrome/browser/views/uninstall_dialog.h b/chrome/browser/views/uninstall_dialog.h
new file mode 100644
index 0000000..0874db6
--- /dev/null
+++ b/chrome/browser/views/uninstall_dialog.h
@@ -0,0 +1,40 @@
+// Copyright (c) 2009 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_VIEWS_UNINSTALL_DIALOG_H_
+#define CHROME_BROWSER_VIEWS_UNINSTALL_DIALOG_H_
+
+#include "base/basictypes.h"
+#include "chrome/views/window/dialog_delegate.h"
+
+class MessageBoxView;
+
+// UninstallDialog implements the dialog that confirms Chrome uninstallation
+// and asks whether to delete Chrome profile.
+class UninstallDialog : public views::DialogDelegate {
+ public:
+ static void ShowUninstallDialog(int& user_selection);
+
+ protected:
+ // Overridden from views::DialogDelegate:
+ virtual bool Accept();
+ virtual bool Cancel();
+ virtual int GetDialogButtons() const;
+ virtual std::wstring GetWindowTitle() const;
+
+ // Overridden from views::WindowDelegate:
+ virtual void DeleteDelegate();
+ virtual views::View* GetContentsView();
+
+ private:
+ explicit UninstallDialog(int& user_selection);
+ virtual ~UninstallDialog();
+
+ MessageBoxView* message_box_view_;
+ int& user_selection_;
+
+ DISALLOW_COPY_AND_ASSIGN(UninstallDialog);
+};
+
+#endif // CHROME_BROWSER_VIEWS_UNINSTALL_DIALOG_H_