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/callback.h" | 10 #include "base/callback.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 class UninstallView : public views::ButtonListener, | 24 class UninstallView : public views::ButtonListener, |
25 public views::DialogDelegateView, | 25 public views::DialogDelegateView, |
26 public ui::ComboboxModel { | 26 public ui::ComboboxModel { |
27 public: | 27 public: |
28 explicit UninstallView(int* user_selection, | 28 explicit UninstallView(int* user_selection, |
29 const base::Closure& quit_closure); | 29 const base::Closure& quit_closure); |
30 virtual ~UninstallView(); | 30 virtual ~UninstallView(); |
31 | 31 |
32 // Overridden form views::ButtonListener. | 32 // Overridden form views::ButtonListener. |
33 virtual void ButtonPressed(views::Button* sender, | 33 virtual void ButtonPressed(views::Button* sender, |
34 const views::Event& event) OVERRIDE; | 34 const ui::Event& event) OVERRIDE; |
35 | 35 |
36 // Overridden from views::DialogDelegateView: | 36 // Overridden from views::DialogDelegateView: |
37 virtual bool Accept() OVERRIDE; | 37 virtual bool Accept() OVERRIDE; |
38 virtual bool Cancel() OVERRIDE; | 38 virtual bool Cancel() OVERRIDE; |
39 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; | 39 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; |
40 | 40 |
41 // Overridden from views::WidgetDelegate: | 41 // Overridden from views::WidgetDelegate: |
42 virtual string16 GetWindowTitle() const OVERRIDE; | 42 virtual string16 GetWindowTitle() const OVERRIDE; |
43 virtual views::View* GetContentsView() OVERRIDE; | 43 virtual views::View* GetContentsView() OVERRIDE; |
44 | 44 |
(...skipping 11 matching lines...) Expand all Loading... |
56 views::Combobox* browsers_combo_; | 56 views::Combobox* browsers_combo_; |
57 typedef std::map<std::wstring, std::wstring> BrowsersMap; | 57 typedef std::map<std::wstring, std::wstring> BrowsersMap; |
58 scoped_ptr<BrowsersMap> browsers_; | 58 scoped_ptr<BrowsersMap> browsers_; |
59 int& user_selection_; | 59 int& user_selection_; |
60 base::Closure quit_closure_; | 60 base::Closure quit_closure_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(UninstallView); | 62 DISALLOW_COPY_AND_ASSIGN(UninstallView); |
63 }; | 63 }; |
64 | 64 |
65 #endif // CHROME_BROWSER_UI_VIEWS_UNINSTALL_VIEW_H_ | 65 #endif // CHROME_BROWSER_UI_VIEWS_UNINSTALL_VIEW_H_ |
OLD | NEW |