mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
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.3 Original date: 2005/11/19 00:08:59
This commit is contained in:
parent
5191451674
commit
e3392e63d4
@ -150,16 +150,41 @@ interface nsINavBookmarkObserver : nsISupports
|
||||
[scriptable, uuid(5feca204-b735-40e8-921f-8b057eedffe2)]
|
||||
interface nsINavBookmarksService : nsISupports
|
||||
{
|
||||
/**
|
||||
* The folder ID of the Places root.
|
||||
*/
|
||||
readonly attribute PRInt64 placesRoot;
|
||||
|
||||
/**
|
||||
* The folder ID of the bookmarks root.
|
||||
*/
|
||||
readonly attribute PRInt64 bookmarksRoot;
|
||||
|
||||
/**
|
||||
* The folder ID of the personal toolbar root.
|
||||
*/
|
||||
readonly attribute PRInt64 toolbarRoot;
|
||||
|
||||
/**
|
||||
* A query result containing the bookmarks folder tree.
|
||||
* XXX get rid of me
|
||||
*/
|
||||
readonly attribute nsINavHistoryResult bookmarks;
|
||||
|
||||
/**
|
||||
* These flags can be OR'd together and passed to getFolderChildren to
|
||||
* specify the types of children returned.
|
||||
*/
|
||||
const PRUint32 ALL_CHILDREN = 0;
|
||||
const PRUint32 ITEM_CHILDREN = 1;
|
||||
const PRUint32 FOLDER_CHILDREN = 2;
|
||||
const PRUint32 QUERY_CHILDREN = 4;
|
||||
|
||||
/**
|
||||
* A query result containing only the children of the given folder.
|
||||
*/
|
||||
nsINavHistoryResult getFolderChildren(in PRInt64 folder, in PRUint32 flags);
|
||||
|
||||
/**
|
||||
* Inserts a child item into the given folder.
|
||||
* @param folder The id of the parent folder
|
||||
|
Loading…
Reference in New Issue
Block a user