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

Side by Side Diff: chrome/browser/ui/passwords/save_password_refusal_combobox_model.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PASSWORDS_SAVE_PASSWORD_REFUSAL_COMBOBOX_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_SAVE_PASSWORD_REFUSAL_COMBOBOX_MODEL_H_
6 #define CHROME_BROWSER_UI_PASSWORDS_SAVE_PASSWORD_REFUSAL_COMBOBOX_MODEL_H_ 6 #define CHROME_BROWSER_UI_PASSWORDS_SAVE_PASSWORD_REFUSAL_COMBOBOX_MODEL_H_
7 7
8 #include <vector> 8 #include <vector>
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "ui/base/models/combobox_model.h" 11 #include "ui/base/models/combobox_model.h"
12 12
13 class SavePasswordRefusalComboboxModel : public ui::ComboboxModel { 13 class SavePasswordRefusalComboboxModel : public ui::ComboboxModel {
14 public: 14 public:
15 enum { INDEX_NOPE = 0, INDEX_NEVER_FOR_THIS_SITE = 1 }; 15 enum { INDEX_NOPE = 0, INDEX_NEVER_FOR_THIS_SITE = 1 };
16 16
17 SavePasswordRefusalComboboxModel(); 17 SavePasswordRefusalComboboxModel();
18 virtual ~SavePasswordRefusalComboboxModel(); 18 ~SavePasswordRefusalComboboxModel() override;
19 19
20 private: 20 private:
21 // Overridden from ui::ComboboxModel: 21 // Overridden from ui::ComboboxModel:
22 virtual int GetItemCount() const override; 22 int GetItemCount() const override;
23 virtual base::string16 GetItemAt(int index) override; 23 base::string16 GetItemAt(int index) override;
24 virtual bool IsItemSeparatorAt(int index) override; 24 bool IsItemSeparatorAt(int index) override;
25 virtual int GetDefaultIndex() const override; 25 int GetDefaultIndex() const override;
26 26
27 std::vector<base::string16> items_; 27 std::vector<base::string16> items_;
28 28
29 DISALLOW_COPY_AND_ASSIGN(SavePasswordRefusalComboboxModel); 29 DISALLOW_COPY_AND_ASSIGN(SavePasswordRefusalComboboxModel);
30 }; 30 };
31 31
32 32
33 #endif // CHROME_BROWSER_UI_PASSWORDS_SAVE_PASSWORD_REFUSAL_COMBOBOX_MODEL_H_ 33 #endif // CHROME_BROWSER_UI_PASSWORDS_SAVE_PASSWORD_REFUSAL_COMBOBOX_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698