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

Unified Diff: chrome/browser/bookmarks/recently_used_folders_combo_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 | « no previous file | chrome/browser/bookmarks/recently_used_folders_combo_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/recently_used_folders_combo_model.h
diff --git a/chrome/browser/bookmarks/recently_used_folders_combo_model.h b/chrome/browser/bookmarks/recently_used_folders_combo_model.h
index f446af7ee810e7b36d5e5992dd9e1d4d6194fc2b..aaf80575cdec6b6b39841cb140391bbfc1198dfb 100644
--- a/chrome/browser/bookmarks/recently_used_folders_combo_model.h
+++ b/chrome/browser/bookmarks/recently_used_folders_combo_model.h
@@ -25,18 +25,18 @@ class RecentlyUsedFoldersComboModel : public ui::ComboboxModel {
// Overridden from ui::ComboboxModel:
virtual int GetItemCount() const OVERRIDE;
virtual string16 GetItemAt(int index) OVERRIDE;
+ virtual int GetDefaultIndex() const OVERRIDE;
// Returns the node at the specified |index|.
const BookmarkNode* GetNodeAt(int index);
- // Returns the index of the original parent folder.
- int node_parent_index() const { return node_parent_index_; }
-
private:
// Removes |node| from |nodes_|. Does nothing if |node| is not in |nodes_|.
void RemoveNode(const BookmarkNode* node);
std::vector<const BookmarkNode*> nodes_;
+
+ // The index of the original parent folder.
int node_parent_index_;
DISALLOW_COPY_AND_ASSIGN(RecentlyUsedFoldersComboModel);
« no previous file with comments | « no previous file | chrome/browser/bookmarks/recently_used_folders_combo_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698