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

Unified Diff: chrome/browser/bookmarks/recently_used_folders_combo_model.h

Issue 14581004: bookmarks: Move recently_used_folders_combo_model* into c/b/ui/bookmarks/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
deleted file mode 100644
index 5d03bb0c9467a94421ffd07cfaff33d67bccc060..0000000000000000000000000000000000000000
--- a/chrome/browser/bookmarks/recently_used_folders_combo_model.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) 2012 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_BOOKMARKS_RECENTLY_USED_FOLDERS_COMBO_MODEL_H_
-#define CHROME_BROWSER_BOOKMARKS_RECENTLY_USED_FOLDERS_COMBO_MODEL_H_
-
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "ui/base/models/combobox_model.h"
-
-class BookmarkModel;
-class BookmarkNode;
-
-// Model for the combobox showing the list of folders to choose from. The
-// list always contains the Bookmarks Bar, Other Bookmarks and the parent
-// folder. The list also contains an extra item that shows the text
-// "Choose Another Folder...".
-class RecentlyUsedFoldersComboModel : public ui::ComboboxModel {
- public:
- RecentlyUsedFoldersComboModel(BookmarkModel* model, const BookmarkNode* node);
- virtual ~RecentlyUsedFoldersComboModel();
-
- // Overridden from ui::ComboboxModel:
- virtual int GetItemCount() const OVERRIDE;
- virtual string16 GetItemAt(int index) OVERRIDE;
- virtual bool IsItemSeparatorAt(int index) OVERRIDE;
- virtual int GetDefaultIndex() const OVERRIDE;
-
- // If necessary this function moves |node| into the corresponding folder for
- // the given |selected_index|.
- void MaybeChangeParent(const BookmarkNode* node, int selected_index);
-
- private:
- // Returns the node at the specified |index|.
- const BookmarkNode* GetNodeAt(int index);
-
- // Removes |node| from |items_|. Does nothing if |node| is not in |items_|.
- void RemoveNode(const BookmarkNode* node);
-
- struct Item;
- std::vector<Item> items_;
-
- BookmarkModel* bookmark_model_;
-
- // The index of the original parent folder.
- int node_parent_index_;
-
- DISALLOW_COPY_AND_ASSIGN(RecentlyUsedFoldersComboModel);
-};
-
-#endif // CHROME_BROWSER_BOOKMARKS_RECENTLY_USED_FOLDERS_COMBO_MODEL_H_
« 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