blob: 0874db60f8c1c9d24a266690ca2e7e1e77179ccd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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_
|