| 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 "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 std::wstring GetWindowTitle() const; | |
| 24 | |
| 25 // Overridden from views::WindowDelegate: | |
| 26 virtual void DeleteDelegate(); | |
| 27 virtual views::View* GetContentsView(); | |
| 28 | |
| 29 private: | |
| 30 explicit UninstallDialog(int& user_selection); | |
| 31 virtual ~UninstallDialog(); | |
| 32 | |
| 33 MessageBoxView* message_box_view_; | |
| 34 int& user_selection_; | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(UninstallDialog); | |
| 37 }; | |
| 38 | |
| 39 #endif // CHROME_BROWSER_VIEWS_UNINSTALL_DIALOG_H_ | |
| OLD | NEW |