Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: chrome/browser/ui/views/uninstall_view.h

Issue 9838092: ui/base/models: Make ComboboxModel::GetItemCount() a constant function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_rel and reland Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/cookie_info_view.cc ('k') | chrome/browser/ui/views/uninstall_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/cookie_info_view.cc ('k') | chrome/browser/ui/views/uninstall_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698