Chromium Code Reviews| Index: chrome/browser/ui/views/passwords/save_account_more_combobox_model.h |
| diff --git a/chrome/browser/ui/views/passwords/save_account_more_combobox_model.h b/chrome/browser/ui/views/passwords/save_account_more_combobox_model.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b31d46b4fca33ef67b4ca13bfc69cd75e0d669e0 |
| --- /dev/null |
| +++ b/chrome/browser/ui/views/passwords/save_account_more_combobox_model.h |
| @@ -0,0 +1,34 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_VIEWS_PASSWORDS_SAVE_ACCOUNT_MORE_COMBOBOX_MODEL_H_ |
| +#define CHROME_BROWSER_UI_VIEWS_PASSWORDS_SAVE_ACCOUNT_MORE_COMBOBOX_MODEL_H_ |
| + |
| +#include <vector> |
| +#include "base/basictypes.h" |
| +#include "base/strings/string16.h" |
| +#include "ui/base/models/combobox_model.h" |
| + |
| +class SaveAccountMoreComboboxModel : public ui::ComboboxModel { |
| + public: |
| + enum { |
| + INDEX_MORE, |
|
Mike West
2015/03/19 12:50:24
Nit: `= 0` isn't _necessary_, but it's nice. :)
N
vasilii
2015/03/19 14:48:57
Done.
|
| + INDEX_NEVER_FOR_THIS_SITE, |
| + INDEX_SETTINGS, |
| + }; |
| + |
| + SaveAccountMoreComboboxModel(); |
| + ~SaveAccountMoreComboboxModel() override; |
| + |
| + private: |
| + // Overridden from ui::ComboboxModel: |
| + int GetItemCount() const override; |
| + base::string16 GetItemAt(int index) override; |
| + |
| + std::vector<base::string16> items_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(SaveAccountMoreComboboxModel); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_SAVE_ACCOUNT_MORE_COMBOBOX_MODEL_H_ |