| OLD | NEW |
| (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_ |
| OLD | NEW |