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

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

Issue 1001553005: New "Save password" bubble for the Credential Manager API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 5 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 side-by-side diff with in-line comments
Download patch
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..12b12305be1bbd9032cbb2d07c245b633a8bcbd7
--- /dev/null
+++ b/chrome/browser/ui/views/passwords/save_account_more_combobox_model.h
@@ -0,0 +1,36 @@
+// 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:
+ // The order of the values shouldn't be changed without reordering the strings
+ // in the constructor.
+ enum {
+ INDEX_MORE = 0,
+ 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_

Powered by Google App Engine
This is Rietveld 408576698