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

Unified Diff: ui/base/models/combobox_model.h

Issue 12335026: Add GetDefaultIndex() to ComboboxModel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: UI_EXPORT Created 7 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
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc ('k') | ui/base/models/combobox_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/models/combobox_model.h
diff --git a/ui/base/models/combobox_model.h b/ui/base/models/combobox_model.h
index a746e5311a0c8e75670760da174e5dfe41cff254..022a67c6a7d3613b6971090817fa69dfd0175fb8 100644
--- a/ui/base/models/combobox_model.h
+++ b/ui/base/models/combobox_model.h
@@ -6,11 +6,12 @@
#define UI_BASE_MODELS_COMBOBOX_MODEL_H_
#include "base/string16.h"
+#include "ui/base/ui_export.h"
namespace ui {
// A data model for a combo box.
-class ComboboxModel {
+class UI_EXPORT ComboboxModel {
public:
// Returns the number of items in the combo box.
virtual int GetItemCount() const = 0;
@@ -18,6 +19,10 @@ class ComboboxModel {
// Returns the string at the specified index.
virtual string16 GetItemAt(int index) = 0;
+ // The index of the item that is selected by default (before user
+ // interaction).
+ virtual int GetDefaultIndex() const;
+
protected:
virtual ~ComboboxModel() {}
};
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc ('k') | ui/base/models/combobox_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698