| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 virtual void ButtonPressed(views::Button* sender, | 37 virtual void ButtonPressed(views::Button* sender, |
| 38 const ui::Event& event) OVERRIDE; | 38 const ui::Event& event) OVERRIDE; |
| 39 | 39 |
| 40 // Overridden from views::DialogDelegateView: | 40 // Overridden from views::DialogDelegateView: |
| 41 virtual bool Accept() OVERRIDE; | 41 virtual bool Accept() OVERRIDE; |
| 42 virtual bool Cancel() OVERRIDE; | 42 virtual bool Cancel() OVERRIDE; |
| 43 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; | 43 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; |
| 44 | 44 |
| 45 // Overridden from views::WidgetDelegate: | 45 // Overridden from views::WidgetDelegate: |
| 46 virtual string16 GetWindowTitle() const OVERRIDE; | 46 virtual string16 GetWindowTitle() const OVERRIDE; |
| 47 virtual views::View* GetContentsView() OVERRIDE; | |
| 48 | 47 |
| 49 // Overridden from ui::ComboboxModel: | 48 // Overridden from ui::ComboboxModel: |
| 50 virtual int GetItemCount() const OVERRIDE; | 49 virtual int GetItemCount() const OVERRIDE; |
| 51 virtual string16 GetItemAt(int index) OVERRIDE; | 50 virtual string16 GetItemAt(int index) OVERRIDE; |
| 52 | 51 |
| 53 private: | 52 private: |
| 54 typedef std::map<string16, string16> BrowsersMap; | 53 typedef std::map<string16, string16> BrowsersMap; |
| 55 | 54 |
| 56 // Initializes the controls on the dialog. | 55 // Initializes the controls on the dialog. |
| 57 void SetupControls(); | 56 void SetupControls(); |
| 58 | 57 |
| 59 views::Label* confirm_label_; | 58 views::Label* confirm_label_; |
| 60 bool show_delete_profile_; | 59 bool show_delete_profile_; |
| 61 views::Checkbox* delete_profile_; | 60 views::Checkbox* delete_profile_; |
| 62 views::Checkbox* change_default_browser_; | 61 views::Checkbox* change_default_browser_; |
| 63 views::Combobox* browsers_combo_; | 62 views::Combobox* browsers_combo_; |
| 64 scoped_ptr<BrowsersMap> browsers_; | 63 scoped_ptr<BrowsersMap> browsers_; |
| 65 int& user_selection_; | 64 int& user_selection_; |
| 66 base::Closure quit_closure_; | 65 base::Closure quit_closure_; |
| 67 | 66 |
| 68 DISALLOW_COPY_AND_ASSIGN(UninstallView); | 67 DISALLOW_COPY_AND_ASSIGN(UninstallView); |
| 69 }; | 68 }; |
| 70 | 69 |
| 71 #endif // CHROME_BROWSER_UI_VIEWS_UNINSTALL_VIEW_H_ | 70 #endif // CHROME_BROWSER_UI_VIEWS_UNINSTALL_VIEW_H_ |
| OLD | NEW |