| 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 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 // Overridden from views::DialogDelegateView: | 35 // Overridden from views::DialogDelegateView: |
| 36 virtual bool Accept() OVERRIDE; | 36 virtual bool Accept() OVERRIDE; |
| 37 virtual bool Cancel() OVERRIDE; | 37 virtual bool Cancel() OVERRIDE; |
| 38 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; | 38 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; |
| 39 | 39 |
| 40 // Overridden from views::WidgetDelegate: | 40 // Overridden from views::WidgetDelegate: |
| 41 virtual string16 GetWindowTitle() const OVERRIDE; | 41 virtual string16 GetWindowTitle() const OVERRIDE; |
| 42 virtual views::View* GetContentsView() OVERRIDE; | 42 virtual views::View* GetContentsView() OVERRIDE; |
| 43 | 43 |
| 44 // Overridden from ui::ComboboxModel: | 44 // Overridden from ui::ComboboxModel: |
| 45 virtual int GetItemCount() OVERRIDE; | 45 virtual int GetItemCount() const OVERRIDE; |
| 46 virtual string16 GetItemAt(int index) OVERRIDE; | 46 virtual string16 GetItemAt(int index) OVERRIDE; |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 // Initializes the controls on the dialog. | 49 // Initializes the controls on the dialog. |
| 50 void SetupControls(); | 50 void SetupControls(); |
| 51 | 51 |
| 52 views::Label* confirm_label_; | 52 views::Label* confirm_label_; |
| 53 views::Checkbox* delete_profile_; | 53 views::Checkbox* delete_profile_; |
| 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 |