OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_VIEWS_UNINSTALL_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_UNINSTALL_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_UNINSTALL_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_UNINSTALL_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 #include "ui/base/models/combobox_model.h" | 12 #include "ui/base/models/combobox_model.h" |
| 13 #include "ui/views/window/dialog_delegate.h" |
13 #include "views/controls/combobox/combobox.h" | 14 #include "views/controls/combobox/combobox.h" |
14 #include "views/window/dialog_delegate.h" | |
15 | 15 |
16 namespace views { | 16 namespace views { |
17 class Checkbox; | 17 class Checkbox; |
18 class Label; | 18 class Label; |
19 } | 19 } |
20 | 20 |
21 // UninstallView implements the dialog that confirms Chrome uninstallation | 21 // UninstallView implements the dialog that confirms Chrome uninstallation |
22 // and asks whether to delete Chrome profile. Also if currently Chrome is set | 22 // and asks whether to delete Chrome profile. Also if currently Chrome is set |
23 // as default browser, it asks users whether to set another browser as default. | 23 // as default browser, it asks users whether to set another browser as default. |
24 class UninstallView : public views::ButtonListener, | 24 class UninstallView : public views::ButtonListener, |
(...skipping 29 matching lines...) Expand all Loading... |
54 views::Checkbox* change_default_browser_; | 54 views::Checkbox* change_default_browser_; |
55 views::Combobox* browsers_combo_; | 55 views::Combobox* browsers_combo_; |
56 typedef std::map<std::wstring, std::wstring> BrowsersMap; | 56 typedef std::map<std::wstring, std::wstring> BrowsersMap; |
57 scoped_ptr<BrowsersMap> browsers_; | 57 scoped_ptr<BrowsersMap> browsers_; |
58 int& user_selection_; | 58 int& user_selection_; |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(UninstallView); | 60 DISALLOW_COPY_AND_ASSIGN(UninstallView); |
61 }; | 61 }; |
62 | 62 |
63 #endif // CHROME_BROWSER_UI_VIEWS_UNINSTALL_VIEW_H_ | 63 #endif // CHROME_BROWSER_UI_VIEWS_UNINSTALL_VIEW_H_ |
OLD | NEW |