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

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: . 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..8573740e640ea29e1a683ac55f6757f64482d508 100644
--- a/ui/base/models/combobox_model.h
+++ b/ui/base/models/combobox_model.h
@@ -6,6 +6,7 @@
#define UI_BASE_MODELS_COMBOBOX_MODEL_H_
#include "base/string16.h"
+#include "ui/base/ui_export.h"
namespace ui {
@@ -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