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

Unified Diff: chrome/browser/ui/passwords/account_chooser_more_combobox_model.h

Issue 908493002: Add a ComboboxModel and strings for the account chooser's "More" button. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/passwords/account_chooser_more_combobox_model.h
diff --git a/chrome/browser/ui/passwords/account_chooser_more_combobox_model.h b/chrome/browser/ui/passwords/account_chooser_more_combobox_model.h
new file mode 100644
index 0000000000000000000000000000000000000000..bfc8e608cb3398ae5819ac859eb465278f4cd35f
--- /dev/null
+++ b/chrome/browser/ui/passwords/account_chooser_more_combobox_model.h
@@ -0,0 +1,32 @@
+// 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_PASSWORDS_ACCOUNT_CHOOSER_MORE_COMBOBOX_MODEL_H_
+#define CHROME_BROWSER_UI_PASSWORDS_ACCOUNT_CHOOSER_MORE_COMBOBOX_MODEL_H_
+
+#include "ui/base/models/combobox_model.h"
+
+// Model for the account chooser's "More" combobox.
+class AccountChooserMoreComboboxModel : public ui::ComboboxModel {
+ public:
+ AccountChooserMoreComboboxModel();
+ ~AccountChooserMoreComboboxModel() override;
+
+ // Index constants.
+ static const int INDEX_MORE;
+ static const int INDEX_LEARN_MORE;
+ static const int INDEX_SETTINGS;
+
+ // ui::ComboboxModel:
+ int GetItemCount() const override;
+ base::string16 GetItemAt(int index) override;
+ bool IsItemSeparatorAt(int index) override;
+ int GetDefaultIndex() const override;
+ bool IsItemEnabledAt(int index) const override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(AccountChooserMoreComboboxModel);
+};
+
+#endif // CHROME_BROWSER_UI_PASSWORDS_ACCOUNT_CHOOSER_MORE_COMBOBOX_MODEL_H_
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/passwords/account_chooser_more_combobox_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698