| 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_
|
|
|