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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_VIEWS_UNINSTALL_DIALOG_H_
6 #define CHROME_BROWSER_VIEWS_UNINSTALL_DIALOG_H_
7
8 #include "base/basictypes.h"
9 #include "chrome/views/window/dialog_delegate.h"
10
11 class MessageBoxView;
12
13 // UninstallDialog implements the dialog that confirms Chrome uninstallation
14 // and asks whether to delete Chrome profile.
15 class UninstallDialog : public views::DialogDelegate {
16 public:
17 static void ShowUninstallDialog(int& user_selection);
18
19 protected:
20 // Overridden from views::DialogDelegate:
21 virtual bool Accept();
22 virtual bool Cancel();
23 virtual int GetDialogButtons() const;
24 virtual std::wstring GetWindowTitle() const;
25
26 // Overridden from views::WindowDelegate:
27 virtual void DeleteDelegate();
28 virtual views::View* GetContentsView();
29
30 private:
31 explicit UninstallDialog(int& user_selection);
32 virtual ~UninstallDialog();
33
34 MessageBoxView* message_box_view_;
35 int& user_selection_;
36
37 DISALLOW_COPY_AND_ASSIGN(UninstallDialog);
38 };
39
40 #endif // CHROME_BROWSER_VIEWS_UNINSTALL_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698