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

Unified Diff: chrome/browser/ui/views/passwords/save_password_refusal_combobox_model.h

Issue 264713010: Password bubble: ManagePasswordsIconView is now a BubbleIconView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
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..e89f9db4a54778848aaa8c4da95d39afdd9c4d55
--- /dev/null
+++ b/chrome/browser/ui/views/passwords/save_password_refusal_combobox_model.h
@@ -0,0 +1,33 @@
+// 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_PASSWORD_REFUSAL_COMBOBOX_MODEL_H_

Powered by Google App Engine
This is Rietveld 408576698