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

Unified Diff: chrome/browser/views/uninstall_dialog.h

Issue 62097: On uninstall ask whether to delete profile. (Closed)
Patch Set: run message loop. Created 11 years, 8 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/views/uninstall_dialog.h
diff --git a/chrome/browser/views/uninstall_dialog.h b/chrome/browser/views/uninstall_dialog.h
new file mode 100644
index 0000000000000000000000000000000000000000..0874db60f8c1c9d24a266690ca2e7e1e77179ccd
--- /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_

Powered by Google App Engine
This is Rietveld 408576698