Work-in-progress for places UI. Allow the backend to filter results based on item type, and provide a way to ask for a result rooted at a given bookmark folder. NPOB, will be reviewed by ben/brettw before being turned on.

Original committer: bryner%brianryner.com
Original revision: 1.11
Original date: 2005/11/19 00:09:00
This commit is contained in:
benjamin%smedbergs.us 2006-07-18 15:23:20 +00:00
Родитель 42a2832e5d
Коммит ff83c40300
1 изменённых файлов: 11 добавлений и 3 удалений

Просмотреть файл

@ -117,12 +117,15 @@ public:
NS_DECL_ISUPPORTS
NS_DECL_NSINAVHISTORYRESULTNODE
// Generate the children for this node.
virtual nsresult BuildChildren(PRUint32 aOptions) { return NS_OK; }
// Non-XPCOM member accessors
PRInt32 Type() const { return mType; }
protected:
virtual ~nsNavHistoryResultNode() {}
// Generate the children for this node.
virtual nsresult BuildChildren() { return NS_OK; }
// parent of this element, NULL if no parent. Filled in by FillAllElements
// in the result set.
nsNavHistoryResultNode* mParent;
@ -185,6 +188,8 @@ public:
nsresult BuildChildrenFor(nsNavHistoryResultNode *aNode);
void SetBookmarkOptions(PRUint32 aOptions) { mBookmarkOptions = aOptions; }
NS_DECL_ISUPPORTS
NS_DECL_NSINAVHISTORYRESULT
NS_DECL_NSITREEVIEW
@ -231,6 +236,9 @@ protected:
// keep track of sorting state
PRUint32 mCurrentSort;
// bookmark types for this result (nsINavBookmarksService::*_CHILDREN)
PRUint32 mBookmarkOptions;
void FillTreeStats(nsNavHistoryResultNode* aResult, PRInt32 aLevel);
void InitializeVisibleList();
void RebuildList();