| Index: chrome/browser/ui/views/passwords/save_password_refusal_combobox_model.h
|
| diff --git a/chrome/browser/ui/views/passwords/save_password_refusal_combobox_model.h b/chrome/browser/ui/views/passwords/save_password_refusal_combobox_model.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..49dd9a88545c94c3eafb007ed2897ada90365198
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/views/passwords/save_password_refusal_combobox_model.h
|
| @@ -0,0 +1,34 @@
|
| +// Copyright 2014 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_PASSWORD_REFUSAL_COMBOBOX_MODEL_H_
|
| +#define CHROME_BROWSER_UI_VIEWS_PASSWORDS_SAVE_PASSWORD_REFUSAL_COMBOBOX_MODEL_H_
|
| +
|
| +#include <vector>
|
| +#include "base/basictypes.h"
|
| +#include "base/strings/string16.h"
|
| +#include "ui/base/models/combobox_model.h"
|
| +
|
| +class SavePasswordRefusalComboboxModel : public ui::ComboboxModel {
|
| + public:
|
| + enum { INDEX_NOPE = 0, INDEX_NEVER_FOR_THIS_SITE = 1 };
|
| +
|
| + SavePasswordRefusalComboboxModel();
|
| + virtual ~SavePasswordRefusalComboboxModel();
|
| +
|
| + private:
|
| + // Overridden from ui::ComboboxModel:
|
| + virtual int GetItemCount() const OVERRIDE;
|
| + virtual base::string16 GetItemAt(int index) OVERRIDE;
|
| + virtual bool IsItemSeparatorAt(int index) OVERRIDE;
|
| + virtual int GetDefaultIndex() const OVERRIDE;
|
| +
|
| + std::vector<base::string16> items_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(SavePasswordRefusalComboboxModel);
|
| +};
|
| +
|
| +
|
| +#endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_SAVE_PASSWORDS_REFUSAL_COMBOBOX_MODEL_H_
|
| +
|
|
|